mirror of
https://github.com/servo/servo.git
synced 2025-06-20 07:08:59 +01:00
Layers are currently all children of the root layer, so instead of using coordinates relative to the parent flow we should use coordinates relative to the page. Fixes #2061.
10 lines
333 B
HTML
10 lines
333 B
HTML
<html>
|
|
<body>
|
|
<div style="position: absolute; top: 0px; left: 512px;">
|
|
<div style="position: absolute; background: green; width: 20px; height: 20px;"></div>
|
|
|
|
<!-- This position:fixed sibling should force its sibling to be layerized. -->
|
|
<div style="position: fixed;"></div>
|
|
</div>
|
|
</body>
|
|
</html>
|