-
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.
Do not allow first-line-inherited styles to start transitions
If a computed property value is inherited from ::first-line styles into the styles for inline boxes on the first line, no transitions should be started on those elements since those inherited values are not part of those elements' computed styles. However, transitions and animations running on the element without any ::first-line styles applied still need to be applied for ::first-line rendering. The way we accomplish that is to pass a parameter through StyleRequest for that behavior. Bug: 1422029 Change-Id: Ic957d4a596771d6ee5303bf5b43f8321ce47c034 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4315914 Commit-Queue: Rune Lillesveen <futhark@chromium.org> Reviewed-by: Anders Hartvoll Ruud <andruud@chromium.org> Cr-Commit-Position: refs/heads/main@{#1115630}
- Loading branch information
Rune Lillesveen
authored and
Chromium LUCI CQ
committed
Mar 10, 2023
1 parent
69aba5a
commit 352b384
Showing
14 changed files
with
79 additions
and
23 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
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
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
6 changes: 6 additions & 0 deletions
6
...y/blink/web_tests/external/wpt/css/css-pseudo/first-line-inherited-no-transition-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,6 @@ | ||
<!DOCTYPE html> | ||
<title>CSS Test Reference</title> | ||
<p> | ||
<span style="font-weight:bold">Should be bold</span><br> | ||
Should not be bold | ||
</p> |
13 changes: 13 additions & 0 deletions
13
...party/blink/web_tests/external/wpt/css/css-pseudo/first-line-inherited-no-transition.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 Pseudo-Element Test: ::first-line style should not trigger transitions on elements</title> | ||
<link rel="help" href="https://drafts.csswg.org/css-pseudo-4/#first-line-pseudo"> | ||
<link rel="match" href="first-line-inherited-no-transition-ref.html"> | ||
<style> | ||
p::first-line { font-weight: bold; } | ||
span { | ||
transition-property: font-weight; | ||
transition-duration: 100s; | ||
transition-delay: -50s; | ||
} | ||
</style> | ||
<p><span>Should be bold<br>Should not be bold</span></p> |
10 changes: 10 additions & 0 deletions
10
...blink/web_tests/external/wpt/css/css-pseudo/first-line-inherited-with-transition-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,10 @@ | ||
<!DOCTYPE html> | ||
<title>CSS Test Reference</title> | ||
<style> | ||
span { background-color: green; } | ||
#orange { color: orange; } | ||
</style> | ||
<p> | ||
<span id="orange">Orange on green</span><br> | ||
<span>Black on green</span> | ||
</p> |
19 changes: 19 additions & 0 deletions
19
...rty/blink/web_tests/external/wpt/css/css-pseudo/first-line-inherited-with-transition.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,19 @@ | ||
<!DOCTYPE html> | ||
<title>CSS Pseudo-Element Test: ::first-line style should not trigger transitions on elements</title> | ||
<link rel="help" href="https://drafts.csswg.org/css-pseudo-4/#first-line-pseudo"> | ||
<link rel="match" href="first-line-inherited-with-transition-ref.html"> | ||
<style> | ||
p::first-line { color: orange; } | ||
span { | ||
background-color: black; | ||
transition: background-color 1000s steps(2, start); | ||
} | ||
span.lime { | ||
background-color: lime; | ||
} | ||
</style> | ||
<p><span id="s">Orange on green<br>Black on green</span></p> | ||
<script> | ||
s.offsetTop; | ||
s.className = "lime"; | ||
</script> |