OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <style> | 2 <style> |
3 .scroller { | 3 .scroller { |
4 width: 100px; | 4 width: 100px; |
5 height: 30px; | 5 height: 30px; |
6 overflow: scroll; | 6 overflow: scroll; |
7 } | 7 } |
8 .scroller::-webkit-scrollbar { | 8 .scroller::-webkit-scrollbar { |
9 width: 10px; | 9 width: 10px; |
10 height: 10px; | 10 height: 10px; |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 var count = internals.updateStyleAndReturnAffectedElementCount(); | 84 var count = internals.updateStyleAndReturnAffectedElementCount(); |
85 if (count == expectedCount) | 85 if (count == expectedCount) |
86 scroller.innerText = "PASS"; | 86 scroller.innerText = "PASS"; |
87 else | 87 else |
88 scroller.innerText = "FAIL: "+count; | 88 scroller.innerText = "FAIL: "+count; |
89 } | 89 } |
90 } | 90 } |
91 | 91 |
92 // Invalidation counts are 2 (#t<n> and .scroller) plus pseudo elements | 92 // Invalidation counts are 2 (#t<n> and .scroller) plus pseudo elements |
93 | 93 |
94 invalidateScroller("t1", 4); // pseudo count 2: 2 bars | 94 invalidateScroller("t1", 3); // pseudo count 2: 2 bars |
95 invalidateScroller("t2", 8); // pseudo count 6: 2 bars + 4 buttons | 95 invalidateScroller("t2", 7); // pseudo count 6: 2 bars + 4 buttons |
96 invalidateScroller("t3", 8); // pseudo count 6: 2 bars + 4 buttons | 96 invalidateScroller("t3", 7); // pseudo count 6: 2 bars + 4 buttons |
97 invalidateScroller("t4", 4); // pseudo count 6: 2 bars + 4 buttons | 97 invalidateScroller("t4", 3); // pseudo count 6: 2 bars + 4 buttons |
98 invalidateScroller("t5", 4); // pseudo count 2: 2 bars | 98 invalidateScroller("t5", 3); // pseudo count 2: 2 bars |
99 invalidateScroller("t6", 8); // pseudo count 6: 2 bars + 4 buttons | 99 invalidateScroller("t6", 7); // pseudo count 6: 2 bars + 4 buttons |
100 invalidateScroller("t7", 8); // pseudo count 6: 2 bars + 4 buttons | 100 invalidateScroller("t7", 7); // pseudo count 6: 2 bars + 4 buttons |
101 </script> | 101 </script> |
OLD | NEW |