Intent to Ship: Horizontal rules inside select elements

171 views
Skip to first unread message

Joey Arhar

unread,
Sep 19, 2023, 1:51:16 PM9/19/23
to blink-dev

Contact emails

jar...@chromium.org

Explainer

None

Specification

https://github.com/whatwg/html/pull/9124

Summary

This feature makes the HTML parser allow <hr> tags inside <select> tags. These <hr> elements create horizontal borders in between <option> elements in the listbox popup, which we already support if you manually insert an hr element with javascript.


WebKit implemented this and just put it in their release notes: https://webkit.org/blog/14445/webkit-features-in-safari-17-0/#:~:text=Horizontal%20rules%20inside%20select%20elements

Blink component

Blink>DOM

TAG review

None

TAG review status

Not applicable

Risks



Interoperability and Compatibility

None



Gecko: No signal (https://bugzilla.mozilla.org/show_bug.cgi?id=1830909)

WebKit: Shipped/Shipping (https://bugs.webkit.org/show_bug.cgi?id=80686)

Web developers: No signals

Other signals:

WebView application risks

Does this intent deprecate or change behavior of existing APIs, such that it has potentially high risk for Android WebView-based applications?

None



Debuggability

None



Will this feature be supported on all six Blink platforms (Windows, Mac, Linux, Chrome OS, Android, and Android WebView)?

Yes

Is this feature fully tested by web-platform-tests?

Yes

Flag name on chrome://flags

SelectHr

Finch feature name

SelectHr

Requires code in //chrome?

False

Estimated milestones

Shipping on desktop118
DevTrial on desktop118
Shipping on Android118
DevTrial on Android118
Shipping on WebView118


Anticipated spec changes

Open questions about a feature may be a source of future web compat or interop issues. Please list open issues (e.g. links to known github issues in the project for the feature specification) whose resolution may introduce web compat/interop risk (e.g., changing to naming or structure of the API in a non-backward-compatible way).

None

Link to entry on the Chrome Platform Status

https://chromestatus.com/feature/6198448366026752

This intent message was generated by Chrome Platform Status.

Yoav Weiss

unread,
Sep 20, 2023, 10:54:32 AM9/20/23
to Joey Arhar, blink-dev
LGTM1

On Tue, Sep 19, 2023 at 7:51 PM Joey Arhar <jar...@chromium.org> wrote:

Contact emails

jar...@chromium.org

Explainer

None

Specification

https://github.com/whatwg/html/pull/9124

Summary

This feature makes the HTML parser allow <hr> tags inside <select> tags. These <hr> elements create horizontal borders in between <option> elements in the listbox popup, which we already support if you manually insert an hr element with javascript.


Neat!
 

WebKit implemented this and just put it in their release notes: https://webkit.org/blog/14445/webkit-features-in-safari-17-0/#:~:text=Horizontal%20rules%20inside%20select%20elements

Blink component

Blink>DOM

TAG review

None

You spelled "Not required as this landed in HTML and shipped in WebKit" wrong :)



TAG review status

Not applicable

Risks



Interoperability and Compatibility

None



Gecko: No signal (https://bugzilla.mozilla.org/show_bug.cgi?id=1830909)

Can we file a Mozilla position? (to raise awareness on their end if nothing else) 


WebKit: Shipped/Shipping (https://bugs.webkit.org/show_bug.cgi?id=80686)

Web developers: No signals

Have you talked to devrel folks about getting some signal there? Presumably this is something developers would want to be able to do
 
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAK6btwKBrQrrtOe4FwDfYR_nx%3DhXPEv2Yu10h407iPn2y3d9mA%40mail.gmail.com.

Joey Arhar

unread,
Sep 20, 2023, 11:10:51 AM9/20/23
to Yoav Weiss, blink-dev
> Can we file a Mozilla position? (to raise awareness on their end if nothing else)


> Have you talked to devrel folks about getting some signal there? Presumably this is something developers would want to be able to do

I just reached out to devrel about this

 

Joey Arhar

unread,
Sep 20, 2023, 12:41:59 PM9/20/23
to Yoav Weiss, blink-dev
For developer signals:

The material design menu component supports dividers like this: https://m2.material.io/components/menus#anatomy:~:text=Text-,Divider,-Text%20and%20icon

Bootstrap has a "dropdown-divider" class for the "dropdown-menu" class which is like a select with <hr>: https://getbootstrap.com/docs/4.0/components/dropdowns/

This intent adds support for dividers but not styling.

Mike Taylor

unread,
Sep 20, 2023, 3:07:41 PM9/20/23
to Joey Arhar, Yoav Weiss, blink-dev

TAMURA, Kent

unread,
Sep 21, 2023, 8:44:06 PM9/21/23
to Joey Arhar, Yoav Weiss, blink-dev, Mike Taylor
LGTM3




--
TAMURA Kent
Software Engineer, Google


Reply all
Reply to author
Forward
0 new messages