DEV Community

Discussion on: Sibling Selectors In CSS

Collapse
 
rdebeasi profile image
Ryan DeBeasi

I missed this part when I first skimmed this article:

Unfortunately in CSS we don't have any such previous sibling selectors, but yes in axe(ACSSSS)- Augmented Cascading Style Sheet Syntax, we have previous or preceding sibling selectors.

Just to reiterate: ? and ! selectors are not part of the CSS standard. They're provided by the axe library, which adds support for nonstandard selectors in CSS. Other tools (document.querySelector, jQuery, etc.) do not support these nonstandard selectors.

Just wanted to share that for anyone else who might've skimmed the article like I did. 😅 Thank you for writing this helpful overview!!