Bug 1594122 - convert XBL binding to custom element in 348049-1.xhtml reftest r=bzbarsky
authorAlexander Surkov <surkov.alexander@gmail.com>
Thu, 14 Nov 2019 17:40:20 +0000
changeset 502001 d395b70f3ff8af258f4ccb2e78cef02c27cf9ff4
parent 502000 f7cc2f6d9640820f5278bbc7787ccae542e06e69
child 502002 512d489d83e128358c960823d75b22bd59cb7163
push id114172
push userdluca@mozilla.com
push dateTue, 19 Nov 2019 11:31:10 +0000
treeherdermozilla-inbound@b5c5ba07d3db [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbzbarsky
bugs1594122, 348049
milestone72.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1594122 - convert XBL binding to custom element in 348049-1.xhtml reftest r=bzbarsky Differential Revision: https://phabricator.services.mozilla.com/D52854
layout/reftests/bugs/348049-1.xhtml
layout/reftests/bugs/reftest.list
--- a/layout/reftests/bugs/348049-1.xhtml
+++ b/layout/reftests/bugs/348049-1.xhtml
@@ -1,24 +1,26 @@
 <html xmlns="http://www.w3.org/1999/xhtml"
-      xmlns:html="http://www.w3.org/1999/xhtml"
       class="reftest-wait">
   <head>
-    <bindings xmlns="http://www.mozilla.org/xbl">
-      <binding id="td">
-        <content>
-          <html:td><children/></html:td>
-        </content>
-      </binding>
-    </bindings>
-    <script>
+    <script><![CDATA[
+      customElements.define("custom-td", class extends HTMLDivElement {
+        constructor() {
+          super();
+          this.attachShadow({ mode: "open" });
+          let td = document.createElement('td');
+          td.append(document.createElement('slot'));
+          this.shadowRoot.append(td);
+        }
+      }, {
+        extends: "div",
+      });
       function f1() {
         document.getElementById("outer")
                 .appendChild(document.createTextNode("PASS"));
         document.documentElement.className = "";
       }
-    </script>
+    ]]></script>
   </head>
   <body onload="f1();">
-    <div id="outer" style="-moz-binding: url(#td)"/>
+    <div is="custom-td" id="outer"></div>
   </body>
-
 </html>
--- a/layout/reftests/bugs/reftest.list
+++ b/layout/reftests/bugs/reftest.list
@@ -468,17 +468,17 @@ fuzzy-if(skiaContent,0-2,0-3) == 339289-
 == 345267-1a.html 345267-1-ref.html
 == 345267-1b.html 345267-1-ref.html
 == 345267-1c.html 345267-1-ref.html
 == 345267-1d.html 345267-1-ref.html
 fuzzy-if(skiaContent,0-4,0-2) == 346774-1a.html 346774-1-ref.html
 fuzzy-if(skiaContent,0-4,0-2) == 346774-1b.html 346774-1-ref.html
 fuzzy-if(skiaContent,0-4,0-2) == 346774-1c.html 346774-1-ref.html
 == 347912-1.html 347912-1-ref.html
-skip-if(!xbl) == 348049-1.xhtml 348049-1-ref.xhtml
+== 348049-1.xhtml 348049-1-ref.xhtml
 == 348516-1.html 348516-1-ref.html
 == 348516-2.html 348516-2-ref.html
 != 348516-2.html 348516-2-notref.html
 != 348516-3.html 348516-3-notref.html
 == 348597-1.html 348597-ref.html
 == 348809-1a.html 348809-1-ref.html
 == 348809-1b.html 348809-1-ref.html
 == 348809-1c.html 348809-1-ref.html