fune/testing/web-platform/tests/css/css-pseudo/first-line-inherited-no-transition.html
Rune Lillesveen 86892f5d55 Bug 1821380 [wpt PR 38909] - Do not allow first-line-inherited styles to start transitions, a=testonly
Automatic update from web-platform-tests
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}

--

wpt-commits: 509c1a9c59f9623ff841eefcb5cd8d03f9483052
wpt-pr: 38909
2023-03-29 12:50:54 +00:00

13 lines
493 B
HTML

<!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>