Bug 1490112 [wpt PR 12939] - HTML: test ::before and ::after on fieldset, a=testonly
authorSimon Pieters <zcorpan@gmail.com>
Thu, 13 Sep 2018 02:54:25 +0000
changeset 436547 873fc52d8225c55401c9f1c41ae1d2b301cac763
parent 436546 cac62569adb80cffcabeae2af4558080e97ab892
child 436548 f48b42bbe43e78ff4889c67dfdd01c5319a0b79c
push id107878
push userarchaeopteryx@coole-files.de
push dateSat, 15 Sep 2018 18:06:54 +0000
treeherdermozilla-inbound@640ea796e98b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1490112, 12939
milestone64.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 1490112 [wpt PR 12939] - HTML: test ::before and ::after on fieldset, a=testonly Automatic update from web-platform-testsHTML: test ::before and ::after on fieldset See https://github.com/whatwg/html/pull/3934 -- wpt-commits: d0949fa95df08de5fd7ce52e471275458ffc3eae wpt-pr: 12939
testing/web-platform/meta/MANIFEST.json
testing/web-platform/tests/html/rendering/non-replaced-elements/the-fieldset-and-legend-elements/fieldset-generated-content.html
--- a/testing/web-platform/meta/MANIFEST.json
+++ b/testing/web-platform/meta/MANIFEST.json
@@ -359968,16 +359968,22 @@
     ]
    ],
    "html/rendering/non-replaced-elements/the-fieldset-and-legend-elements/fieldset-flexbox.html": [
     [
      "/html/rendering/non-replaced-elements/the-fieldset-and-legend-elements/fieldset-flexbox.html",
      {}
     ]
    ],
+   "html/rendering/non-replaced-elements/the-fieldset-and-legend-elements/fieldset-generated-content.html": [
+    [
+     "/html/rendering/non-replaced-elements/the-fieldset-and-legend-elements/fieldset-generated-content.html",
+     {}
+    ]
+   ],
    "html/rendering/non-replaced-elements/the-fieldset-and-legend-elements/fieldset-grid.html": [
     [
      "/html/rendering/non-replaced-elements/the-fieldset-and-legend-elements/fieldset-grid.html",
      {}
     ]
    ],
    "html/rendering/non-replaced-elements/the-fieldset-and-legend-elements/fieldset-multicol.html": [
     [
@@ -605279,16 +605285,20 @@
   "html/rendering/non-replaced-elements/the-fieldset-and-legend-elements/fieldset-flexbox.html": [
    "07c73554e59ccb576e590192e923de6b7100e1ae",
    "testharness"
   ],
   "html/rendering/non-replaced-elements/the-fieldset-and-legend-elements/fieldset-foo-ref.html": [
    "cace814a8ce9f51ee4eaa1626b6e5377f528f22a",
    "support"
   ],
+  "html/rendering/non-replaced-elements/the-fieldset-and-legend-elements/fieldset-generated-content.html": [
+   "a4e7a490c770613bcc1d6170b64291c75c3cf074",
+   "testharness"
+  ],
   "html/rendering/non-replaced-elements/the-fieldset-and-legend-elements/fieldset-grid.html": [
    "bbb71dfa7027aad90392ec39112eafe1dc9abf65",
    "testharness"
   ],
   "html/rendering/non-replaced-elements/the-fieldset-and-legend-elements/fieldset-list-item-ref.html": [
    "05b8ca4770b18a91aaf2d9f3038d6fe4162f289f",
    "support"
   ],
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/html/rendering/non-replaced-elements/the-fieldset-and-legend-elements/fieldset-generated-content.html
@@ -0,0 +1,18 @@
+<!doctype html>
+<title>fieldset generated content</title>
+<script src=/resources/testharness.js></script>
+<script src=/resources/testharnessreport.js></script>
+<style>
+fieldset { display: inline-block; }
+#test::before, #test::after { content:"X"; }
+</style>
+<fieldset id=test><legend>A</legend>Y</fieldset>
+<fieldset id=ref><legend>A</legend>XYX</fieldset>
+<script>
+test(() => {
+  const testElm = document.querySelector('#test');
+  const refElm = document.querySelector('#ref');
+  assert_equals(testElm.clientWidth, refElm.clientWidth, 'clientWidth');
+  assert_equals(testElm.clientHeight, refElm.clientHeight, 'clientHeight');
+});
+</script>