Source code
Revision control
Copy as Markdown
Other Tools
<!DOCTYPE html>
<title>View transitions: fractional box with shadow -- reference</title>
<link rel="author" href="mailto:vmpstr@chromium.org">
<style>
.box {
box-shadow: -2px -3px 0 7px darkgreen;
margin: 15px;
background: green;
width: 100.125px;
height: 50.875px;
}
.shift {
position: relative;
left: 0.4px;
}
body { background: lightpink }
</style>
<div class="box"></div>
<div class="box shift"></div>