WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
282444
REGRESSION(
272476@main
): No ligatures across before/after and actual content
https://bugs.webkit.org/show_bug.cgi?id=282444
Summary
REGRESSION(272476@main): No ligatures across before/after and actual content
alan
Reported
2024-11-01 10:04:18 PDT
Created
attachment 473106
[details]
Test case see attached test case
Attachments
Test case
(212 bytes, text/html)
2024-11-01 10:04 PDT
,
alan
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
alan
Comment 1
2024-11-01 10:08:05 PDT
B---------- -- BODY RenderBody at (8,8) size 1384x791 renderer (0x113005cd0) layout box (0x113007a50) node (0x113006d40) layout id->[8] -- line at (0.00,0.00) size (1384.00x460.00) baseline (360.00) enclosing top (0.00) bottom (460.00) -- Root inline box at (0.00,0.00) size (811.13x460.00) -- Inline box at (0.00,0.00) size (244.34x460.00) renderer->(0x113007200) -- Inline box at (566.80,0.00) size (244.34x460.00) renderer->(0x1130076b0) -- Inline box at (700.00,0.00) size (111.13x460.00) renderer->(0x113007940) -- Run(s): -- Text at (0.00,0.00) size 133.20x460.00 run(0, 1) renderer->(0x113007310) -- Text at (133.20,0.00) size 111.13x460.00 run(0, 1) renderer->(0x113007400) -- Text at (244.34,0.00) size 322.46x460.00 run(0, 3) renderer->(0x1130075e0) -- Text at (566.80,0.00) size 133.20x460.00 run(0, 1) renderer->(0x1130077c0) -- Text at (700.00,0.00) size 111.13x460.00 run(0, 1) renderer->(0x1130074f0) These text boxes need to be merged so that painting could apply ligatures -it's a pity though that such fragmented layout output affects painting in this way. painting should be a tiny bit smarter.
Radar WebKit Bug Importer
Comment 2
2024-11-01 10:19:37 PDT
<
rdar://problem/139079271
>
Lea Verou
Comment 3
2024-11-01 13:18:26 PDT
Please note that this is a regression. I've tested using this codepen
https://codepen.io/leaverou/pen/OJKZKyV
and at least up to Safari 17.3 the issue is not present, whereas I can reproduce in Safari 17.5 and later.
alan
Comment 4
2024-11-01 13:21:50 PDT
(In reply to Lea Verou from
comment #3
)
> Please note that this is a regression. I've tested using this codepen >
https://codepen.io/leaverou/pen/OJKZKyV
and at least up to Safari 17.3 the > issue is not present, whereas I can reproduce in Safari 17.5 and later.
👍 thank you!
alan
Comment 5
2024-11-03 19:58:36 PST
I am somewhat surprised that the last one ever worked as I don't remember we ever merged content from individual renderers, while the middle 'fi' seems to be a tree updater/builder regression as I am seeing 2 renderers constructed for 'content: "f" "i"'. I----G----- -- <pseudo> RenderInline (::before) renderer (0x13d027810) layout box (0x13d0251a0) node (0x13d027760) layout id->[3] I---YG----- -- RenderText (::before) renderer (0x13d027920) layout box (0x13d025020) length->(1) "f" layout id->[n/a] I---YG----- -- RenderText (::before) renderer (0x13d027a10) layout box (0x13d0250e0) length->(1) "i" layout id->[n/a]
Lea Verou
Comment 6
2024-11-03 20:12:30 PST
Apologies,I should have clarified. It was the first one that used to work (content: “f” “i”;) and now doesn’t!
alan
Comment 7
2024-11-04 05:43:59 PST
(In reply to Lea Verou from
comment #6
)
> Apologies,I should have clarified. It was the first one that used to work > (content: “f” “i”;) and now doesn’t!
yeah, ok, makes sense. Thank you for the clarification!
Antti Koivisto
Comment 8
2024-11-04 06:02:24 PST
Looks like a regression from
https://commits.webkit.org/272476@main
Tim Nguyen (:ntim)
Comment 9
2024-11-04 15:04:41 PST
Pull request:
https://github.com/WebKit/WebKit/pull/36151
Tim Nguyen (:ntim)
Comment 10
2024-11-04 15:11:46 PST
(In reply to Antti Koivisto from
comment #8
)
> Looks like a regression from
https://commits.webkit.org/272476@main
My PR restores the old behavior regarding generating text runs without regressing serialization:
https://github.com/WebKit/WebKit/pull/36151
, but I'm not convinced we should land it given it doesn't fix the other cases Lea brought up, and just makes the code less readable. Feel free to land if you feel strongly however.
Lea Verou
Comment 11
2024-11-04 15:12:47 PST
The other cases are not regressions though, so I'd argue they are lower priority.
Tim Nguyen (:ntim)
Comment 12
2024-11-07 09:35:45 PST
Sending to Alan since he has a better fix that would cover all the cases Lea reported.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug