mirror of
https://github.com/servo/servo.git
synced 2025-06-13 19:04:30 +00:00
`BaseFlow::position` is relative to the parent flow's margin box in the inline direction. We need to use the parent's `position` as the container size when translating it to physical coordinates, or we get incorrect results for non-LTR content.
35 lines
549 B
HTML
35 lines
549 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>RTL margin test</title>
|
|
<style>
|
|
body {
|
|
margin: 8px;
|
|
}
|
|
#a {
|
|
direction: rtl;
|
|
}
|
|
#b {
|
|
border: 1px solid red;
|
|
width: 100px;
|
|
height: 100px;
|
|
}
|
|
#c {
|
|
border: 1px solid blue;
|
|
margin: 10px;
|
|
width: 50px;
|
|
height: 50px;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div id="a">
|
|
<div id="b">
|
|
<div id="c">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|
|
|