Closed Bug 2092469 Opened 18 days ago Closed 12 days ago

[wpt-sync] Sync PR 64590 - WebKit export of https://bugs.webkit.org/show_bug.cgi?id=245523

Categories

(Core :: Layout: Generated Content, Lists, and Counters, task, P4)

task

Tracking

()

RESOLVED FIXED
162 Branch
Tracking Status
firefox162 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

(Blocks 1 open bug, )

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 64590 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/64590
Details from upstream follow.

Ahmad Saleem <ahmad.saleem792+github@gmail.com> wrote:

WebKit export of https://bugs.webkit.org/show_bug.cgi?id=245523

WebKit export from bug: [<!---->css-<!---->pseudo]<!----> :<!---->:<!---->first-<!---->letter and :<!---->:<!---->first-<!---->line should reject some properties

<pre>
[css-pseudo] ::first-letter and ::first-line should reject some properties

This patch aligns WebKit with Web Specification [1] & [2]:

[1] <a href="https://drafts.csswg.org/css-pseudo/#first-line-styling">https://drafts.csswg.org/css-pseudo/#first-line-styling</a>
[2] <a href="https://drafts.csswg.org/css-pseudo/#first-letter-styling">https://drafts.csswg.org/css-pseudo/#first-letter-styling</a>

This patch updates our allowlist for properties, which can be applied to
first-letter and and first-line pseudo-elements similar to others.

While updating, we also make both pseudo elements (non-tree abiding) to
have animations (based on CSSWG Issue Resolution [3]).

[3] <a href="https://github.com/w3c/csswg-drafts/issues/12814#issuecomment-4040525212">https://github.com/w3c/csswg-drafts/issues/12814#issuecomment-4040525212</a>

Additionally, getComputedStyle(element, "::first-line" / "::first-letter") now
resolves the pseudo-element style even when the originating element is not a
block container (e.g. display:inline or display:flex), instead of falling back
to a style inherited from the parent.

WebKit-Bug: <a href="https://bugs.webkit.org/show_bug.cgi?id=245523">https://bugs.webkit.org/show_bug.cgi?id=245523</a>
WebKit-Canonical-Link: <a href="https://commits.webkit.org/325393@main">https://commits.webkit.org/325393@main</a>
</pre>

Component: web-platform-tests → Layout: Generated Content, Lists, and Counters
Product: Testing → Core

CI Results

Ran 11 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 364 tests and 41 subtests

Status Summary

Firefox

OK : 2[GitHub] 60[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
PASS : 26[Gecko-linux2204-64-wayland-debug, Gecko-linux2204-64-wayland-opt] 686[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 886[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt] 892[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview]
FAIL : 6[GitHub] 209[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 278[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview] 284[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
ERROR: 3

Chrome

OK : 2
PASS : 2
FAIL : 4

Safari

OK : 2
PASS : 6

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

Firefox-only Failures

New Tests That Don't Pass

Status: NEW → RESOLVED
Closed: 12 days ago
Resolution: --- → FIXED
Target Milestone: --- → 162 Branch
You need to log in before you can comment on or make changes to this bug.