mirror of
https://github.com/servo/servo.git
synced 2025-06-16 12:24:29 +00:00
The page_rect passed to DisplayListOptimizer is relative to the RenderLayer origin, but the display list components are relative to the page origin. Before passing the page rect to the display list, we translate it by the RenderLayer position.
5 lines
144 B
HTML
5 lines
144 B
HTML
<html>
|
|
<body>
|
|
<div style="background: green; position: fixed; top: 0px; left: 512px; width: 20px; height: 20px;"></div>
|
|
</body>
|
|
</html>
|