Bug 304716

Summary: API for self-alignment properties awkwardly loops layout logic through RenderStyle APIs
Product: WebKit Reporter: fantasai <fantasai.bugs>
Component: CSSAssignee: fantasai <fantasai.bugs>
Status: RESOLVED FIXED    
Severity: Normal CC: koivisto, sam, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Local Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 304717    

fantasai
Reported 2025-12-26 18:27:44 PST
The way StyleSelfAlignmentData resolution loops formatting-context-specific 'normal' resolution through it creates awkward calling patterns in layout code, doesn't generalize well because normal resolution is formatting-context-specific, and requires excess up-front work even when it's not needed. At the same time, it pushes 'auto' resolution into layout code even though that's much more of a style computation thing. We should flip the API so that the style code handles auto resolution, and the layout code handles normal resolution.
Attachments
Radar WebKit Bug Importer
Comment 1 2025-12-26 18:32:00 PST
fantasai
Comment 2 2025-12-26 19:11:54 PST
EWS
Comment 3 2026-01-05 22:03:02 PST
Committed 305146@main (fd2edbac21f5): <https://commits.webkit.org/305146@main> Reviewed commits have been landed. Closing PR #55886 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.