Bug 1249497 - Use isolate-override for bdo elements. r?jfkthame draft
authorXidorn Quan <me@upsuper.org>
Fri, 01 Jul 2016 09:53:26 +1000
changeset 383113 4ab4ed5a5fad
parent 383112 fee43b06601b
child 524397 17efbb88a415
push id21938
push userxquan@mozilla.com
push dateFri, 01 Jul 2016 08:22:57 +0000
reviewersjfkthame
bugs1249497
milestone50.0a1
Bug 1249497 - Use isolate-override for bdo elements. r?jfkthame MozReview-Commit-ID: 9Sx87z5gcqZ
layout/style/res/html.css
layout/style/test/test_default_bidi_css.html
--- a/layout/style/res/html.css
+++ b/layout/style/res/html.css
@@ -85,19 +85,16 @@ ul,
 xmp {
   unicode-bidi: isolate;
 }
 
 bdi, output {
   unicode-bidi: isolate;
 }
 bdo, bdo[dir] {
-  unicode-bidi: bidi-override;
-}
-bdo[dir="auto"] {
   unicode-bidi: isolate-override;
 }
 textarea[dir="auto"], pre[dir="auto"] { unicode-bidi: plaintext; }
 
 /* blocks */
 
 article,
 aside,
--- a/layout/style/test/test_default_bidi_css.html
+++ b/layout/style/test/test_default_bidi_css.html
@@ -44,21 +44,21 @@ var tests = [
     ['bdi', {'dir': ''}, 'ltr', 'isolate'],
 
     ['output', {}, 'ltr', 'isolate'],
     ['output', {'dir': 'ltr'}, 'ltr', 'isolate'],
     ['output', {'dir': 'rtl'}, 'rtl', 'isolate'],
     ['output', {'dir': 'auto'}, 'ltr', 'isolate'],
     ['output', {'dir': ''}, 'ltr', 'isolate'],
 
-    ['bdo', {}, 'ltr', 'bidi-override'],
-    ['bdo', {'dir': 'ltr'}, 'ltr', 'bidi-override'],
-    ['bdo', {'dir': 'rtl'}, 'rtl', 'bidi-override'],
+    ['bdo', {}, 'ltr', 'isolate-override'],
+    ['bdo', {'dir': 'ltr'}, 'ltr', 'isolate-override'],
+    ['bdo', {'dir': 'rtl'}, 'rtl', 'isolate-override'],
     ['bdo', {'dir': 'auto'}, 'ltr', 'isolate-override'],
-    ['bdo', {'dir': ''}, 'ltr', 'bidi-override'],
+    ['bdo', {'dir': ''}, 'ltr', 'isolate-override'],
 
     ['textarea', {}, 'ltr', 'normal'],
     ['textarea', {'dir': 'ltr'}, 'ltr', 'isolate'],
     ['textarea', {'dir': 'rtl'}, 'rtl', 'isolate'],
     ['textarea', {'dir': 'auto'}, 'ltr', 'plaintext'],
     ['textarea', {'dir': ''}, 'ltr', 'isolate'],
 
     ['pre', {}, 'ltr', 'isolate'],