DescriptionDon't cache nth-indices of pseudo elements.
A pseudo element is not found in its parent's child list. That caused an
assert while trying to cache the nth-index for a ::before element while
matching style for the ::before element's scrollbar pseudo elements.
Instead, skip the caching part and traverse siblings to fall back to the
behavior we had before the NthIndexCache.
Trying to get custom scrollbar style for pseudo elements with scrolling
overflow will not work, but never did. It's not currently possible to
match ::before::-webkit-scrollbar, and a universal ::-webkit-scrollbar
will not match scrollbars in pseudo elements like ::before, either.
R=esprehn@chromium.org
BUG=481495
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=194728
Patch Set 1 #
Total comments: 1
Patch Set 2 : Early return for pseudo elements in NthIndexCache. #
Messages
Total messages: 8 (2 generated)
|