OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <script src="../../resources/testharness.js"></script> |
| 3 <script src="../../resources/testharnessreport.js"></script> |
| 4 <style> |
| 5 p { outline-color: invert } |
| 6 p { outline: 3px solid invert } |
| 7 </style> |
| 8 <script> |
| 9 test(() => { |
| 10 assert_equals(document.styleSheets[0].cssRules.length, 2, "Syntax error
in style rules."); |
| 11 }, "Check that both style rules were parsed."); |
| 12 |
| 13 test(() => { |
| 14 assert_equals(document.styleSheets[0].cssRules[0].style.length, 0, "Outl
ine-color rule with invert was not dropped."); |
| 15 }, "Check that outline-color:invert is dropped."); |
| 16 |
| 17 test(() => { |
| 18 assert_equals(document.styleSheets[0].cssRules[1].style.length, 0, "Outl
ine shorthand with invert was not dropped."); |
| 19 }, "Check that outline shorthand with invert is dropped."); |
| 20 </script> |
OLD | NEW |