WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
329793
[layout box merge] Remove the anonymous inline wrappers around display: contents text
https://bugs.webkit.org/show_bug.cgi?id=329793
Summary
[layout box merge] Remove the anonymous inline wrappers around display: conte...
Antti Koivisto
Reported
2026-11-02 04:37:44 PST
Text whose DOM parent is display: contents is wrapped in an anonymous inline box so it can have the style it inherits from that element. Text renderers now own their style, so the wrappers can go. The wrappers also affect line layout: the line-height of the display: contents element applies to its text and its font stretches the line for any line-height. Firefox (and css-inline-3) uses the line-height of the parent box instead, and the text's font stretches the line only when that line-height is normal. Chrome has the same wrappers as WebKit. Removing the wrappers switches WebKit to the Firefox behavior.
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2026-11-02 04:37:54 PST
<
rdar://problem/191578085
>
Antti Koivisto
Comment 2
2026-11-02 04:39:11 PST
Pull request:
https://github.com/WebKit/WebKit/pull/79289
EWS
Comment 3
2026-11-02 23:53:50 PST
Committed
325558@main
(8ee260e9aa16): <
https://commits.webkit.org/325558@main
> Reviewed commits have been landed. Closing PR #79289 and removing active labels.
Antti Koivisto
Comment 4
2026-11-03 08:56:04 PST
Submitted web-platform-tests pull request:
https://github.com/web-platform-tests/wpt/pull/64668
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