servo/tests/ref/pseudo_content_with_layers.html
Martin Robinson 1e6f797268 Ensure unique LayerIds for pseudo-elements
Currently pseudo-elements, like the fragments created for ::before and
::after, with layers will have the same LayerId as the body of their
owning fragments. Instead all LayerIds should be unique.

Fixes #2010.
2015-09-17 06:42:29 -07:00

32 lines
688 B
HTML

<!DOCTYPE html>
<html>
<body>
<style>
.before-test::before {
content: " ";
position: fixed;
width: 100px;
height: 100px;
background: green;
}
.after-test::after {
content: " ";
position: fixed;
width: 100px;
height: 100px;
background: green;
}
div {
position: fixed;
width: 110px;
height: 110px;
background: blue;
}
</style>
<div class="before-test"> </div>
<div style="left: 150px;" class="after-test"> </div>
</body>
</html>