mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-29 21:25:35 +00:00
82 lines
3.8 KiB
HTML
82 lines
3.8 KiB
HTML
|
<!doctype html>
|
||
|
<html><head>
|
||
|
<title>background-clip interaction with border-radius</title>
|
||
|
<style>
|
||
|
/* If you fix bug #466572, you can substantially simplify this test
|
||
|
case. */
|
||
|
|
||
|
table { table-layout: fixed; width: 550px }
|
||
|
td { width: 110px; height: 110px; text-align: center }
|
||
|
div.i {
|
||
|
z-index: 0;
|
||
|
width: 70px;
|
||
|
height: 70px;
|
||
|
border-style: solid;
|
||
|
border-color: green;
|
||
|
-moz-background-clip: padding;
|
||
|
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFoAAABaAQMAAAACZtNBAAAAA1BMVEUAgACc+aWRAAAAEklEQVQYGWNgGAWjYBSMgsECAASSAAFZGYSDAAAAAElFTkSuQmCC");
|
||
|
}
|
||
|
.rA div.i { -moz-border-radius: 10px; }
|
||
|
.rB div.i { -moz-border-radius: 20px; }
|
||
|
.rC div.i { -moz-border-radius: 30px; }
|
||
|
.rD div.i { -moz-border-radius: 40px; }
|
||
|
.rE div.i { -moz-border-radius: 50px; }
|
||
|
|
||
|
.wA div.i { border-width: 10px 10px 10px 10px; }
|
||
|
.wB div.i { border-width: 20px 20px 20px 20px; }
|
||
|
.wC div.i { border-width: 5px 20px 5px 20px; }
|
||
|
.wD div.i { border-width: 20px 20px 5px 5px; }
|
||
|
.wE div.i { border-width: 5px 10px 15px 20px; }
|
||
|
|
||
|
div.o {
|
||
|
display: inline-block;
|
||
|
position: relative;
|
||
|
}
|
||
|
img {
|
||
|
position: absolute; top: 0; left: 0;
|
||
|
z-index: 1;
|
||
|
}
|
||
|
|
||
|
</style>
|
||
|
</head><body>
|
||
|
<table>
|
||
|
<tr class="wA">
|
||
|
<td class="rA"><div class="o"><div class="i"></div><img src="456219-1-mask-wArA.png"></div></td>
|
||
|
<td class="rB"><div class="o"><div class="i"></div><img src="456219-1-mask-wArB.png"></div></td>
|
||
|
<td class="rC"><div class="o"><div class="i"></div><img src="456219-1-mask-wArC.png"></div></td>
|
||
|
<td class="rD"><div class="o"><div class="i"></div><img src="456219-1-mask-wArD.png"></div></td>
|
||
|
<td class="rE"><div class="o"><div class="i"></div><img src="456219-1-mask-wArE.png"></div></td>
|
||
|
</tr>
|
||
|
<tr class="wB">
|
||
|
<td class="rA"><div class="o"><div class="i"></div><img src="456219-1-mask-wBrA.png"></div></td>
|
||
|
<td class="rB"><div class="o"><div class="i"></div><img src="456219-1-mask-wBrB.png"></div></td>
|
||
|
<td class="rC"><div class="o"><div class="i"></div><img src="456219-1-mask-wBrC.png"></div></td>
|
||
|
<td class="rD"><div class="o"><div class="i"></div><img src="456219-1-mask-wBrD.png"></div></td>
|
||
|
<td class="rE"><div class="o"><div class="i"></div><img src="456219-1-mask-wBrE.png"></div></td>
|
||
|
</tr>
|
||
|
<tr class="wC">
|
||
|
<td class="rA"><div class="o"><div class="i"></div><img src="456219-1-mask-wCrA.png"></div></td>
|
||
|
<td class="rB"><div class="o"><div class="i"></div><img src="456219-1-mask-wCrB.png"></div></td>
|
||
|
<td class="rC"><div class="o"><div class="i"></div><img src="456219-1-mask-wCrC.png"></div></td>
|
||
|
<td class="rD"><div class="o"><div class="i"></div><img src="456219-1-mask-wCrD.png"></div></td>
|
||
|
<td class="rE"><div class="o"><div class="i"></div><img src="456219-1-mask-wCrE.png"></div></td>
|
||
|
</tr>
|
||
|
<tr class="wD">
|
||
|
<td class="rA"><div class="o"><div class="i"></div><img src="456219-1-mask-wDrA.png"></div></td>
|
||
|
<td class="rB"><div class="o"><div class="i"></div><img src="456219-1-mask-wDrB.png"></div></td>
|
||
|
<td class="rC"><div class="o"><div class="i"></div><img src="456219-1-mask-wDrC.png"></div></td>
|
||
|
<td class="rD"><div class="o"><div class="i"></div><img src="456219-1-mask-wDrD.png"></div></td>
|
||
|
<td class="rE"><div class="o"><div class="i"></div><img src="456219-1-mask-wDrE.png"></div></td>
|
||
|
</tr>
|
||
|
<tr class="wE">
|
||
|
<td class="rA"><div class="o"><div class="i"></div><img src="456219-1-mask-wErA.png"></div></td>
|
||
|
<td class="rB"><div class="o"><div class="i"></div><img src="456219-1-mask-wErB.png"></div></td>
|
||
|
<td class="rC"><div class="o"><div class="i"></div><img src="456219-1-mask-wErC.png"></div></td>
|
||
|
<td class="rD"><div class="o"><div class="i"></div><img src="456219-1-mask-wErD.png"></div></td>
|
||
|
<td class="rE"><div class="o"><div class="i"></div><img src="456219-1-mask-wErE.png"></div></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
|
||
|
<p>Inside each green shape, there should be no white.</p>
|
||
|
</body></html>
|