mirror of
https://github.com/servo/servo.git
synced 2025-08-21 05:15:33 +01:00
Fix text-align left/right in RTL layout
This commit is contained in:
parent
81e8f18662
commit
50f982bb0c
4 changed files with 69 additions and 5 deletions
29
tests/ref/text_align_rtl.html
Normal file
29
tests/ref/text_align_rtl.html
Normal file
|
@ -0,0 +1,29 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<link rel="stylesheet" type="text/css" href="css/ahem.css">
|
||||
<style>
|
||||
body {
|
||||
margin: 0;
|
||||
font-size: 25px;
|
||||
}
|
||||
#a, #b {
|
||||
text-align: left;
|
||||
}
|
||||
#c, #d {
|
||||
text-align: right;
|
||||
}
|
||||
#b, #d {
|
||||
direction: rtl;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="a">X</div>
|
||||
<div id="b">X</div>
|
||||
<div id="c">X</div>
|
||||
<div id="d">X</div>
|
||||
</body>
|
||||
</html>
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue