[:is/:where] Don't treat :is() as a universal sibling
When adding features to a simple selector, we are currently calling IsIdClassOrAttributeSelector() to determine if we should add features to the universal sibling set or not. This means selectors like ':is(.a) + .b' will result in a universal sibling set containing '.b', since ':is(.a)' is not an ID/class/attribute. This CL instead detects whether an ID/class/attributes exist inside the nested selector list, thus avoiding the addition to the universal sibling set. Note that this affects -webkit-any() as well. Bug: 568705 Change-Id: I7bba857a3f24e9789f5517617e4201079d7350ef Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2435089 Commit-Queue: Anders Hartvoll Ruud <andruud@chromium.org> Reviewed-by:Rune Lillesveen <futhark@chromium.org> Cr-Commit-Position: refs/heads/master@{#812593}
Showing
Please register or sign in to comment