29 lines
607 B
HTML
29 lines
607 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>This tests that we repaint child layer if the subpixel gap changes between layers when parent layer moves.</title>
|
|
<style>
|
|
.outer {
|
|
position: relative;
|
|
left: 0.7px;
|
|
height: 200px;
|
|
width: 200px;
|
|
background-color: rgba(0, 0, 255, 1);
|
|
}
|
|
|
|
.container-background {
|
|
position: relative;
|
|
transform: translateZ(0);
|
|
height: 100px;
|
|
width: 100px;
|
|
background-color: green;
|
|
}
|
|
|
|
</style>
|
|
<body>
|
|
<div id=container class=outer>foo
|
|
<div class=container-background>bar
|
|
</div>
|
|
</div>
|
|
</body>
|