Bug 1157752 - Reftest for vertical mode with upright orientation overriding bidi directionality. r=smontagu

This commit is contained in:
Jonathan Kew 2015-04-29 08:18:53 +01:00
parent 8d949af0be
commit b0560324d2
3 changed files with 87 additions and 0 deletions

View File

@ -0,0 +1,43 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<style>
body {
-webkit-writing-mode: vertical-rl;
writing-mode: vertical-rl;
font: 16px/24px sans-serif;
padding: 20px;
width: 300px;
height: 400px;
}
.sideways {
-webkit-text-orientation: sideways-right;
text-orientation: sideways-right;
}
.upright {
-webkit-text-orientation: upright;
text-orientation: upright;
}
</style>
</head>
<body>
<div class=sideways>
Bidi עברית text
</div>
<div dir=rtl class=sideways>
Bidi עברית text
</div>
<div class=upright>
<bdo dir=ltr>Bidi עברית text</bdo>
</div>
<div dir=rtl class=upright>
<bdo dir=ltr>Bidi עברית text</bdo>
</div>
</body>
</html>

View File

@ -0,0 +1,43 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<style>
body {
-webkit-writing-mode: vertical-rl;
writing-mode: vertical-rl;
font: 16px/24px sans-serif;
padding: 20px;
width: 300px;
height: 400px;
}
.sideways {
-webkit-text-orientation: sideways-right;
text-orientation: sideways-right;
}
.upright {
-webkit-text-orientation: upright;
text-orientation: upright;
}
</style>
</head>
<body>
<div class=sideways>
Bidi עברית text
</div>
<div dir=rtl class=sideways>
Bidi עברית text
</div>
<div class=upright>
Bidi עברית text
</div>
<div dir=rtl class=upright>
Bidi עברית text
</div>
</body>
</html>

View File

@ -129,4 +129,5 @@ test-pref(dom.meta-viewport.enabled,true) test-pref(font.size.inflation.emPerLin
== 1144501-1b-block-end-margin-orthogonal-size.html 1144501-1-block-end-margin-orthogonal-size-ref.html
== 1151993-1-orthogonal-block-size.html 1151993-1-orthogonal-block-size-ref.html
== 1156021-text-indent-percent.html 1156021-text-indent-percent-ref.html
== 1157752-upright-bidi.html 1157752-upright-bidi-ref.html
== 1158549-1-vertical-block-size-constraints.html 1158549-1-vertical-block-size-constraints-ref.html