From 8ae3f210900486dbaeed2f043cc8c27c6ff2e63f Mon Sep 17 00:00:00 2001 From: Kent Tamura Date: Sun, 3 Oct 2021 15:15:58 +0000 Subject: [PATCH] Bug 1733199 [wpt PR 30985] - Style: Remove AppliedTextDecoration declared at display:contents elements, a=testonly Automatic update from web-platform-tests Style: Remove AppliedTextDecoration declared at display:contents elements Text decorations declared at display:contents elements should be ignored. * StyleAdjuster::AdjustComputedStyle(): Copy AppliedTextDecoration instances from |layout_parent_style| instead of |parent_style|. This change is for elements which are children of a display:contents element. * StyleResolver::CreateInheritedDisplayContentsStyleIfNeeded(): Drop AppliedTextDecoration declared at |parent_style|. This change is for |Text| node wrappers which are children of a display:contents element. * LayoutTreeBuilderForText::CreateLayoutObject(): Text should have a ComputedStyle same as its wrapper. This change is for |Text| node which are children of a display:contents element. The new behavior matches to Firefox and Safari. Bug: 1252619, 1253243 Change-Id: I66bdbd61b2f4f6ea668d81c6a882f65113d74b4e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3187550 Auto-Submit: Kent Tamura Commit-Queue: Rune Lillesveen Reviewed-by: Rune Lillesveen Cr-Commit-Position: refs/heads/main@{#925670} -- wpt-commits: 59508ecba558b6ac288ea59f65d052eda41406d2 wpt-pr: 30985 --- ...text-decoration-propagation-display-contents-ref.html | 7 +++++++ .../text-decoration-propagation-display-contents.html | 16 ++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 testing/web-platform/tests/css/css-text-decor/reference/text-decoration-propagation-display-contents-ref.html create mode 100644 testing/web-platform/tests/css/css-text-decor/text-decoration-propagation-display-contents.html diff --git a/testing/web-platform/tests/css/css-text-decor/reference/text-decoration-propagation-display-contents-ref.html b/testing/web-platform/tests/css/css-text-decor/reference/text-decoration-propagation-display-contents-ref.html new file mode 100644 index 000000000000..1bbdafa4d171 --- /dev/null +++ b/testing/web-platform/tests/css/css-text-decor/reference/text-decoration-propagation-display-contents-ref.html @@ -0,0 +1,7 @@ + + +

+ Should have + only overline. +

+ diff --git a/testing/web-platform/tests/css/css-text-decor/text-decoration-propagation-display-contents.html b/testing/web-platform/tests/css/css-text-decor/text-decoration-propagation-display-contents.html new file mode 100644 index 000000000000..70e839a035a1 --- /dev/null +++ b/testing/web-platform/tests/css/css-text-decor/text-decoration-propagation-display-contents.html @@ -0,0 +1,16 @@ + + + + + +

+ + Should have + only overline. + +

+ -- 2.11.4.GIT