From ec7d2ac43fb7d41ccc487e88d89240a424371e9e Mon Sep 17 00:00:00 2001 From: Marco Castelluccio Date: Fri, 4 Oct 2019 23:24:27 +0000 Subject: [PATCH] Bug 1581737 [wpt PR 19113] - Add MathML reftest to check that the mode attribute has no effect., a=testonly Automatic update from web-platform-tests Add MathML reftest to check that the mode attribute has no effect. (#19113) See https://github.com/mathml-refresh/mathml/issues/5 -- wpt-commits: e9f2d000237d43f74136cfd40e5a3454f5b54b70 wpt-pr: 19113 UltraBlame original commit: e2a070880d4f8ad517c375e84ed32b1200e7a6fc --- .../relations/html5-tree/display-2-ref.html | 241 ++++++++++ .../relations/html5-tree/display-2.html | 412 ++++++++++++++++++ 2 files changed, 653 insertions(+) create mode 100644 testing/web-platform/tests/mathml/relations/html5-tree/display-2-ref.html create mode 100644 testing/web-platform/tests/mathml/relations/html5-tree/display-2.html diff --git a/testing/web-platform/tests/mathml/relations/html5-tree/display-2-ref.html b/testing/web-platform/tests/mathml/relations/html5-tree/display-2-ref.html new file mode 100644 index 0000000000000..bd91a7e5b6aba --- /dev/null +++ b/testing/web-platform/tests/mathml/relations/html5-tree/display-2-ref.html @@ -0,0 +1,241 @@ +< +! +DOCTYPE +html +> +< +html +> +< +head +> +< +meta +charset += +" +utf +- +8 +" +/ +> +< +title +> +display +attribute +VS +legacy +mode +attribute +( +reference +) +< +/ +title +> +< +/ +head +> +< +body +> +< +p +> +Test +passes +if +you +see +four +green +squares +the +last +one +centered +and +the +others +left +- +aligned +. +< +/ +p +> +< +p +> +< +math +> +< +mspace +width += +" +100px +" +height += +" +100px +" +style += +" +background +: +green +" +> +< +/ +mspace +> +< +/ +math +> +< +/ +p +> +< +p +> +< +math +> +< +mspace +width += +" +100px +" +height += +" +100px +" +style += +" +background +: +green +" +> +< +/ +mspace +> +< +/ +math +> +< +/ +p +> +< +p +> +< +math +display += +" +inline +" +> +< +mspace +width += +" +100px +" +height += +" +100px +" +style += +" +background +: +green +" +> +< +/ +mspace +> +< +/ +math +> +< +/ +p +> +< +p +> +< +math +display += +" +block +" +> +< +mspace +width += +" +100px +" +height += +" +100px +" +style += +" +background +: +green +" +> +< +/ +mspace +> +< +/ +math +> +< +/ +p +> +< +/ +body +> +< +/ +html +> diff --git a/testing/web-platform/tests/mathml/relations/html5-tree/display-2.html b/testing/web-platform/tests/mathml/relations/html5-tree/display-2.html new file mode 100644 index 0000000000000..670bda649fe88 --- /dev/null +++ b/testing/web-platform/tests/mathml/relations/html5-tree/display-2.html @@ -0,0 +1,412 @@ +< +! +DOCTYPE +html +> +< +html +> +< +head +> +< +meta +charset += +" +utf +- +8 +" +/ +> +< +title +> +display +attribute +VS +legacy +mode +attribute +< +/ +title +> +< +link +rel += +" +help +" +href += +" +https +: +/ +/ +mathml +- +refresh +. +github +. +io +/ +mathml +- +core +/ +# +the +- +top +- +level +- +math +- +element +" +> +< +link +rel += +" +help +" +href += +" +https +: +/ +/ +www +. +w3 +. +org +/ +TR +/ +MathML3 +/ +chapter2 +. +html +# +id +. +2 +. +2 +. +2 +" +> +< +link +rel += +" +match +" +href += +" +display +- +2 +- +ref +. +html +" +/ +> +< +meta +name += +" +assert +" +content += +" +Verify +that +the +legacy +mode +attribute +has +no +effect +. +" +> +< +/ +head +> +< +body +> +< +p +> +Test +passes +if +you +see +four +green +squares +the +last +one +centered +and +the +others +left +- +aligned +. +< +/ +p +> +< +p +> +< +math +mode += +" +inline +" +> +< +mspace +width += +" +100px +" +height += +" +100px +" +style += +" +background +: +green +" +> +< +/ +mspace +> +< +/ +math +> +< +/ +p +> +< +p +> +< +math +mode += +" +display +" +> +< +mspace +width += +" +100px +" +height += +" +100px +" +style += +" +background +: +green +" +> +< +/ +mspace +> +< +/ +math +> +< +/ +p +> +< +p +> +< +math +display += +" +inline +" +mode += +" +display +" +> +< +mspace +width += +" +100px +" +height += +" +100px +" +style += +" +background +: +green +" +> +< +/ +mspace +> +< +/ +math +> +< +/ +p +> +< +p +> +< +math +display += +" +block +" +mode += +" +inline +" +> +< +mspace +width += +" +100px +" +height += +" +100px +" +style += +" +background +: +green +" +> +< +/ +mspace +> +< +/ +math +> +< +/ +p +> +< +script +src += +" +/ +mathml +/ +support +/ +feature +- +detection +. +js +" +> +< +/ +script +> +< +script +> +MathMLFeatureDetection +. +ensure_for_match_reftest +( +" +has_mspace +" +) +; +< +/ +script +> +< +/ +body +> +< +/ +html +>