web-platform-tests / interop

web-platform-tests Interop project
https://wpt.fyi/interop
278 stars 28 forks source link

Allowing `<hr>` inside of `<select>` #573

Closed jensimmons closed 7 months ago

jensimmons commented 10 months ago

Description

Safari 17 added support for Allowing <hr> inside of <select>. This makes it possible for developers to create simply lines inside dropdown menus by using semantic HTML, instead of styling hacks. It'd be very useful to have interoperability of this.

Specification

https://html.spec.whatwg.org/multipage/grouping-content.html#the-hr-element

Open Issues

No response

Tests

Parser tests in html5lib_webkit02

Current Implementations

Standards Positions

No response

Browser bug reports

https://bugzilla.mozilla.org/show_bug.cgi?id=1830909 - Firefox Tracking Bug https://bugs.chromium.org/p/chromium/issues/detail?id=1441883 - Chromium Tracking Bug (shipping in 119)

Developer discussions

Discussed with great excitement on Shop Talk Show #585.

Workarounds

Workarounds include adding a "choice" to the list of items to select that's "--------------". Or attempting to apply CSS to the inside of a select menu.

Accessibility Impact

This will allow developers to use proper semantic HTML to delineate sections in a drop-down menu, instead of creating fake selections that could be confusing.

Privacy Impact

No privacy impact.

lukewarlow commented 10 months ago

Just as an FYI:

https://bugzilla.mozilla.org/show_bug.cgi?id=1830909 - Firefox Tracking Bug

https://bugs.chromium.org/p/chromium/issues/detail?id=1441883 - Chromium Tracking Bug (shipping in 119)

jensimmons commented 10 months ago

Ah, thanks @lukewarlow! I'll add that info to the proposal.

mfreed7 commented 10 months ago

Tests are located at (a subset of):

https://wpt.fyi/results/html/syntax/parsing/html5lib_webkit02.html%3Frun_type=uri?label=master&label=experimental&aligned&q=5463526d91a8677b27b69

gsnedders commented 9 months ago

https://bugzilla.mozilla.org/show_bug.cgi?id=1830909 is now in autoland, so it seems likely this will soon be at 100% everywhere.

jensimmons commented 9 months ago

It probably doesn't make sense to include <hr> inside <select> in Interop 2024 — even if enthusiasm for it is high — if it's going to be 100% everywhere before Interop 2024 begins. In fact, if it had been 100% across the board in October, it might have been disqualified for that reason, since Interop Project focuses only on things that need work.

gsnedders commented 7 months ago

Thank you for proposing Allowing <hr> inside of <select> for inclusion in Interop 2024.

We wanted to let you know that this proposal was not selected to be part of Interop this year.

This proposal was not included in Interop 2024 because when we looked at its Web Platform Tests results, we found that it is already largely interoperable between tested browsers and does not need special coordinated attention.

For an overview of our process, see proposal selection. Thank you again for contributing to Interop 2024!

Posted on behalf of the Interop team.