-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CustomStateSet for custom elements #56
Comments
I looked at whatwg/html#8467 today and one thing that struck is me is that maybe this can reuse |
We don't oppose this feature. There might be minor issues like using |
Let's formalize that: I suggest we add the "position: support" label 7 days from now. |
Perhaps we should review & give whatever feedback we want to give before we add the label? |
Ah, I did give my feedback on |
About :state(token)
|
To follow-up here, @rniwa found a further concern: whatwg/html#8467 (comment). |
Given that @rniwa's concern has been addressed I once again suggest we resolve this as "position: support" one week from now. |
Request for position on an emerging web specification
Information about the spec
Anything else we need to know
Somewhat related to #47. This has been shipped in Chrome for some time.
This provides an API to allow custom element authors a way to expose internal state to the DOM for matching operations (including CSS and things like
document.querySelector
).This is done via the
ElementInternals.prototype.states
, which is a set of custom states. A naive example would beThis would mean that a newly-constructed instance of
fancy-element
would match against:--fancy
.The text was updated successfully, but these errors were encountered: