Open nemzes opened 6 years ago
Some pseudo-classes (:first-child, :nth-child…) make perfect sense as target selectors. Others, not so much: :valid, :hover, :lang().
:first-child
:nth-child
: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).
::before
::after
::first-line
::first-letter
Should the scroll-to-selector syntax be limited to support only a subset of these 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?