pablolarah,
@pablolarah@mastodon.social avatar

📄 Select element: now with horizontal rules
by Una Kravets @Una @Una

https://developer.chrome.com/blog/hr-in-select/

mattwilcox,
@mattwilcox@mstdn.social avatar

@pablolarah IS there a reason to prefer this over optgroup - which allows labels of the sub-divisions? @Una @Una

pablolarah,
@pablolarah@mastodon.social avatar

@mattwilcox I think in cases where you do not need labels (or you don't have them) and it exists on html a long ago. Also the CSS posibilities.
Differences:

optgroup:
Permitted parents
A <select> element.
Implicit ARIA role
group
Permitted ARIA roles
No role permitted

hr:
Permitted parents
Any element that accepts flow content.
Implicit ARIA role separator
Permitted ARIA roles presentation or none

mattwilcox,
@mattwilcox@mstdn.social avatar

@pablolarah Hmmm, maybe. My concern with the new stuff is that it'll lead to people grouping options purely visually. I can't think of a valid reason why you'd want to separate options other than because they belong in groups.

pablolarah,
@pablolarah@mastodon.social avatar

@mattwilcox Yes, I see.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • HR
  • GTA5RPClips
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • osvaldo12
  • ethstaker
  • Youngstown
  • mdbf
  • slotface
  • rosin
  • ngwrru68w68
  • kavyap
  • tester
  • cisconetworking
  • megavids
  • InstantRegret
  • khanakhh
  • cubers
  • everett
  • Durango
  • tacticalgear
  • Leos
  • modclub
  • normalnudes
  • provamag3
  • anitta
  • JUstTest
  • lostlight
  • All magazines