mirror of
https://github.com/servo/servo.git
synced 2025-10-18 01:09:16 +01:00
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.
32 lines
688 B
HTML
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>
|