Chromium Code Reviews| 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 normal; | |
|
Timothy Loh
2016/03/30 02:53:28
It'd make more sense to test something like none o
nainar
2016/03/30 03:27:36
Done.
| |
| 15 } | |
| 16 #target2::after { | |
| 17 content: none normal; | |
| 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(getComputedStyle(target1, '::before').content, ''); |
|
Timothy Loh
2016/03/30 02:53:28
btw I was too lazy to whine about this previously
nainar
2016/03/30 03:27:36
Done.
| |
| 19 assert_equals(getComputedStyle(target, '::after').content, ''); | 27 assert_equals(getComputedStyle(target1, '::after').content, ''); |
| 28 assert_equals(getComputedStyle(target2, '::before').content, ''); | |
| 29 assert_equals(getComputedStyle(target2, '::after').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 |