Bug 1768442 [wpt PR 33992] - [@container] Walk ancestry if ::first-line style is...
commitb1ad06b598c5ac7c554fd124b7e35a5bb3d045f3
authorRune Lillesveen <futhark@chromium.org>
Mon, 16 May 2022 10:07:58 +0000 (16 10:07 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Tue, 17 May 2022 16:14:39 +0000 (17 16:14 +0000)
tree88c5ee823e1f68b186d2dd624bacf14de095187b
parentc443c2c5cd04b7eef622efd09fdcabbb7846f1db
Bug 1768442 [wpt PR 33992] - [@container] Walk ancestry if ::first-line style is null, a=testonly

Automatic update from web-platform-tests
[@container] Walk ancestry if ::first-line style is null

HasPseudoElementStyle may return true even if the element does not
currently apply any ::first-line rules because we
SetHasPseudoElementStyle when only container queries fail.

If we get a null ComputedStyle for an element which returns true for
HasPseudoElementStyle(kPseudoIdFirstLine), continue to walk ancestors to
look for the ::first-line style.

Bug: 1273913
Change-Id: I87b7f9c04f818f2d9c82c6eb417b81465f15d913
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3629362
Reviewed-by: Anders Hartvoll Ruud <andruud@chromium.org>
Commit-Queue: Rune Lillesveen <futhark@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1001435}

--

wpt-commits: 9456ecd8ee24fde91ae592673deeaed7cc5255b5
wpt-pr: 33992
testing/web-platform/tests/css/css-contain/container-queries/inner-first-line-non-matching-ref.html [new file with mode: 0644]
testing/web-platform/tests/css/css-contain/container-queries/inner-first-line-non-matching.html [new file with mode: 0644]