Bug 1636066 [wpt PR 23452] - Adjust font-size expectation for none/mprescripts, a=testonly
authorRob Buis <rbuis@igalia.com>
Wed, 13 May 2020 09:45:53 +0000
changeset 531126 db5e4f264153f9968c7c97298cdc8e316586000e
parent 531125 56b03c5d981273f70e61294027c763cbac6a351c
child 531127 6c00c7d27f0b01d6f7830d5f0d01693ccd071185
push id37435
push userapavel@mozilla.com
push dateWed, 20 May 2020 15:28:23 +0000
treeherdermozilla-central@5415da14ec9a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1636066, 23452
milestone78.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 1636066 [wpt PR 23452] - Adjust font-size expectation for none/mprescripts, a=testonly Automatic update from web-platform-tests Skip font-size subtest for none/mprescripts (#23452) The none and mprescripts test fragments are represented using mmultiscripts and subject to a CSS rule that increases the scriptlevel, causing the computed font-size to be a fraction string and hard to test accurately between implementations, so skip it for now. -- wpt-commits: 585eeec5f5f2c5055c70a48593a7adbd4b8a34eb wpt-pr: 23452
testing/web-platform/tests/mathml/relations/css-styling/attribute-mapping-001.html
--- a/testing/web-platform/tests/mathml/relations/css-styling/attribute-mapping-001.html
+++ b/testing/web-platform/tests/mathml/relations/css-styling/attribute-mapping-001.html
@@ -62,16 +62,20 @@
               assert_equals(style.getPropertyValue("background-color"), "rgb(173, 216, 230)", "attribute specified");
               // The color names are case-insensitive.
               // See https://www.w3.org/TR/css-color-3/#html4
               element.setAttribute("mathbackground", "YeLlOw");
               assert_equals(style.getPropertyValue("background-color"), "rgb(255, 255, 0)", "case insensitive");
           }, `mathbackground on the ${tag} element is mapped to CSS background-color`);
 
           test(function() {
+              // "none" and "mprescripts" can only be used as non-first children of mmultiscripts so font-size
+              // is incremented and the resulting fraction string is hard to test accurately, skip for now.
+              if (tag === "none" || tag === "mprescripts")
+                  return;
               assert_equals(style.getPropertyValue("font-size"), "50px", "no attribute");
               element.setAttribute("mathsize", "20px");
               assert_equals(style.getPropertyValue("font-size"), "20px", "attribute specified");
               // unit identifiers are ASCII case-insensitive.
               // https://www.w3.org/TR/css-values-3/#typedef-dimension
               element.setAttribute("mathsize", "30Px");
               assert_equals(style.getPropertyValue("font-size"), "30px", "case insensitive");
           }, `mathsize on the ${tag} element is mapped to CSS font-size`);