Re: [csswg-drafts] [selectors-4] :valid-within / :invalid-within pseudo-classes

Unfortunately, Edge 17 still doesn't support `:valid`/`:invalid` for neither `<fieldset>` nor `<form>` :( The [corresponding bug](https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/8114184/) has been open since 2016.

Regarding the `:has()` selector, I'm rather skeptical about its future because limiting it to the "snapshot profile" would probably make it too much pain for too little gain for implementers. In JS, there are already (almost) equivalent ways to do its job, including one-liners like `[...document.querySelectorAll('.part-before-has')].filter(el=>el.querySelector('.part-inside-has'))`, and browser vendors unlikely would invest much effort in adding more complexity to CSS parser engine etc. just to add just one more way to do the same (even slightly more elegant one). Personally, I would prefer introducing subsets of `:has()` that can be reasonably implemented in "live profile" (like `:has-children()` and `:has-following-siblings()` mentioned by @tabatkins in [#1694](1694#issuecomment-320784244))... and even probably dropping the "snapshot profile" concept at all (as kind of a premature optimization:).

-- 
GitHub Notification of comment by SelenIT
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3072#issuecomment-431903469 using your GitHub account

Received on Monday, 22 October 2018 19:47:33 UTC