3 <!-- Test CSS clip and shadow with composited layers. Left and right sides
4 should have the same shape. In old code where this caused a bug,
5 crbug.com/246728, shadows cause a slightly different code path than
6 clip.html without shadow. In this test, the clip is still larger than the
7 shadow's extent; The composited layer should not clamp to the shadow's
8 extent (1 pixel), it should include the full extent of the clip as well (5
13 <style type="text/css" media="screen">
21 background-color: gray;
22 -webkit-box-shadow: 1px 1px 1px 1px gray;
23 clip: rect(-5px, 105px, 105px, -5px);
32 background-color: rgba(0, 0, 0, 0.2);
36 transform: translateZ(1px);
43 <script type="text/javascript" charset="utf-8">
44 if (window.testRunner) {
45 testRunner.dumpAsText();
46 testRunner.waitUntilDone();
50 if (window.testRunner) {
51 document.getElementById('layers').innerText = window.internals.layerTreeAsText(document);
52 testRunner.notifyDone();
55 window.addEventListener('load', doTest, false);
60 <div class="composited box">
65 <div class="box" style="left: 220px;">
66 <div class="composited inner">
71 <!-- In DRT, layer tree goes here. -->