50 lines
1.7 KiB
HTML
50 lines
1.7 KiB
HTML
<html>
|
|
<head>
|
|
<style type="text/css">
|
|
.box {
|
|
width: 80px;
|
|
height: 80px;
|
|
margin: 5px;
|
|
border-style: solid;
|
|
border-width: 5px;
|
|
padding: 5px;
|
|
background-color: green;
|
|
}
|
|
.composited {
|
|
-webkit-transform: translateZ(0);
|
|
}
|
|
.padding-clip {
|
|
background-clip: padding-box;
|
|
-webkit-background-clip: padding-box;
|
|
}
|
|
.content-clip {
|
|
background-clip: content-box;
|
|
-webkit-background-clip: content-box;
|
|
}
|
|
</style>
|
|
<script type="text/javascript">
|
|
if (window.testRunner)
|
|
testRunner.dumpAsText();
|
|
|
|
function doTest() {
|
|
if (window.testRunner && window.internals)
|
|
document.getElementById('layertree').innerText = window.internals.layerTreeAsText(document);
|
|
}
|
|
window.addEventListener('load', doTest, false);
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<!-- Box with border-box background-clip. -->
|
|
<!-- GraphicsLayer::contentsOpaque for this box should be true. -->
|
|
<div class="box composited"></div>
|
|
<!-- Box with padding-box background-clip. -->
|
|
<!-- GraphicsLayer::contentsOpaque for this box should be false. -->
|
|
<div class="box composited padding-clip"></div>
|
|
<!-- Box with content-box background-clip. -->
|
|
<!-- GraphicsLayer::contentsOpaque for this box should be false. -->
|
|
<div class="box composited content-clip"></div>
|
|
|
|
<pre id="layertree"></pre>
|
|
</body>
|
|
</html>
|