servo/tests/ref/rtl_body.html
Matt Brubeck 531bcb12ae Fixes for positioning of RTL blocks.
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.
2015-03-17 10:18:17 -07:00

17 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>