summaryrefslogtreecommitdiffstats
path: root/layout/reftests/text/text-align-unsafe.html
diff options
context:
space:
mode:
Diffstat (limited to 'layout/reftests/text/text-align-unsafe.html')
-rw-r--r--layout/reftests/text/text-align-unsafe.html68
1 files changed, 68 insertions, 0 deletions
diff --git a/layout/reftests/text/text-align-unsafe.html b/layout/reftests/text/text-align-unsafe.html
new file mode 100644
index 000000000..ca461b12b
--- /dev/null
+++ b/layout/reftests/text/text-align-unsafe.html
@@ -0,0 +1,68 @@
+<!DOCTYPE html>
+<html class="reftest-wait">
+ <head>
+ <title>text-align-unsafe</title>
+ <meta charset="utf-8">
+ <style type="text/css">
+ p {
+ overflow:hidden;
+ width:8em;
+ white-space:nowrap;
+ margin:0;
+ }
+.test1 p {
+ text-align: unsafe right;
+ text-align-last: end;
+}
+.test2 p {
+ text-align: unsafe right;
+}
+.test3 p {
+ text-align: end unsafe;
+}
+.test4 p {
+ text-align: unsafe left;
+}
+.test5 p {
+ text-align: left;
+ text-align-last: unsafe right;
+}
+ </style>
+ </head>
+ <body>
+<div class=test1>
+ <p>Lorem ipsum dolor sit amet.</p>
+ <p dir="rtl">ישים אל לבו חובתו אשר הוא&nbsp;מתעלם&nbsp;ממנה.</p>
+</div>
+
+<div class=test2>
+ <p>Lorem ipsum dolor sit amet.</p>
+ <p dir="rtl">ישים אל לבו חובתו אשר הוא&nbsp;מתעלם&nbsp;ממנה.</p>
+</div>
+
+<div class=test3>
+ <p>Lorem ipsum dolor sit amet.</p>
+ <p dir="rtl">ישים אל לבו חובתו אשר הוא&nbsp;מתעלם&nbsp;ממנה.</p>
+</div>
+
+<div class=test4>
+ <p>Lorem ipsum dolor sit amet.</p>
+ <p dir="rtl">ישים אל לבו חובתו אשר הוא&nbsp;מתעלם&nbsp;ממנה.</p>
+</div>
+
+<div class=test5>
+ <p>Lorem ipsum dolor sit amet.</p>
+</div>
+
+<script>
+ var elem = document.querySelector('.test5 p');
+ var a = window.getComputedStyle(elem,null).getPropertyValue("text-align");
+ document.body.appendChild(document.createTextNode(a +"|"));
+ a = window.getComputedStyle(elem,null).getPropertyValue("text-align-last");
+ document.body.appendChild(document.createTextNode(a));
+
+ document.documentElement.removeAttribute('class');
+</script>
+
+</body>
+</html>