Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
auto merge of #5233 : mbrubeck/servo/rtl-position, r=SimonSapin
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. r? @pcwalton or @SimonSapin
- Loading branch information
Showing
9 changed files
with
80 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<head> | ||
<style> | ||
body { | ||
direction: rtl; | ||
margin: 0; | ||
} | ||
#outer { | ||
background: green; | ||
|
||
width: 300px; | ||
height: 100px; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div id="outer"></div> | ||
</body> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<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> |