mirror of
https://github.com/servo/servo
synced 2026-05-08 16:12:15 +02: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.
36 lines
549 B
HTML
36 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>
|
|
|