Bug 245947
Summary: | Enable justified text for white-space: pre-wrap | ||
---|---|---|---|
Product: | WebKit | Reporter: | Ahmad Saleem <ahmad.saleem792> |
Component: | Layout and Rendering | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED WORKSFORME | ||
Severity: | Normal | CC: | bfulgham, karlcow, simon.fraser, zalan |
Priority: | P2 | Keywords: | BrowserCompat |
Version: | Safari Technology Preview | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
See Also: | https://bugs.webkit.org/show_bug.cgi?id=84448 |
Ahmad Saleem
Hi Team,
I was looking into another Blink Commit merge and noticed following:
Commit - https://src.chromium.org/viewvc/blink?view=revision&revision=174895
Which needs to be merged here:
https://github.com/WebKit/WebKit/blob/89d57a6f366a8abe5d012e38f160f81388b46429/Source/WebCore/rendering/LegacyLineLayout.cpp#L613
and add following:
whiteSpace() == WhiteSpace::Pre
I will see whether it is easier to do or not but will try with PR. Although, I think it would be good to keep this for future.
Thanks!
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Ahmad Saleem
We don't need to do this change because we already have it fixed along the way and Safari 16 behavior is consistent with Chrome Canary 108.
Example test case - https://jsfiddle.net/b7j5412r/show
If I do this change, which I was trying to do it in below PR:
https://github.com/WebKit/WebKit/pull/4912
It reverts back us to old behavior and removed "justified".
I have discussed with Alan and now closing this bug but if needed and I am not right, please let me know I will be able to turn around this patch.
Marking this as "RESOLVED WORKSFORME".