27 lines
551 B
HTML
27 lines
551 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<style>
|
|
.box {
|
|
width: 100px;
|
|
height: 100px;
|
|
background-color: blue;
|
|
}
|
|
|
|
.composited {
|
|
transform: translate3d(0, 0, 1px);
|
|
}
|
|
</style>
|
|
<script>
|
|
function doCompositingChange()
|
|
{
|
|
document.getElementById('target').classList.add('composited');
|
|
}
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<p>This text and the blue box should not disappear</p>
|
|
<div id="target" class="box">box</div>
|
|
</body>
|
|
</html>
|