Open domenic opened 1 year ago
Off the cuff thoughts:
FontFaceSet
/FontFaceVariations
: I could see wanting to intersect this with a JS Set
, but it's hard to imagine having two of them you want to intersect (or whatever) with each otherGPUSupportedFeatures
: dittoCustomStateSet
: dittoXRAnchorSet
: I could potentially see wanting to intersect two of these, I guess?Highlight
: this one you might want to use any of this proposal's new Set
-producing methods withThe isSubsetOf
and isSupersetOf
methods seem like you might want them on all of these, though mostly to interact with JS Set
s, and you can always do js.isSubsetOf(web)
instead of web.isSupersetOf(js)
.
Honestly these seem sufficiently obscure that I expect the new Set
methods, were they added, would see approximately zero use. What use cases there are can mostly (but not entirely) be met by using a built-in Set
and passing the setlike as an argument (which we did ultimately decide should be supported - you can't .call
these on non-builtin Set
s, but you can pass non-builtin setlikes as arguments).
So personally I wouldn't bother adding them, at least not in advance of a request from developers.
Should all setlikes get these methods? If so, we need to update Web IDL.
It's not clear that they should... but we should think through the known cases.