Avoid dynamic specificity calculation for ::slotted()
I want to try and remove the dynamic specificity calculation altogether. After this, it's only used by :host and :host-context. Also, we currently return kClassLikeSpecificity for pseudo-elements (for some reason), so use this for ::slotted as well. Even though it's not observable for authors, it makes things somewhat consistent internally at least. Test: external/wpt/css/css-scoping/slotted-specificity.html Change-Id: Ie64144dfca7439cb02ee839d33c53a409e3cc523 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2505751Reviewed-by:Rune Lillesveen <futhark@chromium.org> Commit-Queue: Anders Hartvoll Ruud <andruud@chromium.org> Cr-Commit-Position: refs/heads/master@{#821882}
Showing
Please register or sign in to comment