-
Notifications
You must be signed in to change notification settings - Fork 27
Modern definition of :empty
#794
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
Comments
See also #180 and w3c/csswg-drafts#1967 about whether this change is web compatible. |
https://wpt.fyi/results/css/selectors/selectors-empty-001.xml?run_id=5141001291431936&run_id=5160261803835392&run_id=6263739599028224&run_id=5140230613237760 is still asserting the old (Selectors < 4) behaviour, and is still passing everywhere. It seems like nobody wants to take the risk of making the breaking change, moving away from interoperability? |
Thank you for proposing Modern definition of We wanted to let you know that this proposal was not selected to be part of Interop this year. On behalf of the entire Interop team, thank you for submitting this proposal for consideration. We got many more proposals than we could include in this year's project, necessitating some difficult choices. Please note this should not be taken as a comment on the technology as a whole, or our willingness to consider it for Interop in the future. We appreciate the work you put into your proposal, and would welcome your participation in future rounds of Interop. For an overview of our process, see proposal selection. Thank you again for contributing to Interop 2025. Posted on behalf of the Interop team. |
Can you share the reasoning behind this decision? |
@KyNorthstar the discussion in #180 is still mostly relevant. At the time, @lilles added https://chromestatus.com/metrics/feature/timeline/popularity/2624 to gauge the risk of changing Doing the standards work itself is out of scope of the Interop project, but it looks like the direction will have to be a new pseudo-class that has the desired behavior. w3c/csswg-drafts#1967 is tracking making a decision. It's clear there is a pain point here, so once there is a spec (and tests) I hope there would be progress on the implementation side. Hope that helps! |
Description
In Selectors level 4 the CSSWG has spec'd that the
:empty
pseudo-class will now match when the only contents of an element are white space, e.g. all of the following match:empty
:Browsers do not currently deliver this capability, even while developers expect this behavior.
Specification
https://drafts.csswg.org/selectors-4/#the-empty-pseudo
Additional Signals
No response
The text was updated successfully, but these errors were encountered: