Parent Selectors May Finally Be Possible
For years, CSS developers have been told that parent selectors like .parent:has(.child) are simply too slow for browsers to handle. That long-standing assumption is now being challenged. Igalia engineers have been collaborating with Chromium developers and examining Firefox and WebKit codebases to see if the idea is actually viable.
Igalia engineers have been looking into this problem. We’ve been having discussions with Chromium developers, looking into Firefox and WebKit codebases and doing some initial prototypes and tests to really get our heads around it.
The team has published performance data based on their work so far, along with an explainer that documents design notes and open questions. They’ve also outlined specific use cases where a parent selector would be genuinely useful.Direct Link →



