Re: [csswg-drafts] [css-display] Can <br> / <wbr> elements be blockified? (#7049)

> There appears to be more complexity with the FF behaviour in that a `<br style="display: block;">` doesn't act the same as a `<div></div>`.

Yeah, Firefox has dedicated relatively-simple frame types for `<br>` and `<wbr>` tags, to implement their special behavior:
https://searchfox.org/mozilla-central/search?q=&path=brframe

WBRFrame was added relatively-recently (2019) in https://bugzilla.mozilla.org/show_bug.cgi?id=584141
BRFrame was added in nsBRFrame.cpp in 1998: https://searchfox.org/mozilla-central/rev/b2f664e4964dca4af82d45fb22321c10a27d5e6f/layout/generic/nsBRFrame.cpp#23

-- 
GitHub Notification of comment by dholbert
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7049#issuecomment-1040823371 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 15 February 2022 21:42:24 UTC