Bug 241304

Summary: Implement text-justify: none;
Product: WebKit Reporter: Tim Nguyen (:ntim) <ntim>
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 99945    

Description Tim Nguyen (:ntim) 2022-06-04 05:41:20 PDT
The original implementation for legacy layout in bug 135349 had the issue that it didn't take in account text-align-last: justify; (if text-align is different than justify).

IFC does not implement text-justify: none.

So I removed the existing legacy layout implementation of text-justify: none in https://github.com/WebKit/WebKit/pull/1308 to avoid confusion.


I think it should be easy to add support for both modern and legacy layouts, however it's probably worth refactoring to avoid duplicating the logic.
Comment 1 Tim Nguyen (:ntim) 2022-06-04 05:45:49 PDT
One testcase that would be nice to add is:

text-align: end;
text-align-last: justify;
text-justify: none;

Currently, I think legacy layout handles this incorrectly, as the last line will still be justified.
Comment 2 Radar WebKit Bug Importer 2022-06-11 05:42:15 PDT
<rdar://problem/94879056>