From b1ad06b598c5ac7c554fd124b7e35a5bb3d045f3 Mon Sep 17 00:00:00 2001 From: Rune Lillesveen Date: Mon, 16 May 2022 10:07:58 +0000 Subject: [PATCH] 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 Commit-Queue: Rune Lillesveen Cr-Commit-Position: refs/heads/main@{#1001435} -- wpt-commits: 9456ecd8ee24fde91ae592673deeaed7cc5255b5 wpt-pr: 33992 --- .../inner-first-line-non-matching-ref.html | 3 +++ .../inner-first-line-non-matching.html | 13 +++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 testing/web-platform/tests/css/css-contain/container-queries/inner-first-line-non-matching-ref.html create mode 100644 testing/web-platform/tests/css/css-contain/container-queries/inner-first-line-non-matching.html diff --git a/testing/web-platform/tests/css/css-contain/container-queries/inner-first-line-non-matching-ref.html b/testing/web-platform/tests/css/css-contain/container-queries/inner-first-line-non-matching-ref.html new file mode 100644 index 000000000000..99e9c334bf2c --- /dev/null +++ b/testing/web-platform/tests/css/css-contain/container-queries/inner-first-line-non-matching-ref.html @@ -0,0 +1,3 @@ + +CSS Test Reference +
This text should be green.
diff --git a/testing/web-platform/tests/css/css-contain/container-queries/inner-first-line-non-matching.html b/testing/web-platform/tests/css/css-contain/container-queries/inner-first-line-non-matching.html new file mode 100644 index 000000000000..5f39124e514b --- /dev/null +++ b/testing/web-platform/tests/css/css-contain/container-queries/inner-first-line-non-matching.html @@ -0,0 +1,13 @@ + +CSS Container Queries Test: Non-matching ::first-line in @container + + + +
+
This text should be green.
+