Closed Bug 1872826 Opened 1 year ago Closed 1 year ago

style of width=max-content does not work expectedly if content text of first character is ideographic space

Categories

(Core :: Layout, defect)

Firefox 121
defect

Tracking

()

RESOLVED FIXED
123 Branch
Tracking Status
firefox-esr115 --- unaffected
firefox121 --- fixed
firefox122 --- fixed
firefox123 --- fixed

People

(Reporter: yaruo.makaizou, Unassigned)

References

(Regression)

Details

(Keywords: regression)

Steps to reproduce:

Open following html.

<!DOCTYPE html>
<meta charset="utf-8">
<title></title>
<div style="max-width:1000px">
<div style="width:max-content; background-color:#fee; white-space:nowrap"> this box width is insufficient.</div>
<div style="width:max-content; background-color:#efe; white-space:normal"> this content text is wrapped unexpectedly.</div>
<div style="width:max-content; background-color:#eef; white-space:normal">if ideographic space does not exists in first character of text line, max-content style works well.</div>
</div>

Actual results:

first character of ideographic space makes layout wrong when style="width:max-content" is used.

Expected results:

the layout is same to Firefox 120.

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.

Component: Untriaged → Layout
Product: Firefox → Core

This was backed out, see bug 1862249.

Status: UNCONFIRMED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
See Also: → 1862249
Keywords: regression
Regressed by: 1862249
Target Milestone: --- → 123 Branch
You need to log in before you can comment on or make changes to this bug.