scroll-to-css-selector
scroll-to-css-selector copied to clipboard
Pseudo-class and pseudo-element selectors
Some pseudo-classes (:first-child, :nth-child…) make perfect sense as target selectors. Others, not so much: :valid, :hover, :lang().
Likewise, most pseudo-elements don't work well as targets (::before, ::after), but we could argue that some do (::first-line, ::first-letter).
Should the scroll-to-selector syntax be limited to support only a subset of these selectors?