Wrong max-content width of "whitespace <span>­</span> whitespace", causing word-wrapping in flex / inline-block
Categories
(Core :: Layout: Text and Fonts, defect, P3)
Tracking
()
People
(Reporter: syrrim0, Unassigned)
References
(Regression)
Details
(Keywords: regression)
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:150.0) Gecko/20100101 Firefox/150.0
Steps to reproduce:
Minimal example:
data:text/html,<body style=display:flex;><div>x <span></span> y
Actual results:
y wraps to the next line
Expected results:
all should be on one line.
Comment 1•1 month ago
|
||
The Bugbug bot thinks this bug should belong to the 'Core::Layout' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Comment 2•1 month ago
|
||
I can't reproduce this off-hand with your test-case, nor with something like:
<!DOCTYPE html>
<body style="display: flex">x <span>­</span> y</body>
(with or without the doctype)
Any interesting font settings or something that could affect this? Can you attach an HTML page that reproduces the issue for you? Does it happen on a clean profile?
I just noticed that the link I submitted wasn't reproduced correctly since the bugzilla formatting ate the ­. A correct data link would be
data:text/html,<body style=display:flex;><div>x <span>­</span> y
Your demo doesn't work because you missed the <div>. With the div I can reproduce it in a clean profile and on the android version.
Comment 4•1 month ago
|
||
Ah, I see, so it's about max-content. Simpler test-cases:
data:text/html,<div style="display: inline-block">x <span>­</span> y
Or:
data:text/html,<div style="width: max-content">x <span>­</span> y
It seems like a really old regression:
There's a ton of stuff going on in there but I'm going to bet it was bug 1316482.
Comment 5•1 month ago
|
||
Looks also suspiciously similar to bug 1216608...
Comment 6•1 month ago
|
||
Set release status flags based on info from the regressing bug 1316482
Updated•1 month ago
|
Comment 7•1 month ago
|
||
Also reminds me of bug 2021980. The example there (involving 
) is slightly different, but I suspect the underlying causes may be related.
Updated•21 days ago
|
Description
•