<wbr> should be implemented as a CSS rule or maybe XBL
Categories
(Core :: Layout: Text and Fonts, enhancement, P4)
Tracking
()
People
(Reporter: jesup, Unassigned)
References
Details
(Keywords: compat)
Attachments
(1 file)
7.17 KB,
patch
|
Details | Diff | Splinter Review |
Reporter | ||
Comment 1•22 years ago
|
||
Comment 2•22 years ago
|
||
Reporter | ||
Comment 3•22 years ago
|
||
Comment 5•22 years ago
|
||
Comment 6•22 years ago
|
||
Comment 7•22 years ago
|
||
Updated•22 years ago
|
Comment 8•22 years ago
|
||
Comment 9•20 years ago
|
||
Updated•15 years ago
|
Comment 10•13 years ago
|
||
Reporter | ||
Comment 11•3 years ago
|
||
Going through old bugs... Any thoughts on this? What's the current state?
Comment 12•3 years ago
•
|
||
Looks like we have https://searchfox.org/mozilla-central/source/layout/generic/WBRFrame.cpp , added in bug 584141 in 2019 (pretty recently).
It's linked up to the tag via SIMPLE_TAG_CREATE
here:
https://searchfox.org/mozilla-central/rev/5e15e00fa247cba5b765727496619bf9010ed162/layout/base/nsCSSFrameConstructor.cpp#3415
I haven't paged in the history/spec/details on wbr
(it's not a tag I frequently encounter), but given the relatively-recent work in bug 584141 , I'd be surprised if we need to do a lot of rethinking/reimplementing at this point?
Comment 13•3 years ago
|
||
In particular, it looks like:
- WBRFrame.cpp's (relatively-recent) implementation is quite minimal/trivial, which is great.
- If we wanted to define the element in "pure CSS", we'd probably still need a dedicated frame class like this, for its CSS to cause us to generate under the hood (to produce the right behavior/semantics).
So, I'm not sure there's anything in particular to be done here. If there are any issues with the current impl, it might be best to file new bugs for them at this point?
Comment 14•3 years ago
•
|
||
FWIW, according to HTML it needs to be implemented in terms of Edit: turns out this is a mess standards-wise: https://github.com/whatwg/html/issues/2291.display-outside
(using the break-opportunity
value).
Updated•3 years ago
|
Reporter | ||
Comment 15•3 years ago
|
||
So it sounds like the title of this bug should change (re the whatwg thread, and XBL being dead), but it's still relevant
Updated•2 years ago
|
Description
•