If you need widgets that HTML doesn’t have, there is indeed. However, progressive enhancement can resolve the tension (put the CSS-only widget in the HTML, then have JS find it and replace it with a properly implemented one). The problem then is layout shift.
It seems like there is real tension between the goals of supporting accessibility and supporting noscript.
If you need widgets that HTML doesn’t have, there is indeed. However, progressive enhancement can resolve the tension (put the CSS-only widget in the HTML, then have JS find it and replace it with a properly implemented one). The problem then is layout shift.
This feels like a shortcoming of CSS. ARIA attributes could be declaratively controlled via CSS properties.