mirror of
https://github.com/servo/servo
synced 2026-05-09 08:32:31 +02: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.
18 lines
216 B
HTML
18 lines
216 B
HTML
<head>
|
|
<style>
|
|
body {
|
|
direction: rtl;
|
|
margin: 0;
|
|
}
|
|
#outer {
|
|
background: green;
|
|
|
|
width: 300px;
|
|
height: 100px;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div id="outer"></div>
|
|
</body>
|