Bug 1733199 [wpt PR 30985] - Style: Remove AppliedTextDecoration declared at display...
commit8ae3f210900486dbaeed2f043cc8c27c6ff2e63f
authorKent Tamura <tkent@chromium.org>
Sun, 3 Oct 2021 15:15:58 +0000 (3 15:15 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Mon, 4 Oct 2021 00:20:48 +0000 (4 00:20 +0000)
tree38a592d6018cf826dbee4275f168ccfac5e47ddd
parenta1eff22c4f00ec5d3015efa689d70c5ef501fde6
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: 12526191253243
Change-Id: I66bdbd61b2f4f6ea668d81c6a882f65113d74b4e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3187550
Auto-Submit: Kent Tamura <tkent@chromium.org>
Commit-Queue: Rune Lillesveen <futhark@chromium.org>
Reviewed-by: Rune Lillesveen <futhark@chromium.org>
Cr-Commit-Position: refs/heads/main@{#925670}

--

wpt-commits: 59508ecba558b6ac288ea59f65d052eda41406d2
wpt-pr: 30985
testing/web-platform/tests/css/css-text-decor/reference/text-decoration-propagation-display-contents-ref.html [new file with mode: 0644]
testing/web-platform/tests/css/css-text-decor/text-decoration-propagation-display-contents.html [new file with mode: 0644]