Closed Bug 2053351 Opened 6 days ago Closed 4 days ago

<rt> doesn't compress to contained content when contained inside an explicit-width container

Categories

(Core :: Layout: Ruby, defect)

defect

Tracking

()

RESOLVED FIXED
154 Branch
Tracking Status
firefox154 --- fixed

People

(Reporter: d, Assigned: xidorn)

References

Details

Attachments

(2 files)

Attached file ruby-repro.html

See https://jsbin.com/nuheculeli/edit?html,output or the attached file.

In Firefox, the first paragraph's instance of 肉食獣 is spread out, as if the rt had not had their content compressed. Whereas the second paragraph's is properly compressed.

In Chrome, both cases are properly compressed.

The problem here is not really rt not compressed. They are. The problem is the <span> with display: inline-block inherits text-indent and thus their size expands unexpectedly by the indent amount. I'm not sure what is the right approach to handle this. Maybe rt should reset text-indent?

I can see that in Chrome, the UA sheet has rt { text-indent: 0; }. It should be pretty easy to add it to our UA sheet as well. Maybe it should be added into the spec as well.

Assignee: nobody → xidorn+moz
Pushed by mozilla@upsuper.org: https://github.com/mozilla-firefox/firefox/commit/15464897f2fe https://hg.mozilla.org/integration/autoland/rev/31e752ab6ab6 Reset text-indent for `rt`. r=layout-reviewers,firefox-style-system-reviewers,dshin

Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/61190 for changes under testing/web-platform/tests

Status: NEW → RESOLVED
Closed: 4 days ago
Resolution: --- → FIXED
Target Milestone: --- → 154 Branch

Upstream PR merged by moz-wptsync-bot

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: