page-orientation-invalid.tentative.html (816B)
1 <!DOCTYPE html> 2 <link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org"> 3 <link rel="help" href="https://drafts.csswg.org/css-page-3/#page-orientation-prop"> 4 <script src="/resources/testharness.js"></script> 5 <script src="/resources/testharnessreport.js"></script> 6 <script src="/css/support/parsing-testcommon.js"></script> 7 <script> 8 // page-orientation is not a property. test_invalid_value() tries to specify 9 // it on an element, and this should fail, even when using a valid 10 // value. page-orientation is only valid as a descriptor inside an @page rule. 11 test_invalid_value("page-orientation", "hotpink"); 12 test_invalid_value("page-orientation", "upright"); 13 test_invalid_value("page-orientation", "rotate-left"); 14 test_invalid_value("page-orientation", "rotate-right"); 15 </script>