From 96e7a9eb953fbc1e79cd502fb60d988a9bfcd46f Mon Sep 17 00:00:00 2001 From: Rob Buis Date: Sat, 24 Oct 2020 10:42:57 +0000 Subject: [PATCH] Bug 1665865 [wpt PR 25617] - [mathml] Implement special drawing of largeop operator in displaystyle, a=testonly MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Automatic update from web-platform-tests [mathml] Implement special drawing of largeop operator in displaystyle This implements special drawing of largeop element in display style as described in step 3. of [1]. A new algorithm is introduced for that purpose and in particular only used for elements that are made of a single glyph. Existing painting logic for stretchy radical symbol is reused and adapted to work with largeop operators. [1] https://mathml-refresh.github.io/mathml-core/#layout-of-operators Bug: 6606 Change-Id: Icca70f4bf464417809970fecc101e5aa7f149621 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2414298 Commit-Queue: Rob Buis Reviewed-by: Koji Ishii Reviewed-by: Frédéric Wang Reviewed-by: Ian Kilpatrick Cr-Commit-Position: refs/heads/master@{#819855} -- wpt-commits: 849c93ccec0cf5fcfbd641d003639be851c51c45 wpt-pr: 25617 --- .../operators/largeop-hit-testing.html | 63 ++++++++++++++++++++++ .../padding-border-margin-002-ref.html | 18 +++++++ .../padding-border-margin-002.html | 34 ++++++++++++ 3 files changed, 115 insertions(+) create mode 100644 testing/web-platform/tests/mathml/presentation-markup/operators/largeop-hit-testing.html create mode 100644 testing/web-platform/tests/mathml/relations/css-styling/padding-border-margin/padding-border-margin-002-ref.html create mode 100644 testing/web-platform/tests/mathml/relations/css-styling/padding-border-margin/padding-border-margin-002.html diff --git a/testing/web-platform/tests/mathml/presentation-markup/operators/largeop-hit-testing.html b/testing/web-platform/tests/mathml/presentation-markup/operators/largeop-hit-testing.html new file mode 100644 index 000000000000..4f6a7782f279 --- /dev/null +++ b/testing/web-platform/tests/mathml/presentation-markup/operators/largeop-hit-testing.html @@ -0,0 +1,63 @@ + + + + +Test hit testing on large operators + + + + + + + + + + + + + + ⫿ + + + + + ⫿ + + + + + + + diff --git a/testing/web-platform/tests/mathml/relations/css-styling/padding-border-margin/padding-border-margin-002-ref.html b/testing/web-platform/tests/mathml/relations/css-styling/padding-border-margin/padding-border-margin-002-ref.html new file mode 100644 index 000000000000..e13a9f47ff4f --- /dev/null +++ b/testing/web-platform/tests/mathml/relations/css-styling/padding-border-margin/padding-border-margin-002-ref.html @@ -0,0 +1,18 @@ + + + + +Padding/border/margin on largeop (reference) + +

This test passes if you see a cyan rectangle of width 300px and + height 1500px, surrounded by a 10px blue padding, surrounded by a 10px + blue/yellow dashed border, itself + surrounded by a 10px pink margin.

+ +
+
+
+
+
+ + diff --git a/testing/web-platform/tests/mathml/relations/css-styling/padding-border-margin/padding-border-margin-002.html b/testing/web-platform/tests/mathml/relations/css-styling/padding-border-margin/padding-border-margin-002.html new file mode 100644 index 000000000000..1ccfbb7005fa --- /dev/null +++ b/testing/web-platform/tests/mathml/relations/css-styling/padding-border-margin/padding-border-margin-002.html @@ -0,0 +1,34 @@ + + + + +Padding/border/margin on largeop + + + + + + + +

This test passes if you see a cyan rectangle of width 300px and + height 1500px, surrounded by a 10px blue padding, surrounded by a 10px + blue/yellow dashed border, itself + surrounded by a 10px pink margin.

+
+ + ⫿ + +
+ + -- 2.11.4.GIT