DEV Community

Discussion on: What is Your Opinion about CSS(-in-JS)?

Collapse
 
marvindanig profile image
Marvin Danig • Edited

It's an absolute no-no for me. Want my sites to be able to work without JavaScript on devices like screen readers with accessibility-specific features that rely purely on HTML & CSS.

Collapse
 
trickydisco78 profile image
trickydisco78

Also in a lot of cases JavaScript makes the browsing experience more usable and accessible

Collapse
 
marvindanig profile image
Marvin Danig

I agree with you on that!

Collapse
 
trickydisco78 profile image
trickydisco78

Screen reader sit on top of the browsing experience so understand JavaScript. In fact JavaScript is an accessibility supported technology according to the w3c. Also some of these cssinjs libraries extract to simple CSS.