<!doctype html> | |
<html> | |
<head> | |
<style type="text/css"> | |
.greenSquare-shadow { | |
position: absolute; | |
top: 50px; | |
left: 50px; | |
width: 100px; | |
height: 100px; | |
border-bottom-right-radius: 50px 50px; | |
border-top-left-radius: 50px 50px; | |
background-color: green; | |
box-shadow: 110px 110px 0px 10px #000000; | |
} | |
.yellowSquare-shadow { | |
position: absolute; | |
top: 20px; | |
left: 250px; | |
width: 120px; | |
height: 120px; | |
border-top-right-radius: 60px 60px; | |
border-bottom-left-radius: 70px 60px; | |
background-color: yellow; | |
box-shadow: 110px 150px 0px 10px #000000; | |
} | |
.container { | |
position: absolute; | |
} | |
</style> | |
</head> | |
<body> | |
<!-- [bug 99928] https://bugs.webkit.org/show_bug.cgi?id=99928 --> | |
<!-- [CSS] shadow from radius has wrong render in webkit --> | |
<div class="container"> | |
<div id="green" class="greenSquare-shadow"></div> | |
<div id="yellow" class="yellowSquare-shadow"></div> | |
</div> | |
</body> | |
</html> |