From 4c0af386f1bc2481e3c77acc1bbda57f06800714 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Wang?= Date: Mon, 14 Sep 2020 04:43:22 -0700 Subject: [PATCH] [mathml] Make math display values on non-MathML elements compute to flow MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This CL aligns with a recent resolution from the CSSWG: https://github.com/w3c/csswg-drafts/issues/5385#issuecomment-690462275 This also ensures that LayoutObjectFactory::CreateMath always receives a MathML element. The new test fails when MathML Core (in particular LayoutNG) is disabled because math display values are not supported. Subtests fail when MathML Core is enabled because multiple display values are not supported. Bug: 1127222, 6606 Change-Id: Ica5558f221960d0f80609dfe0e56c029de7e9c3a Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2404789 Reviewed-by: Rune Lillesveen Commit-Queue: Frédéric Wang Cr-Commit-Position: refs/heads/master@{#806578} --- .../display-math-on-non-mathml-elements.html | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 css/css-display/display-math-on-non-mathml-elements.html diff --git a/css/css-display/display-math-on-non-mathml-elements.html b/css/css-display/display-math-on-non-mathml-elements.html new file mode 100644 index 00000000000000..2d117cfff575be --- /dev/null +++ b/css/css-display/display-math-on-non-mathml-elements.html @@ -0,0 +1,29 @@ + + +display: math and inline-math on non-MathML compute to flow + + + + +
+ +
+
+
+
+ + + + + + +
+ +