| OLD | NEW |
| 1 <!doctype html> | 1 <!doctype html> |
| 2 <script src="../resources/testharness.js"></script> | 2 <script src="../resources/testharness.js"></script> |
| 3 <script src="../resources/testharnessreport.js"></script> | 3 <script src="../resources/testharnessreport.js"></script> |
| 4 | 4 |
| 5 <style> | 5 <style> |
| 6 #target::before { | 6 #target1::before { |
| 7 content: normal normal; | 7 content: normal normal; |
| 8 } | 8 } |
| 9 #target::after { | 9 #target1::after { |
| 10 content: normal normal; | 10 content: normal normal; |
| 11 } | 11 } |
| 12 |
| 13 #target2::before { |
| 14 content: none open-quote; |
| 15 } |
| 16 #target2::after { |
| 17 content: url("a") none; |
| 18 } |
| 12 </style> | 19 </style> |
| 13 | 20 |
| 14 <div id="target"></div> | 21 <div id="target1"></div> |
| 22 <div id="target2"></div> |
| 15 | 23 |
| 16 <script> | 24 <script> |
| 17 test(function(){ | 25 test(function(){ |
| 18 assert_equals(getComputedStyle(target, '::before').content, ''); | 26 assert_equals(document.styleSheets[0].cssRules[0].style.content, ''); |
| 19 assert_equals(getComputedStyle(target, '::after').content, ''); | 27 assert_equals(document.styleSheets[0].cssRules[1].style.content, ''); |
| 28 assert_equals(document.styleSheets[0].cssRules[2].style.content, ''); |
| 29 assert_equals(document.styleSheets[0].cssRules[3].style.content, ''); |
| 20 }, "Test to ensure that invalid values of content on pseudo elements are dropped
by the parser"); | 30 }, "Test to ensure that invalid values of content on pseudo elements are dropped
by the parser"); |
| 21 </script> | 31 </script> |
| OLD | NEW |