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