servo/tests/ref/blur_a.html
Patrick Walton 5c51a6214e layout: Fix calculation of overflow for stacking contexts that contain
`position: relative` fragments.

Fixes placement of the header on espn.go.com.
2015-08-25 15:08:28 -07:00

40 lines
636 B
HTML

<!DOCTYPE html>
<html>
<head>
<style type="text/css">
div {
width: 200px;
height: 200px;
background: green;
position: relative;
}
.ex {
position: absolute;
width: 80px; height: 80px;
background: blue;
top: 60px; left: 60px;
-webkit-filter: blur(30px);
-moz-filter: blur(30px);
filter: blur(30px);
}
.coveritup {
position: absolute;
background: green;
top: 60px;
left: 60px;
width: 80px;
height: 80px;
transform: translateX(0px); /* force stacking context */
}
</style>
</head>
<body>
<div>
<div class="ex"></div>
<div class="coveritup"></div>
</div>
</body>
</html>