<rt> doesn't compress to contained content when contained inside an explicit-width container
Categories
(Core :: Layout: Ruby, defect)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox154 | --- | fixed |
People
(Reporter: d, Assigned: xidorn)
References
Details
Attachments
(2 files)
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.
| Assignee | ||
Comment 1•5 days ago
|
||
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?
| Assignee | ||
Comment 2•5 days ago
|
||
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 | ||
Updated•5 days ago
|
| Assignee | ||
Comment 3•5 days ago
|
||
| Assignee | ||
Updated•5 days ago
|
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/61190 for changes under testing/web-platform/tests
Upstream PR merged by moz-wptsync-bot
Description
•