Bug 1141895 part 2 - Use unprefixed unicode-bidi values in internal code. r?jfkthame
MozReview-Commit-ID: 1o2NEe8eiSX
--- a/layout/base/crashtests/695861.html
+++ b/layout/base/crashtests/695861.html
@@ -1,9 +1,9 @@
<!DOCTYPE html>
<html>
<body onload="document.documentElement.offsetHeight; document.getElementById('s').style.textTransform='uppercase'; document.documentElement.offsetHeight; ">
-<div style="white-space: pre-wrap; -moz-column-count: 2;"><span id="s" style="unicode-bidi: -moz-isolate;">
+<div style="white-space: pre-wrap; -moz-column-count: 2;"><span id="s" style="unicode-bidi: isolate;">
<div style="direction: rtl;"></div></span></div>
</body>
</html>
--- a/layout/base/crashtests/701504.html
+++ b/layout/base/crashtests/701504.html
@@ -12,13 +12,13 @@ function boom()
document.documentElement.offsetHeight;
}
</script>
</head>
<body onload="boom();">
-<div style="-moz-column-count: 2;"><span style="unicode-bidi: -moz-isolate;" id="x"><span style="direction: rtl;"></span> <span style="unicode-bidi: -moz-isolate; white-space: pre;">
+<div style="-moz-column-count: 2;"><span style="unicode-bidi: isolate;" id="x"><span style="direction: rtl;"></span> <span style="unicode-bidi: isolate; white-space: pre;">
x</span></span></div>
</body>
</html>
--- a/layout/generic/crashtests/765409.html
+++ b/layout/generic/crashtests/765409.html
@@ -15,11 +15,11 @@ window.addEventListener("load", function
v.style.width = "280px";
v.style.height = "10px";
setTimeout(function(){ document.documentElement.offsetHeight; document.documentElement.removeAttribute("class"); },0);
}, false);
</script>
<body>
-<div><span style="unicode-bidi: -moz-isolate;"><span style="display: inline-block; float: right;" id="v"></span>D E<span style="unicode-bidi: -moz-isolate;"><span><span> ت</span></span></span></span></div>
+<div><span style="unicode-bidi: isolate;"><span style="display: inline-block; float: right;" id="v"></span>D E<span style="unicode-bidi: isolate;"><span><span> ت</span></span></span></span></div>
</body>
</html>
--- a/layout/reftests/bidi/1231175-1.html
+++ b/layout/reftests/bidi/1231175-1.html
@@ -5,13 +5,13 @@ div { width: 200px; border: 1px solid bl
span { direction: rtl; color: red; }
</style>
<body>
<p>The number in the red text should read "18" in all cases.
<div>
<ol dir=rtl>
<li><span style="unicode-bidi: normal">18 ديسمبر</span></li>
<li><span style="unicode-bidi: embed">18 ديسمبر</span></li>
-<li><span style="unicode-bidi: -moz-isolate; unicode-bidi: isolate">18 ديسمبر</span></li>
-<li><span style="unicode-bidi: -moz-plaintext; unicode-bidi: plaintext">18 ديسمبر</span></li>
+<li><span style="unicode-bidi: isolate">18 ديسمبر</span></li>
+<li><span style="unicode-bidi: plaintext">18 ديسمبر</span></li>
<li><span>‫18 ديسمبر‬</span></li>
<li><span>⁧18 ديسمبر⁩</span></li>
<li><span>⁨18 ديسمبر⁩</span></li>
--- a/layout/reftests/bidi/613149-1b.html
+++ b/layout/reftests/bidi/613149-1b.html
@@ -1,17 +1,17 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Bidi isolation - css</title>
<style type="text/css">
body { font-family: monospace; }
- span { unicode-bidi: -moz-isolate; }
- span.override { unicode-bidi: -moz-isolate-override; }
+ span { unicode-bidi: isolate; }
+ span.override { unicode-bidi: isolate-override; }
</style>
</head>
<body>
<p><span>פיצה זהב 24 קאראט</span> - 3 reviews</p>
<p>מסעדה ראשונה: <span dir="ltr">Joe's פלאפל Bar</span> - 5 תגובות</p>
<p>מסעדה ראשונה: <span class="override" dir="rtl">raB פלאפל s'eoJ</span> - 5 תגובות</p>
<p dir="rtl" align="left">תשתמש ב-css (<span dir="ltr">position: relative</span>).</p>
<p>documents > <span dir="rtl">הרומן הראשון שלי</span> > <span dir="rtl">פרק 1</span></p>
--- a/layout/reftests/bidi/746987-1.html
+++ b/layout/reftests/bidi/746987-1.html
@@ -1,16 +1,14 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<style>
.plaintext {
- unicode-bidi: -moz-plaintext;
- unicode-bidi: -webkit-plaintext;
unicode-bidi: plaintext;
}
</style>
<title>unicode-bidi:plaintext on inline</title>
</head>
<body>
<div>[<span class="plaintext">:-) א</span>]: 100</div>
</body>
--- a/layout/reftests/bidi/746987-2.html
+++ b/layout/reftests/bidi/746987-2.html
@@ -9,18 +9,16 @@
}
.test {
border: medium solid gray;
padding: 10px;
width: 400px;
margin: 20px;
}
.plaintext {
- unicode-bidi: -moz-plaintext;
- unicode-bidi: -webkit-plaintext;
unicode-bidi: plaintext;
}
</style>
<title>unicode-bidi:plaintext on inline with paragraph breaks</title>
</head>
<body>
<div class="test">
<span class="plaintext">a-><br/>א-><br/>a-><br/>א-></span>
--- a/layout/reftests/bidi/746987-3.html
+++ b/layout/reftests/bidi/746987-3.html
@@ -9,23 +9,19 @@
}
.test {
border: medium solid gray;
padding: 10px;
width: 400px;
margin: 20px;
}
.plaintext {
- unicode-bidi: -moz-plaintext;
- unicode-bidi: -webkit-plaintext;
unicode-bidi: plaintext;
}
.isolate {
- unicode-bidi: -moz-isolate;
- unicode-bidi: -webkit-isolate;
unicode-bidi: isolate;
}
</style>
<title>unicode-bidi:plaintext does not apply to embedded unicode-bidi:isolate</title>
</head>
<body>
<div class="test">
<span class="plaintext"><span class="isolate">א-></span>=></span>
--- a/layout/reftests/bidi/746987-4.html
+++ b/layout/reftests/bidi/746987-4.html
@@ -9,18 +9,16 @@
}
.test {
border: medium solid gray;
padding: 10px;
width: 400px;
margin: 20px;
}
.plaintext {
- unicode-bidi: -moz-plaintext;
- unicode-bidi: -webkit-plaintext;
unicode-bidi: plaintext;
}
</style>
<title>unicode-bidi:plaintext does not apply to embedded display:block</title>
</head>
<body>
<div class="test">
<div class="plaintext">
--- a/layout/reftests/bidi/869833-1.xul
+++ b/layout/reftests/bidi/869833-1.xul
@@ -1,11 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="data:text/css,
-treechildren::-moz-tree-cell, label { unicode-bidi: -moz-plaintext; }
+treechildren::-moz-tree-cell, label { unicode-bidi: plaintext; }
tree { height: 100px; }
"?>
<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<tree>
<treecols>
<treecol flex="1"/>
</treecols>
<treechildren>
--- a/layout/reftests/bidi/brackets-3b-ltr-ref.html
+++ b/layout/reftests/bidi/brackets-3b-ltr-ref.html
@@ -1,15 +1,15 @@
<!DOCTYPE html>
<meta charset="utf-8">
<style>
body { font: 32px monospace; }
div { text-align: center; }
-span { unicode-bidi: -moz-isolate; unicode-bidi: isolate; }
+span { unicode-bidi: isolate; }
</style>
<body>
<!--
http://unicode.org/reports/tr9/#N0, Example 3, LTR and RTL exchanged:
arabic BOOK(S)
-->
--- a/layout/reftests/bidi/brackets-3b-rtl-ref.html
+++ b/layout/reftests/bidi/brackets-3b-rtl-ref.html
@@ -1,15 +1,15 @@
<!DOCTYPE html>
<meta charset="utf-8">
<style>
body { font: 32px monospace; }
div { text-align: center; }
-span { unicode-bidi: -moz-isolate; unicode-bidi: isolate; }
+span { unicode-bidi: isolate; }
</style>
<body>
<!--
http://unicode.org/reports/tr9/#N0, Example 3, LTR and RTL exchanged:
arabic BOOK(S)
-->
--- a/layout/reftests/bidi/dirAuto/889742-1.html
+++ b/layout/reftests/bidi/dirAuto/889742-1.html
@@ -1,17 +1,15 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Auto dir and alignment</title>
<style type="text/css">
p.plaintext {
- unicode-bidi: -moz-plaintext;
- unicode-bidi: -webkit-plaintext;
unicode-bidi: plaintext;
}
</style>
</head>
<body>
<h1>Auto dir and alignment</h1>
<p>Every line below should read "<span style="unicode-bidi: bidi-override"
>!world םולש</span>" and should be aligned to the right</p>
--- a/layout/reftests/bidi/unicode-bidi-isolate-aharon.html
+++ b/layout/reftests/bidi/unicode-bidi-isolate-aharon.html
@@ -1,15 +1,13 @@
<!DOCTYPE html>
<html><head>
<title>Test cases for unicode-bidi:isolate</title>
<style>
.isolate {
- unicode-bidi: -webkit-isolate;
- unicode-bidi: -moz-isolate;
unicode-bidi: isolate;
}
</style>
</head><body>
opposite-to-base isolate followed by number.
<div>
<div class="test">
<span class="isolate">א</span> (3 reviews)
--- a/layout/reftests/bidi/unicode-bidi-isolate-basic.html
+++ b/layout/reftests/bidi/unicode-bidi-isolate-basic.html
@@ -6,17 +6,17 @@
<style>
.resultsDiv {
-moz-column-width: 3em;
-webkit-column-width: 3em;
-moz-column-gap: 5em;
-webkit-column-gap: 5em;
text-align: left;
}
-.enclosed { unicode-bidi: -moz-isolate; }
+.enclosed { unicode-bidi: isolate; }
</style>
</head>
<body onload="buildTable()">
<div id="resultsContainer" style="position: relative">
<div id="elem" class="resultsDiv"></div>
</div>
</body>
</html>
--- a/layout/reftests/bidi/unicode-bidi-plaintext-textarea-2.html
+++ b/layout/reftests/bidi/unicode-bidi-plaintext-textarea-2.html
@@ -1,16 +1,14 @@
<!DOCTYPE html>
<html><head>
<title>unicode-bidi:plaintext</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style>
.plaintext {
- unicode-bidi:-webkit-plaintext;
- unicode-bidi:-moz-plaintext;
unicode-bidi:plaintext;
}
textarea { text-align: left; resize: none; }
</style>
</head><body>
<div>
The exclamation mark should be on the left side of the first line
and on the right side of the second line.
--- a/layout/reftests/bidi/unicode-bidi-plaintext-textarea-3.html
+++ b/layout/reftests/bidi/unicode-bidi-plaintext-textarea-3.html
@@ -1,16 +1,14 @@
<!DOCTYPE html>
<html><head>
<title>unicode-bidi:plaintext</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style>
.plaintext {
- unicode-bidi:-webkit-plaintext;
- unicode-bidi:-moz-plaintext;
unicode-bidi:plaintext;
}
textarea { text-align: left; resize: none; }
</style>
</head><body>
<div>
The exclamation mark should be on the left side of the first line
and on the right side of the second line.
--- a/layout/reftests/bidi/unicode-bidi-plaintext-textarea-4.html
+++ b/layout/reftests/bidi/unicode-bidi-plaintext-textarea-4.html
@@ -1,16 +1,14 @@
<!DOCTYPE html>
<html><head>
<title>unicode-bidi:plaintext</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style>
.plaintext {
- unicode-bidi:-webkit-plaintext;
- unicode-bidi:-moz-plaintext;
unicode-bidi:plaintext;
}
textarea { text-align: left; resize: none; }
</style>
</head><body>
<div>
The exclamation mark should be on the left side of the first line
and on the right side of the second line.
--- a/layout/reftests/bidi/unicode-bidi-plaintext.html
+++ b/layout/reftests/bidi/unicode-bidi-plaintext.html
@@ -2,17 +2,17 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style>
div, pre { text-align: left; }
</style>
</head>
<body>
-<div style="unicode-bidi: -webkit-plaintext; unicode-bidi: -moz-plaintext; unicode-bidi: plaintext;">
+<div style="unicode-bidi: plaintext;">
!hello.
<br>
!שלום.
<br>
hello, לוי!
<br>
שלום, WebKit!
</div>
--- a/layout/reftests/css-ruby/common.css
+++ b/layout/reftests/css-ruby/common.css
@@ -1,15 +1,15 @@
@font-face {
font-family: Ahem;
src: url(../fonts/Ahem.ttf);
}
rbc {
display: ruby-base-container;
- unicode-bidi: -moz-isolate;
+ unicode-bidi: isolate;
}
[pseudo] {
font-size: inherit;
line-height: inherit;
}
[pseudo] > rt {
font-size: 50%;
}
--- a/layout/style/res/html.css
+++ b/layout/style/res/html.css
@@ -3,17 +3,17 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
@namespace url(http://www.w3.org/1999/xhtml); /* set default namespace to HTML */
@namespace xul url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);
/* bidi */
[dir] {
- unicode-bidi: -moz-isolate;
+ unicode-bidi: isolate;
}
[dir="rtl"] {
direction: rtl;
}
[dir="ltr"] {
direction: ltr;
}
@@ -78,29 +78,29 @@ table,
tbody,
td,
tfoot,
th,
thead,
tr,
ul,
xmp {
- unicode-bidi: -moz-isolate;
+ unicode-bidi: isolate;
}
bdi, output {
- unicode-bidi: -moz-isolate;
+ unicode-bidi: isolate;
}
bdo, bdo[dir] {
unicode-bidi: bidi-override;
}
bdo[dir="auto"] {
- unicode-bidi: -moz-isolate-override;
+ unicode-bidi: isolate-override;
}
-textarea[dir="auto"], pre[dir="auto"] { unicode-bidi: -moz-plaintext; }
+textarea[dir="auto"], pre[dir="auto"] { unicode-bidi: plaintext; }
/* blocks */
article,
aside,
details,
div,
dt,
@@ -639,17 +639,17 @@ hr[size="1"] {
}
img:-moz-broken::before, input:-moz-broken::before,
img:-moz-user-disabled::before, input:-moz-user-disabled::before,
img:-moz-loading::before, input:-moz-loading::before,
applet:-moz-empty-except-children-with-localname(param):-moz-broken::before,
applet:-moz-empty-except-children-with-localname(param):-moz-user-disabled::before {
content: -moz-alt-content !important;
- unicode-bidi: -moz-isolate;
+ unicode-bidi: isolate;
}
:-moz-any(object,applet):-moz-any(:-moz-broken,:-moz-user-disabled) > *|* {
/*
Inherit in the object's alignment so that if we aren't aligned explicitly
we'll end up in the right place vertically. See bug 36997. Note that this
is not !important because we _might_ be aligned explicitly.
*/
@@ -850,10 +850,10 @@ rtc:lang(zh), rt:lang(zh) {
rtc:lang(zh-TW), rt:lang(zh-TW) {
font-size: 30%; /* bopomofo */
-moz-min-font-size-ratio: 30%;
}
rtc > rt {
font-size: inherit;
}
ruby, rb, rt, rtc {
- unicode-bidi: -moz-isolate;
+ unicode-bidi: isolate;
}
--- a/layout/style/res/ua.css
+++ b/layout/style/res/ua.css
@@ -71,33 +71,33 @@
*|*::-moz-table-cell {
display: table-cell !important;
white-space: inherit;
}
/* Ruby */
*|*::-moz-ruby {
display: ruby;
- unicode-bidi: -moz-isolate;
+ unicode-bidi: isolate;
}
*|*::-moz-ruby-base {
display: ruby-base;
- unicode-bidi: -moz-isolate;
+ unicode-bidi: isolate;
}
*|*::-moz-ruby-text {
display: ruby-text;
- unicode-bidi: -moz-isolate;
+ unicode-bidi: isolate;
}
*|*::-moz-ruby-base-container {
display: ruby-base-container;
- unicode-bidi: -moz-isolate;
+ unicode-bidi: isolate;
}
*|*::-moz-ruby-text-container {
display: ruby-text-container;
- unicode-bidi: -moz-isolate;
+ unicode-bidi: isolate;
}
/* Lists */
*|*::-moz-list-bullet, *|*::-moz-list-number {
display: inline;
vertical-align: baseline;
font-variant-numeric: tabular-nums;
--- a/layout/style/res/viewsource.css
+++ b/layout/style/res/viewsource.css
@@ -86,16 +86,16 @@ span[id]:before {
.highlight .markupdeclaration {
color: steelblue;
font-style: italic;
}
span:not(.error), a:not(.error) {
unicode-bidi: embed;
}
span[id] {
- unicode-bidi: -moz-isolate;
+ unicode-bidi: isolate;
}
.highlight .error,
.highlight .error > :-moz-any(.start-tag, .end-tag, .comment, .cdata, .doctype,
.pi, .entity, .attribute-name, .attribute-value) {
color: red;
font-weight: bold;
}
--- a/toolkit/components/prompts/content/commonDialog.css
+++ b/toolkit/components/prompts/content/commonDialog.css
@@ -8,15 +8,15 @@
max-width: 45em;
}
#info\.body {
-moz-user-focus: normal;
-moz-user-select: text;
cursor: text !important;
white-space: pre-wrap;
- unicode-bidi: -moz-plaintext;
+ unicode-bidi: plaintext;
}
#loginLabel, #password1Label {
text-align: right;
}
--- a/toolkit/components/prompts/content/tabprompts.css
+++ b/toolkit/components/prompts/content/tabprompts.css
@@ -21,14 +21,14 @@ tabmodalprompt {
}
.info\.body {
margin: 0 !important;
-moz-user-focus: normal;
-moz-user-select: text;
cursor: text !important;
white-space: pre-wrap;
- unicode-bidi: -moz-plaintext;
+ unicode-bidi: plaintext;
}
label[value=""] {
visibility: collapse;
}