Bug 1420946 - Don't try to share style on quirks mode whenever two elements have different id. r=emilio a=gchang
authorXidorn Quan <me@upsuper.org>
Wed, 29 Nov 2017 17:34:37 -0600
changeset 442690 9b41fc04fab1a5f5670a324fd48ec03ccc0c6e24
parent 442689 306f3de7c409ab29dd5c3c14b32a643b5e567b3a
child 442691 0319dd2d58a9161baceb8d91e023573f4d40c279
push id8301
push userarchaeopteryx@coole-files.de
push dateMon, 04 Dec 2017 14:09:26 +0000
treeherdermozilla-beta@3da0dff84972 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersemilio, gchang
bugs1420946
milestone58.0
Bug 1420946 - Don't try to share style on quirks mode whenever two elements have different id. r=emilio a=gchang MozReview-Commit-ID: FcHXGUoMMbD
layout/reftests/bugs/1420946-1-ref.html
layout/reftests/bugs/1420946-1.html
layout/reftests/bugs/reftest.list
new file mode 100644
--- /dev/null
+++ b/layout/reftests/bugs/1420946-1-ref.html
@@ -0,0 +1,4 @@
+<!-- ~*quirks mode*~ -->
+<div></div>
+<p style="color: green">should be green
+<p>should be unstyled
new file mode 100644
--- /dev/null
+++ b/layout/reftests/bugs/1420946-1.html
@@ -0,0 +1,9 @@
+<!-- ~*quirks mode*~ -->
+<style>
+#lolquirky {
+  color: green;
+}
+</style>
+<div></div>
+<p id="lolQuirky">should be green
+<p>should be unstyled
--- a/layout/reftests/bugs/reftest.list
+++ b/layout/reftests/bugs/reftest.list
@@ -2043,8 +2043,10 @@ needs-focus != 1377447-1.html 1377447-2.
 == 1401317.html 1401317-ref.html
 == 1401992.html 1401992-ref.html
 == 1405878-1.xml 1405878-1-ref.xml
 == 1404057.html 1404057-ref.html
 != 1404057.html 1404057-noref.html
 == 1406183-1.html 1406183-1-ref.html
 == 1410028.html 1410028-ref.html
 test-pref(font.size.systemFontScale,200) == 1412743.html 1412743-ref.html
+== 1420946-1.html 1420946-1-ref.html
+