Bug 1404057 - stylo: Add reftest for ensuring lang is not reset by the `all` shorthand. r=xidorn, a=ritu
authorManish Goregaokar <manishearth@gmail.com>
Tue, 03 Oct 2017 08:30:34 -0700
changeset 432314 b95ce26e0412
parent 432313 d6cb9fa359e5
child 432315 4499acb9b54b
push id7929
push userryanvm@gmail.com
push date2017-10-09 18:47 +0000
treeherdermozilla-beta@c4235f5a700c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersxidorn, ritu
bugs1404057
milestone57.0
Bug 1404057 - stylo: Add reftest for ensuring lang is not reset by the `all` shorthand. r=xidorn, a=ritu MozReview-Commit-ID: HgjJDwUM6Ju
layout/reftests/bugs/1404057-noref.html
layout/reftests/bugs/1404057-ref.html
layout/reftests/bugs/1404057.html
layout/reftests/bugs/reftest.list
new file mode 100644
--- /dev/null
+++ b/layout/reftests/bugs/1404057-noref.html
@@ -0,0 +1,12 @@
+<!DOCTYPE html>
+<meta charset="UTF-8">
+<style>
+  div {
+    height: 2em;
+  }
+</style>
+<body>
+  <div lang="ja">令</div>
+  <div lang="ja">令</div>
+  <div lang="ja">令</div>
+</body>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/bugs/1404057-ref.html
@@ -0,0 +1,12 @@
+<!DOCTYPE html>
+<meta charset="UTF-8">
+<style>
+  div {
+    height: 2em;
+  }
+</style>
+<body>
+  <div lang="zh-CN">令</div>
+  <div lang="ja">令</div>
+  <div lang="ja">令</div>
+</body>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/bugs/1404057.html
@@ -0,0 +1,12 @@
+<!DOCTYPE html>
+<meta charset="UTF-8">
+<style>
+  div {
+    height: 2em;
+  }
+</style>
+<body lang="zh-CN">
+  <div>令</div>
+  <div lang="ja">令</div>
+  <div><div lang="ja" style="all: inherit">令</div></div>
+</body>
--- a/layout/reftests/bugs/reftest.list
+++ b/layout/reftests/bugs/reftest.list
@@ -2039,8 +2039,10 @@ needs-focus != 1377447-1.html 1377447-2.
 == 1380224-1.html 1380224-1-ref.html
 == 1384065.html 1384065-ref.html
 == 1384275-1.html 1384275-1-ref.html
 == 1381821.html 1381821-ref.html
 == 1395650-1.html 1395650-1-ref.html
 == 1398500-1.html 1398500-1-ref.html
 == 1401317.html 1401317-ref.html
 == 1401992.html 1401992-ref.html
+== 1404057.html 1404057-ref.html
+!= 1404057.html 1404057-noref.html