You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First, the explainer seems to be out of date and is using popup="" instead of popover="".
But that aside, this is very weird:
The element with behavior="listbox" is required to be a <div popup=popup>.
There aren't any other cases I can think of in HTML where to get the effect you want, you have to trigger some other related effect. E.g., you don't have to do <input type=text contenteditable> to make it clear that text inputs are editable. You just get that for free.
Combined with #702 this could simplify the explainer's
although I guess if you did #645 then even the <listbox> wrapper would not be necessary because you could just target the listbox in CSS.
This idea isn't free, as you need to think through some of the interactions on the API side. E.g. what happens if someone does add popover=""? What does listbox.popover return by default? Etc. But I think this things are worth thinking through, to give a better developer experience.
The text was updated successfully, but these errors were encountered:
First, the explainer seems to be out of date and is using
popup=""
instead ofpopover=""
.But that aside, this is very weird:
There aren't any other cases I can think of in HTML where to get the effect you want, you have to trigger some other related effect. E.g., you don't have to do
<input type=text contenteditable>
to make it clear that text inputs are editable. You just get that for free.Combined with #702 this could simplify the explainer's
into
although I guess if you did #645 then even the
<listbox>
wrapper would not be necessary because you could just target the listbox in CSS.This idea isn't free, as you need to think through some of the interactions on the API side. E.g. what happens if someone does add
popover=""
? What doeslistbox.popover
return by default? Etc. But I think this things are worth thinking through, to give a better developer experience.The text was updated successfully, but these errors were encountered: