Auto merge of #6130 - mbrubeck:float-rtl, r=pcwalton

This fixes panics in RTL pages with floats (#6113) and partially fixes the positioning of RTL floats.  There are some remaining issues with the layout of floats in RTL flows, which I'll file follow-up issues for.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6130)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2015-05-19 11:29:34 -05:00
commit 360c5d8235
7 changed files with 67 additions and 10 deletions

View file

@ -264,6 +264,7 @@ experimental != overconstrained_block.html overconstrained_block_ref.html
== root_margin_collapse_a.html root_margin_collapse_b.html
== root_pseudo_a.html root_pseudo_b.html
experimental == rtl_body.html rtl_body_ref.html
experimental == rtl_float_a.html rtl_float_ref.html
experimental == rtl_margin_a.html rtl_margin_ref.html
experimental == rtl_simple.html rtl_simple_ref.html
experimental == rtl_table_a.html rtl_table_ref.html

View file

@ -0,0 +1,20 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>RTL float test</title>
<style>
div {
direction: rtl;
float: left;
background: green;
width: 100px;
height: 100px;
}
</style>
</head>
<body>
<div id="a"></div>
</body>
</html>

View file

@ -0,0 +1,19 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>RTL float reference</title>
<style>
div {
float: left;
background: green;
width: 100px;
height: 100px;
}
</style>
</head>
<body>
<div id="a"></div>
</body>
</html>