Closed Bug 1882485 Opened 1 year ago Closed 1 year ago

<br> is ignored when inside a div with style: display:flex

Categories

(Core :: Layout: Flexbox, defect)

Firefox 123
defect

Tracking

()

RESOLVED DUPLICATE of bug 1547246

People

(Reporter: wolfi, Unassigned)

Details

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36

Steps to reproduce:

Place some <br> tags inside a <div>

style the div with display:flex;
https://jsfiddle.net/v4u96L07/

<div class="box">
Line1<br><br><br>Line4
</div>
.box {
display:flex;
}

Actual results:

line breaks are not reflected

Expected results:

line breaks should be reflected

The Bugbug bot thinks this bug should belong to the 'Core::CSS Parsing and Computation' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → CSS Parsing and Computation
Product: Firefox → Core
Severity: -- → S3
Status: UNCONFIRMED → NEW
Component: CSS Parsing and Computation → Layout: Flexbox
Ever confirmed: true
Status: NEW → RESOLVED
Closed: 1 year ago
Duplicate of bug: 1547246
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.