From 247f23f5fe6b04bee431db7624dd56d78a60a426 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Wang?= Date: Fri, 10 Feb 2023 17:44:27 +0000 Subject: [PATCH] Bug 1815063 [wpt PR 38361] - [mathml] Update WPT tests that assume CSS width/height are ignored, a=testonly MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Automatic update from web-platform-tests [mathml] Update WPT tests that assume CSS width/height are ignored Math WG decided that width/height should be taken into account on all MathML elements [1]. This CL updates the following legacy tests that assume the properties are actually ignored [2]: * `ignored-properties-001.html`: This test was checking the properties are ignored. Remove these checks. * `width-height-001.html`: This test was checking the elements keep the same dimension with or without specifying width, height, inline-size or block-size. Change it to actually verify it does take the specified dimensions. * `display-1.html`: This test was checking that the content of a `` with a specified width is horizontally centered inside a parent div. Now that the width is no longer ignored, instead check that it is horizontally centered within the `math` element. More tests will be added in follow-up CLs to further check the effect of specifying width/height on elements. [1] https://github.com/w3c/mathml-core/issues/75 [2] https://github.com/web-platform-tests/interop/issues/197#issuecomment-1301912244 Bug: 6606 Change-Id: I6ff46b7589f27cc16ba81db126a4ceaa3a31ef61 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4221437 Reviewed-by: Ian Kilpatrick Quick-Run: Rob Buis Commit-Queue: Frédéric Wang Cr-Commit-Position: refs/heads/main@{#1103391} -- wpt-commits: 9352b1202118d24b297659cd15dd92a5215a9c05 wpt-pr: 38361 --- .../css-styling/ignored-properties-001.html | 3 -- .../css-styling/width-height-001.html | 33 ++++++++++++------- .../relations/html5-tree/display-1.html | 11 ++++--- 3 files changed, 28 insertions(+), 19 deletions(-) diff --git a/testing/web-platform/tests/mathml/relations/css-styling/ignored-properties-001.html b/testing/web-platform/tests/mathml/relations/css-styling/ignored-properties-001.html index 0966d96917a6b..06e630ae897fa 100644 --- a/testing/web-platform/tests/mathml/relations/css-styling/ignored-properties-001.html +++ b/testing/web-platform/tests/mathml/relations/css-styling/ignored-properties-001.html @@ -29,9 +29,6 @@ "align-content: end; justify-content: end;", "align-self: end; justify-self: end;", ]; - if (tag !== "mtable") { - ignoredProperties.push("width: 100px !important; height: 200px !important;"); - } ignoredProperties.forEach(ignoredStyle => { document.body.insertAdjacentHTML("beforeend", `
\ diff --git a/testing/web-platform/tests/mathml/relations/css-styling/width-height-001.html b/testing/web-platform/tests/mathml/relations/css-styling/width-height-001.html index e762b0060e54c..48b76aee86308 100644 --- a/testing/web-platform/tests/mathml/relations/css-styling/width-height-001.html +++ b/testing/web-platform/tests/mathml/relations/css-styling/width-height-001.html @@ -10,6 +10,11 @@ +