| 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 <style> | 4 <style> |
| 5 #target::first-letter {} | 5 #target::first-letter {} |
| 6 #target { visibility: hidden; } | 6 #target { visibility: hidden; } |
| 7 </style> | 7 </style> |
| 8 <div id="target">text</div> | 8 <div id="target">text</div> |
| 9 <script> | 9 <script> |
| 10 'use strict'; | 10 'use strict'; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 float: 'right', | 36 float: 'right', |
| 37 font: 'italic small-caps 900 normal 10px / 20px sans-serif', | 37 font: 'italic small-caps 900 normal 10px / 20px sans-serif', |
| 38 fontKerning: 'none', | 38 fontKerning: 'none', |
| 39 letterSpacing: '12px', | 39 letterSpacing: '12px', |
| 40 margin: '10px 20px 30px 40px', | 40 margin: '10px 20px 30px 40px', |
| 41 padding: '10px 20px 30px 40px', | 41 padding: '10px 20px 30px 40px', |
| 42 textDecoration: 'overline wavy rgb(10, 20, 30)', | 42 textDecoration: 'overline wavy rgb(10, 20, 30)', |
| 43 textShadow: 'rgb(10, 20, 30) 10px 20px 30px', | 43 textShadow: 'rgb(10, 20, 30) 10px 20px 30px', |
| 44 textTransform: 'capitalize', | 44 textTransform: 'capitalize', |
| 45 verticalAlign: '12%', | 45 verticalAlign: '12%', |
| 46 webkitBackgroundComposite: 'xor', | |
| 47 webkitBorderHorizontalSpacing: '12px', | 46 webkitBorderHorizontalSpacing: '12px', |
| 48 webkitBorderVerticalSpacing: '12px', | 47 webkitBorderVerticalSpacing: '12px', |
| 49 webkitFontSmoothing: 'none', | 48 webkitFontSmoothing: 'none', |
| 50 wordSpacing: '12px', | 49 wordSpacing: '12px', |
| 51 visibility: 'collapse', | 50 visibility: 'collapse', |
| 52 }; | 51 }; |
| 53 | 52 |
| 54 for (var property in testCases) { | 53 for (var property in testCases) { |
| 55 style[property] = testCases[property]; | 54 style[property] = testCases[property]; |
| 56 } | 55 } |
| (...skipping 26 matching lines...) Expand all Loading... |
| 83 var computedStyle = getComputedStyle(target, 'first-letter'); | 82 var computedStyle = getComputedStyle(target, 'first-letter'); |
| 84 var defaultComputedStyle = getComputedStyle(target); | 83 var defaultComputedStyle = getComputedStyle(target); |
| 85 for (var property in testCases) { | 84 for (var property in testCases) { |
| 86 assert_equals(computedStyle[property], defaultComputedStyle[property], p
roperty + ' property'); | 85 assert_equals(computedStyle[property], defaultComputedStyle[property], p
roperty + ' property'); |
| 87 } | 86 } |
| 88 }); | 87 }); |
| 89 testHandle.done(); | 88 testHandle.done(); |
| 90 }); | 89 }); |
| 91 }, 'Non-whitelisted properties should not get applied to first-letter pseudo ele
ments.'); | 90 }, 'Non-whitelisted properties should not get applied to first-letter pseudo ele
ments.'); |
| 92 </script> | 91 </script> |
| OLD | NEW |