Bug 1485711 [wpt PR 12643] - HTML: test fieldset with shadow DOM and display: contents, a=testonly
authorSimon Pieters <zcorpan@gmail.com>
Fri, 24 Aug 2018 13:03:59 +0000
changeset 491627 746986266e94d0af5def61af3941b2a69bd76324
parent 491626 2ceb14ce02092b9f9725ff4e4ca3fddd7480602c
child 491628 f9f93f604ae206d027a3bafc4657ecfc4405bfa6
push id1815
push userffxbld-merge
push dateMon, 15 Oct 2018 10:40:45 +0000
treeherdermozilla-release@18d4c09e9378 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1485711, 12643
milestone63.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 1485711 [wpt PR 12643] - HTML: test fieldset with shadow DOM and display: contents, a=testonly Automatic update from web-platform-testsHTML: test fieldset with shadow DOM and display: contents See https://github.com/whatwg/html/issues/3331 -- wpt-commits: 69e18d06f5030e3567dcf323e24452c7f4b5f6df wpt-pr: 12643
testing/web-platform/meta/MANIFEST.json
testing/web-platform/tests/html/rendering/non-replaced-elements/the-fieldset-element-0/fieldset-div-display-contents.html
testing/web-platform/tests/html/rendering/non-replaced-elements/the-fieldset-element-0/fieldset-foo-ref.html
testing/web-platform/tests/html/rendering/non-replaced-elements/the-fieldset-element-0/fieldset-shadow-dom.html
--- a/testing/web-platform/meta/MANIFEST.json
+++ b/testing/web-platform/meta/MANIFEST.json
@@ -285755,26 +285755,41 @@
      {}
     ]
    ],
    "html/rendering/non-replaced-elements/the-fieldset-element-0/fieldset-containing-block-ref.html": [
     [
      {}
     ]
    ],
+   "html/rendering/non-replaced-elements/the-fieldset-element-0/fieldset-div-display-contents.html": [
+    [
+     {}
+    ]
+   ],
+   "html/rendering/non-replaced-elements/the-fieldset-element-0/fieldset-foo-ref.html": [
+    [
+     {}
+    ]
+   ],
    "html/rendering/non-replaced-elements/the-fieldset-element-0/fieldset-overflow-hidden-ref.html": [
     [
      {}
     ]
    ],
    "html/rendering/non-replaced-elements/the-fieldset-element-0/fieldset-painting-order-ref.html": [
     [
      {}
     ]
    ],
+   "html/rendering/non-replaced-elements/the-fieldset-element-0/fieldset-shadow-dom.html": [
+    [
+     {}
+    ]
+   ],
    "html/rendering/non-replaced-elements/the-fieldset-element-0/fieldset-transform-translatez-ref.html": [
     [
      {}
     ]
    ],
    "html/rendering/non-replaced-elements/the-fieldset-element-0/legend-float-ref.html": [
     [
      {}
@@ -597752,20 +597767,28 @@
   "html/rendering/non-replaced-elements/the-fieldset-element-0/fieldset-default-style.html": [
    "f07c84f406cefc7054e8a13c2796d3d82673bdf7",
    "testharness"
   ],
   "html/rendering/non-replaced-elements/the-fieldset-element-0/fieldset-display.html": [
    "953328982032dae2d508619b90188534179a26a8",
    "testharness"
   ],
+  "html/rendering/non-replaced-elements/the-fieldset-element-0/fieldset-div-display-contents.html": [
+   "5d17b91290f41db86147dcd80385aecbf19c14c7",
+   "support"
+  ],
   "html/rendering/non-replaced-elements/the-fieldset-element-0/fieldset-flexbox.html": [
    "d2b1d30d8cc828496fa76cc887e01149f2a44809",
    "testharness"
   ],
+  "html/rendering/non-replaced-elements/the-fieldset-element-0/fieldset-foo-ref.html": [
+   "cace814a8ce9f51ee4eaa1626b6e5377f528f22a",
+   "support"
+  ],
   "html/rendering/non-replaced-elements/the-fieldset-element-0/fieldset-grid.html": [
    "7e9cf3643d00c59caa5bb37682a2fc8fa9ddee89",
    "testharness"
   ],
   "html/rendering/non-replaced-elements/the-fieldset-element-0/fieldset-multicol.html": [
    "bdb2c2fd94686b502ed5a663b1026180283af22f",
    "testharness"
   ],
@@ -597780,16 +597803,20 @@
   "html/rendering/non-replaced-elements/the-fieldset-element-0/fieldset-painting-order-ref.html": [
    "13b262a804ab781905b3e4d3483554d9dd95b4d8",
    "support"
   ],
   "html/rendering/non-replaced-elements/the-fieldset-element-0/fieldset-painting-order.html": [
    "7bd2cedb1b6771398c808d1b7c8f68840bfb9b6f",
    "reftest"
   ],
+  "html/rendering/non-replaced-elements/the-fieldset-element-0/fieldset-shadow-dom.html": [
+   "3b46eb03c6c41bc616ebcc85bc6d635496e5eeed",
+   "support"
+  ],
   "html/rendering/non-replaced-elements/the-fieldset-element-0/fieldset-transform-translatez-ref.html": [
    "c0db2d7c71aaf07bfc91577c94b0cc4fb8352054",
    "support"
   ],
   "html/rendering/non-replaced-elements/the-fieldset-element-0/fieldset-transform-translatez.html": [
    "df30468b0041323667946739369ec7d42bf47742",
    "reftest"
   ],
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/html/rendering/non-replaced-elements/the-fieldset-element-0/fieldset-div-display-contents.html
@@ -0,0 +1,12 @@
+<!DOCTYPE html>
+<title>fieldset and div with display: contents</title>
+<link rel=fieldset-foo-ref.html>
+<style>
+div { display: contents; }
+</style>
+<p>There should be a normal fieldset below with the legend "Foo".</p>
+<fieldset>
+ <div>
+  <legend>Foo</legend>
+ </div>
+</fieldset>
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/html/rendering/non-replaced-elements/the-fieldset-element-0/fieldset-foo-ref.html
@@ -0,0 +1,6 @@
+<!DOCTYPE html>
+<title>Reference with a fieldset and legend "Foo"</title>
+<p>There should be a normal fieldset below with the legend "Foo".</p>
+<fieldset>
+  <legend>Foo</legend>
+</fieldset>
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/html/rendering/non-replaced-elements/the-fieldset-element-0/fieldset-shadow-dom.html
@@ -0,0 +1,28 @@
+<!DOCTYPE html>
+<title>fieldset and shadow DOM</title>
+<link rel=fieldset-foo-ref.html>
+<p>There should be a normal fieldset below with the legend "Foo".</p>
+<template id="my-fieldset">
+  <fieldset><slot name="my-text"></slot></fieldset>
+</template>
+
+<my-fieldset>
+  <legend slot="my-text">Foo</legend>
+</my-fieldset>
+
+<script>
+customElements.define('my-fieldset',
+  class extends HTMLElement {
+    constructor() {
+      super();
+
+      const template = document.getElementById('my-fieldset');
+      const templateContent = template.content;
+
+      this.attachShadow({mode: 'open'}).appendChild(
+        templateContent.cloneNode(true)
+      );
+    }
+  }
+);
+</script>