| 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 26 matching lines...) Expand all Loading... |
| 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', | 46 webkitBackgroundComposite: 'xor', |
| 47 webkitBorderFit: 'lines', | |
| 48 webkitBorderHorizontalSpacing: '12px', | 47 webkitBorderHorizontalSpacing: '12px', |
| 49 webkitBorderVerticalSpacing: '12px', | 48 webkitBorderVerticalSpacing: '12px', |
| 50 webkitFontSmoothing: 'none', | 49 webkitFontSmoothing: 'none', |
| 51 webkitLineBoxContain: 'glyphs', | 50 webkitLineBoxContain: 'glyphs', |
| 52 wordSpacing: '12px', | 51 wordSpacing: '12px', |
| 53 visibility: 'collapse', | 52 visibility: 'collapse', |
| 54 }; | 53 }; |
| 55 | 54 |
| 56 for (var property in testCases) { | 55 for (var property in testCases) { |
| 57 style[property] = testCases[property]; | 56 style[property] = testCases[property]; |
| (...skipping 27 matching lines...) Expand all Loading... |
| 85 var computedStyle = getComputedStyle(target, 'first-letter'); | 84 var computedStyle = getComputedStyle(target, 'first-letter'); |
| 86 var defaultComputedStyle = getComputedStyle(target); | 85 var defaultComputedStyle = getComputedStyle(target); |
| 87 for (var property in testCases) { | 86 for (var property in testCases) { |
| 88 assert_equals(computedStyle[property], defaultComputedStyle[property], p
roperty + ' property'); | 87 assert_equals(computedStyle[property], defaultComputedStyle[property], p
roperty + ' property'); |
| 89 } | 88 } |
| 90 }); | 89 }); |
| 91 testHandle.done(); | 90 testHandle.done(); |
| 92 }); | 91 }); |
| 93 }, 'Non-whitelisted properties should not get applied to first-letter pseudo ele
ments.'); | 92 }, 'Non-whitelisted properties should not get applied to first-letter pseudo ele
ments.'); |
| 94 </script> | 93 </script> |
| OLD | NEW |