OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <script src="../../../resources/testharness.js"></script> |
| 3 <script src="../../../resources/testharnessreport.js"></script> |
| 4 |
| 5 <style> |
| 6 #target1::before { |
| 7 content: 'test'; |
| 8 } |
| 9 #target1::after { |
| 10 content: normal; |
| 11 } |
| 12 #target2::after { |
| 13 content: 'test'; |
| 14 } |
| 15 #target2::before { |
| 16 content: normal; |
| 17 } |
| 18 </style> |
| 19 |
| 20 <div id="target1"></div> |
| 21 <div id="target2"></div> |
| 22 |
| 23 <script> |
| 24 test(function() { |
| 25 assert_equals(getComputedStyle(target1).content, 'normal'); |
| 26 assert_equals(getComputedStyle(target1, '::before').content, '"test"'); |
| 27 assert_equals(getComputedStyle(target1, '::after').content, 'none'); |
| 28 assert_equals(getComputedStyle(target2).content, 'normal'); |
| 29 assert_equals(getComputedStyle(target2, '::before').content, 'none'); |
| 30 assert_equals(getComputedStyle(target2, '::after').content, '"test"'); |
| 31 }, 'Test that content computes to "normal" for elements (not pseudo elements)
and to "none" if the specified value of pseudo elements is "normal"'); |
| 32 </script> |
OLD | NEW |