[:is/:where] Parse as <forgiving-selector-list>
This CL aligns the parsing behavior for :is() and :where() with <forgiving-selector-list> [1]. Parsing as a forgiving selector list means that individual selectors that are invalid will just be dropped; they won't invalidate the entire pseudo. This also adds support for empty :is()/:where() pseudos, which are valid, but do not match anything [2]. [1] https://drafts.csswg.org/selectors/#typedef-forgiving-selector-list [2] https://drafts.csswg.org/selectors/#matches Bug: 568705 Change-Id: I1b8f7d34e28d10927b1199ae2ed6ef8c2936e828 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2450012Reviewed-by:Rune Lillesveen <futhark@chromium.org> Commit-Queue: Anders Hartvoll Ruud <andruud@chromium.org> Cr-Commit-Position: refs/heads/master@{#815253}
Showing
Please register or sign in to comment