blob: 8e97b50e1b2d4ada496af416b80924e042aa44e2 [file] [log] [blame]
This tests that squashed layers' offset from renderer is updated properly. If not properly updated, the two divs will appear to be aligned vertically in the pixel results, while really the blue div ('squashed') should be offset 100px left of the green ('host').
{
"layers": [
{
"name": "Scrolling background of LayoutView #document",
"bounds": [800, 600],
"contentsOpaque": true,
"backgroundColor": "#FFFFFF"
},
{
"name": "LayoutNGBlockFlow (positioned) DIV id='background'",
"bounds": [100, 100],
"contentsOpaque": true,
"backgroundColor": "#FFFF00",
"transform": 1
},
{
"name": "LayoutNGBlockFlow (positioned) DIV id='host'",
"bounds": [100, 100],
"contentsOpaque": true,
"backgroundColor": "#008000",
"transform": 2
},
{
"name": "LayoutNGBlockFlow (relative positioned) DIV id='squashed'",
"position": [8, 8],
"bounds": [100, 100],
"contentsOpaque": true,
"backgroundColor": "#0000FF"
}
],
"transforms": [
{
"id": 1,
"transform": [
[1, 0, 0, 0],
[0, 1, 0, 0],
[0, 0, 1, 0],
[8, 50, 0, 1]
]
},
{
"id": 2,
"transform": [
[1, 0, 0, 0],
[0, 1, 0, 0],
[0, 0, 1, 0],
[100, 100, 0, 1]
]
}
]
}