4 <div>This test checks that layers with border-radius are properly clipped.
</div>
5 <div>You should see a green rounded rectangle with a purple border below. The rectangle should be contained within the border.
</div>
6 <div style =
"width:300px; height:100px; border-radius:30px; border:3px solid purple; overflow:hidden;">
7 <div style=
"height: 100%;position:relative;">
8 <div id =
"img1" style=
"width:100%; height:100%;background-color: red"></div>
12 if (window
.testRunner
)
13 testRunner
.waitUntilDone();
15 function changeBackground() {
16 document
.getElementById("img1").style
.backgroundColor
= "green";
17 if (window
.testRunner
)
18 testRunner
.notifyDone();
20 window
.setTimeout(changeBackground
, 0);