Fix text-align left/right in RTL layout

This commit is contained in:
Matt Brubeck 2015-04-28 21:33:45 -07:00
parent 81e8f18662
commit 50f982bb0c
4 changed files with 69 additions and 5 deletions

View file

@ -304,6 +304,7 @@ experimental == rtl_simple.html rtl_simple_ref.html
== table_percentage_width_a.html table_percentage_width_ref.html
== text_align_complex_a.html text_align_complex_ref.html
== text_align_justify_a.html text_align_justify_ref.html
experimental == text_align_rtl.html text_align_rtl_ref.html
experimental == text_align_start_end.html text_align_start_end_ref.html
== text_decoration_cached.html text_decoration_cached_ref.html
# text_decoration_propagation_a.html text_decoration_propagation_b.html

View 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>

View file

@ -0,0 +1,26 @@
<!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;
}
</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>