From 554a211ecc898d5b4360246e707402b6f1cd3cfe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Wang?= Date: Fri, 11 Sep 2020 23:34:44 -0700 Subject: [PATCH] [mathml] Make math display values on non-MathML elements compute to flow 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 --- .../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 + + + + +
+ +
+
+
+
+ + + + + + +
+ +