OLD | NEW |
(Empty) | |
| 1 <!-- Based on compositing/overflow/text-color-change.html --> |
| 2 <!DOCTYPE html> |
| 3 <script src="resources/paint-invalidation-test.js"></script> |
| 4 <script> |
| 5 window.expectedPaintInvalidationObjects = [ |
| 6 "LayoutText #text", |
| 7 "InlineTextBox ' Text'", |
| 8 "InlineTextBox '\n'", |
| 9 "InlineTextBox ' Text'", |
| 10 "InlineTextBox '\n'", |
| 11 "InlineTextBox ' Text'", |
| 12 "InlineTextBox '\n'", |
| 13 "InlineTextBox ' Text'", |
| 14 "InlineTextBox '\n'", |
| 15 "InlineTextBox ' Text'", |
| 16 "InlineTextBox '\n'", |
| 17 "InlineTextBox ' Text'", |
| 18 "InlineTextBox '\n'", |
| 19 "InlineTextBox ' Text'", |
| 20 "InlineTextBox '\n'", |
| 21 "InlineTextBox ' Text'", |
| 22 "InlineTextBox '\n'", |
| 23 "InlineTextBox ' Text'", |
| 24 "InlineTextBox '\n'", |
| 25 "InlineTextBox ' Text'", |
| 26 "InlineTextBox '\n'", |
| 27 "InlineTextBox ' Text'", |
| 28 "InlineTextBox '\n'", |
| 29 "InlineTextBox ' Text'", |
| 30 "InlineTextBox '\n'", |
| 31 "InlineTextBox ' Text'", |
| 32 "InlineTextBox '\n'", |
| 33 "InlineTextBox ' Text'", |
| 34 "InlineTextBox '\n'", |
| 35 "InlineTextBox ' Text'", |
| 36 "InlineTextBox '\n'", |
| 37 "InlineTextBox ' Text'", |
| 38 "InlineTextBox '\n'", |
| 39 "InlineTextBox ' Text'", |
| 40 "InlineTextBox '\n'", |
| 41 "InlineTextBox ' Text'", |
| 42 "InlineTextBox '\n'", |
| 43 "InlineTextBox ' Text'", |
| 44 "InlineTextBox '\n'", |
| 45 "InlineTextBox ' Text'", |
| 46 "InlineTextBox '\n'", |
| 47 "InlineTextBox ' Text'", |
| 48 "InlineTextBox '\n'", |
| 49 "InlineTextBox ' Text'", |
| 50 "InlineTextBox '\n'", |
| 51 "InlineTextBox ' Text'", |
| 52 "InlineTextBox '\n'", |
| 53 "InlineTextBox ' Text'", |
| 54 "InlineTextBox '\n'", |
| 55 "InlineTextBox ' Text'", |
| 56 "InlineTextBox '\n'", |
| 57 "InlineTextBox ' Text'", |
| 58 "InlineTextBox '\n'", |
| 59 "InlineTextBox ' Text'", |
| 60 "InlineTextBox '\n'", |
| 61 "InlineTextBox ' Text'", |
| 62 "InlineTextBox '\n'", |
| 63 "InlineTextBox ' Text'", |
| 64 "InlineTextBox '\n'", |
| 65 "InlineTextBox ' Text'", |
| 66 "InlineTextBox '\n'", |
| 67 "InlineTextBox ' Text'", |
| 68 "InlineTextBox '\n'", |
| 69 "InlineTextBox ' Text'", |
| 70 "InlineTextBox '\n'", |
| 71 "InlineTextBox ' Text'", |
| 72 "InlineTextBox '\n'", |
| 73 "InlineTextBox ' Text'", |
| 74 "InlineTextBox '\n'", |
| 75 "InlineTextBox ' Text'", |
| 76 "InlineTextBox '\n'", |
| 77 "InlineTextBox ' Text'", |
| 78 "InlineTextBox '\n'", |
| 79 "InlineTextBox ' Text'", |
| 80 "InlineTextBox '\n'", |
| 81 "InlineTextBox ' Text'", |
| 82 "InlineTextBox '\n'", |
| 83 "InlineTextBox ' Text'", |
| 84 "InlineTextBox '\n'", |
| 85 "InlineTextBox ' Text'", |
| 86 "InlineTextBox '\n'", |
| 87 "InlineTextBox ' Text'", |
| 88 "InlineTextBox '\n'", |
| 89 ]; |
| 90 function paintInvalidationTest() { |
| 91 document.getElementById('scroller').style.color = 'green'; |
| 92 } |
| 93 onload = runPaintInvalidationTest; |
| 94 </script> |
| 95 Tests invalidation of scrolling text. On composited scrolling, the whole text sh
ould be invalidated when the 'color' property of the container changes. |
| 96 <pre id="scroller" style="width: 200px; height: 200px; overflow: scroll; color:
red"> |
| 97 Text |
| 98 Text |
| 99 Text |
| 100 Text |
| 101 Text |
| 102 Text |
| 103 Text |
| 104 Text |
| 105 Text |
| 106 Text |
| 107 Text |
| 108 Text |
| 109 Text |
| 110 Text |
| 111 Text |
| 112 Text |
| 113 Text |
| 114 Text |
| 115 Text |
| 116 Text |
| 117 Text |
| 118 Text |
| 119 Text |
| 120 Text |
| 121 Text |
| 122 Text |
| 123 Text |
| 124 Text |
| 125 Text |
| 126 Text |
| 127 Text |
| 128 Text |
| 129 Text |
| 130 Text |
| 131 Text |
| 132 Text |
| 133 Text |
| 134 Text |
| 135 Text |
| 136 Text |
| 137 Text |
| 138 </pre> |
OLD | NEW |