blob: 22430777912c813470b145ed7518248795c08bd1 [file] [log] [blame]
This layout test checks that the offset positions of the blue and green divs does not change when the red div enters full-screen mode. Press go full-screen to begin.
One
Two
EVENT(webkitfullscreenchange)
EXPECTED (document.webkitCurrentFullScreenElement == '[object HTMLDivElement]') OK
EXPECTED (one.offsetLeft == '68') OK
EXPECTED (one.offsetTop == '48') OK
EXPECTED (two.offsetLeft == '8') OK
EXPECTED (two.offsetTop == '108') OK
EVENT(webkitfullscreenchange)
EXPECTED (document.webkitCurrentFullScreenElement == 'null') OK
EXPECTED (one.offsetLeft == '68') OK
EXPECTED (one.offsetTop == '48') OK
EXPECTED (two.offsetLeft == '8') OK
EXPECTED (two.offsetTop == '108') OK
END OF TEST