mirror of
https://github.com/servo/servo.git
synced 2025-06-13 10:54:29 +00:00
This fixes a bug in finding the top left corner of an RTL block in physical coordinates. (The old code used the `start` point of the `position` rect, which is not always the top left.) It also fixes the setting of `position.start.i` in certain mixed LTR/RTL cases. There is still a bug related to `position.size` for RTL blocks with margins. See the FIXME comments for details.
20 lines
250 B
HTML
20 lines
250 B
HTML
<head>
|
|
<style>
|
|
body {
|
|
margin: 0;
|
|
}
|
|
#outer {
|
|
background: green;
|
|
|
|
width: 300px;
|
|
height: 100px;
|
|
|
|
position:absolute;
|
|
top: 0;
|
|
right: 0;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div id="outer"></div>
|
|
</body>
|