-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[@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}
- Loading branch information
Rune Lillesveen
authored and
Chromium LUCI CQ
committed
May 10, 2022
1 parent
8892c18
commit f7e7475
Showing
6 changed files
with
68 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
...sts/external/wpt/css/css-contain/container-queries/inner-first-line-non-matching-ref.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<!doctype html> | ||
<title>CSS Test Reference</title> | ||
<div style="color:green">This text should be green.</div> |
13 changes: 13 additions & 0 deletions
13
...b_tests/external/wpt/css/css-contain/container-queries/inner-first-line-non-matching.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!doctype html> | ||
<title>CSS Container Queries Test: Non-matching ::first-line in @container</title> | ||
<link rel="help" href="https://drafts.csswg.org/css-contain-3/#container-queries"> | ||
<link rel="match" href="inner-first-line-non-matching-ref.html"> | ||
<style> | ||
#outer::first-line { color: green } | ||
@container (width > 99999px) { | ||
#inner::first-line { color: red } | ||
} | ||
</style> | ||
<div id="outer"> | ||
<div id="inner">This text should be green.</div> | ||
</div> |