-
Notifications
You must be signed in to change notification settings - Fork 675
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
[selectors-4] Add :defined pseudo-class #3735
Conversation
Since the CSS Working Group has discussed and decided[1] to add the :defined pseudo-class to their spec under Selectors L4 and a pull request has been submitted with this change[2], we can remove it from here. [1] w3c/csswg-drafts#2258 [2] w3c/csswg-drafts#3735
Since the CSS Working Group has discussed and decided[1] to add the :defined pseudo-class to their spec under Selectors L4 and a pull request has been submitted with this change[2], we can remove it from here. [1] w3c/csswg-drafts#2258 [2] w3c/csswg-drafts#3735
See my comments at whatwg/html#4433 (comment). I don't think a change to how we do layering between CSS and HTML has been discussed so this specification should probably define this header more abstractly while leaving the actual matching requirements for DOM/HTML to HTML. |
@annevk ok. Per the meeting discussion in #2258 (comment)
As I understand this, the WG resolved to take the spec as-is (for now). cc @atanassov Do we want this to follow the model of e.g. |
I think either Selectors embraces DOM/HTML and is defined on top of that data model or it keeps things abstract (which is shaky btw, there's some open issues around that) as it tries to do today. Doing both is too confusing though. |
I agree with @annevk and I believe the resolution was to add it at the same level of definition as e.g. :link etc, as he expects. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Marking needs work per @annevk's comments.]
Since the CSS Working Group has discussed and decided[1] to add the :defined pseudo-class to their spec under Selectors L4 and a pull request has been submitted with this change[2], we can remove it from here. [1] w3c/csswg-drafts#2258 [2] w3c/csswg-drafts#3735
I've changed this so that it has a high-level definition in Selectors, and has the examples be specific for HTML. |
There are some tests in wpt for
|
Ping @fantasai @tabatkins :) |
Ah sorry for the delay. Hmm. Overall this is fine, but now it sounds really abstract, to the point that I don't think I could figure out what it meant if I didn't already know about custom elements and their definitions. I'll do a little tweaking and then accept it. |
Thanks @tabatkins! |
If we get to more than just a single global registry, does this still hold up? |
@bkardell this says it's up to the host language to say what matches |
[selectors-4] Add the
:defined
pseudo-class as discussed in #2258.The original definition has been moved verbatim from the html spec and a note and examples added. PR to remove the definition from the html spec from WHATWG.
A test for this definition has previously been submitted: ewilligers/web-platform-tests@92a561a
Worked on with @zcorpan and @isaacdurazo.