| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <style> | 4 <style> |
| 5 body { | 5 body { |
| 6 height: 2000px; | 6 height: 2000px; |
| 7 } | 7 } |
| 8 | 8 |
| 9 .positionFixed { | 9 .positionFixed { |
| 10 position: fixed; | 10 position: fixed; |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 function testConfiguration(configuration, index, description) { | 144 function testConfiguration(configuration, index, description) { |
| 145 description.push("\n" + (index + 1) + ". '" + configuration.title + "'\n"); | 145 description.push("\n" + (index + 1) + ". '" + configuration.title + "'\n"); |
| 146 var configurationsPerRow = 4; | 146 var configurationsPerRow = 4; |
| 147 configuration.top = 10 + 120 * (Math.floor(index / configurationsPerRow)); | 147 configuration.top = 10 + 120 * (Math.floor(index / configurationsPerRow)); |
| 148 configuration.left = 10 + 120 * (index % configurationsPerRow); | 148 configuration.left = 10 + 120 * (index % configurationsPerRow); |
| 149 buildDom(description, 0, configuration); | 149 buildDom(description, 0, configuration); |
| 150 } | 150 } |
| 151 | 151 |
| 152 function doTest() { | 152 function doTest() { |
| 153 if (window.internals) | 153 if (window.internals) |
| 154 testRunner.dumpAsText(true); | 154 testRunner.dumpAsTextWithPixelResults(); |
| 155 | 155 |
| 156 // Some configurations are as not meaningful for fixed-pos. For example,
we | 156 // Some configurations are as not meaningful for fixed-pos. For example,
we |
| 157 // alternate between having the scroll container be a containing block f
or | 157 // alternate between having the scroll container be a containing block f
or |
| 158 // the positioned descendant. For the fixed-pos case, the containing blo
ck | 158 // the positioned descendant. For the fixed-pos case, the containing blo
ck |
| 159 // will be the viewport. | 159 // will be the viewport. |
| 160 var configurations = [ | 160 var configurations = [ |
| 161 { | 161 { |
| 162 'title': 'absolute-grandchildren-not-contained', | 162 'title': 'absolute-grandchildren-not-contained', |
| 163 'isFixedPositioned': false, | 163 'isFixedPositioned': false, |
| 164 'isContainingBlock': false, | 164 'isContainingBlock': false, |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 266 } | 266 } |
| 267 } | 267 } |
| 268 | 268 |
| 269 window.onload = doTest; | 269 window.onload = doTest; |
| 270 | 270 |
| 271 </script> | 271 </script> |
| 272 </head> | 272 </head> |
| 273 <body> | 273 <body> |
| 274 </body> | 274 </body> |
| 275 </html> | 275 </html> |
| OLD | NEW |