blob: eb7b465dfb28b651dc50c4004558740961294bea [file] [log] [blame]
<title>Layout width change</title>
<style type="text/css" media="screen">
.container {
position: absolute;
width: 400px;
height: 1500px;
.panel {
position: absolute;
top: 0px;
left: 0px;
width: 1000px;
height: 200px;
background-color: #bbb;
.composited {
transform: translateZ(0);
<script type="text/javascript" charset="utf-8">
if (window.testRunner) {
function doTest()
var container = document.getElementById("container");
var panel = document.getElementById("panel");
// Delay is needed after switching between compositing and non-compositing
// mode to allow for another render to happen.
window.setTimeout(function() {
panel.className += " composited" = "300";
if (window.testRunner) {
window.setTimeout(function() {
}, 20);
}, 20);
window.addEventListener('load', doTest, false);
<p>There should be no white gap at the right hand side of the box.</p>
<div id="container" class="container">
<div id="panel" class="panel">