Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-page/parsing/page-orientation-invalid.tentative.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/css/support/parsing-testcommon.js"></script>
<script>
// page-orientation is not a property. test_invalid_value() tries to specify
// it on an element, and this should fail, even when using a valid
// value. page-orientation is only valid as a descriptor inside an @page rule.
test_invalid_value("page-orientation", "hotpink");
test_invalid_value("page-orientation", "upright");
test_invalid_value("page-orientation", "rotate-left");
test_invalid_value("page-orientation", "rotate-right");
</script>