mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Layout fixes for RTL child flows in LTR parents
...and vice-versa. This is not a complete fix for all mixed-direction layout cases, but it fixes enough problems to make some simple test cases pass, like tha attached reftest. There are FIXME comments for many of the remaining issues. In particular, this does not yet handle RTL layout of fixed/absolute elements.
This commit is contained in:
parent
7cd776b74f
commit
8221bfc3ef
7 changed files with 131 additions and 25 deletions
18
tests/ref/rtl_simple.html
Normal file
18
tests/ref/rtl_simple.html
Normal file
|
@ -0,0 +1,18 @@
|
|||
<head>
|
||||
<style>
|
||||
#outer {
|
||||
direction: ltr;
|
||||
width: 400px;
|
||||
background: red;
|
||||
}
|
||||
#inner {
|
||||
direction: rtl;
|
||||
height: 100px;
|
||||
width: 100px;
|
||||
background: green;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="outer"><div id="inner"></div></div>
|
||||
</body>
|
Loading…
Add table
Add a link
Reference in a new issue