Bug 239844

Summary: Resolve ::first-letter eagerly
Product: WebKit Reporter: Antti Koivisto <koivisto>
Component: CSSAssignee: Antti Koivisto <koivisto>
Status: RESOLVED FIXED    
Severity: Normal CC: changseok, esprehn+autocc, ews-watchlist, glenn, kondapallykalyan, mmaxfield, ntim, pdr, pnormand, webkit-bug-importer, zalan
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=240521
Attachments:
Description Flags
Patch
none
Patch
none
Patch
none
Patch
none
Patch
none
Patch for landing
none
Patch
none
Patch
ews-feeder: commit-queue-
patch
none
patch
none
patch none

Description Antti Koivisto 2022-04-28 02:43:07 PDT
::first-letter pseudo-element should be resolved eagerly during style resolution, similar to ::first-line. This will clean up architecture and also make it animatable.
Comment 1 Antti Koivisto 2022-04-28 03:09:38 PDT
Created attachment 458508 [details]
Patch
Comment 2 Antti Koivisto 2022-04-28 04:39:01 PDT
Created attachment 458510 [details]
Patch
Comment 3 Antti Koivisto 2022-04-28 04:56:02 PDT
Created attachment 458513 [details]
Patch
Comment 4 Antti Koivisto 2022-04-28 05:02:54 PDT
Created attachment 458516 [details]
Patch
Comment 5 Antti Koivisto 2022-04-28 06:43:17 PDT
Created attachment 458525 [details]
Patch
Comment 6 zalan 2022-04-28 07:52:30 PDT
Comment on attachment 458525 [details]
Patch

nice cleanup on the expected.txt files!
Comment 7 Tim Nguyen (:ntim) 2022-04-28 09:44:08 PDT
Comment on attachment 458525 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=458525&action=review

> LayoutTests/fast/css-generated-content/first-letter-in-nested-before.html:3
> +    #target:before { display: div; content: "A"; }

`display: div` is not correct here
Comment 8 Antti Koivisto 2022-05-02 02:34:44 PDT
Created attachment 458669 [details]
Patch for landing
Comment 9 Antti Koivisto 2022-05-02 02:36:06 PDT
Created attachment 458670 [details]
Patch
Comment 10 Antti Koivisto 2022-05-02 03:50:54 PDT
Created attachment 458672 [details]
Patch
Comment 11 Radar WebKit Bug Importer 2022-05-05 02:44:13 PDT
<rdar://problem/92784656>
Comment 12 Antti Koivisto 2022-05-16 03:08:12 PDT
Created attachment 459410 [details]
patch
Comment 13 Antti Koivisto 2022-05-16 04:29:30 PDT
Created attachment 459415 [details]
patch
Comment 14 Antti Koivisto 2022-05-16 07:28:02 PDT
Created attachment 459423 [details]
patch
Comment 15 EWS 2022-05-16 23:01:07 PDT
Committed r294291 (250633@main): <https://commits.webkit.org/250633@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 459423 [details].
Comment 16 Philippe Normand 2022-05-17 08:15:59 PDT
This broke GTK, but no one watched the red bubbles it seems...
Comment 17 Antti Koivisto 2022-05-18 02:29:34 PDT
(In reply to Philippe Normand from comment #16)
> This broke GTK, but no one watched the red bubbles it seems...

Oops, sorry about that.