blob: 9bbc2d6bbc49d5e7cc5744f22d1b75d2d9a011c1 [file] [log] [blame]
<!DOCTYPE html>
onload = function() {
document.getElementById('transformed').scrollTop = 50;
#transformed {
position: absolute;
top: 50px;
left: 100px;
transform: translateX(0);
overflow: scroll;
width: 300px;
height: 300px;
#fixed {
position: fixed;
top: 150px;
left: 100px;
width: 100px;
height: 100px;
background-color: green;
#relative {
position: relative;
top: 50px;
left: 50px;
/* to make the transformed container scrollable */
#content {
width: 1000px;
height: 1000px;
Tests invalidation of a fixed-position descendant of a transformed scrolled element.
Passes if there is a green box at the center of the scrollable area.
<div id="transformed">
<div id="relative">
<div id="fixed"></div>
<div id="content"></div>