I disagree with use cases that rely on CSS, generally at risk from network interruptions and caching, to trigger programmatic state changes in the HTML that references it (see pic). Cart / horse and all.
Instead, use CSS to ensure your programmatic state is correct. Eg: adrianroselli.com/2021/06/usinβ¦
#a11y #accessiblity #css #html
Using CSS to Enforce Accessibility
The CSS3 logo as a head atop a torso with its arms folded across its chest. I am a big proponent of the First Rule of ARIA (donβt use ARIA). But ARIA brings a lot to the table that HTML does not, such as complex widgets and state information thatβ¦Adrian Roselli