DEV Community

Discussion on: media attribute in link tag

Collapse
 
patarapolw profile image
Pacharapol Withayasakpunt

I feel like it is equivalent to @media applied to the whole import statement in SCSS.

It's yet another way to do things without building the CSS first, like it comes from third party CDN.

I saw it used for

media="(prefers-color-scheme: dark)" 
media="(prefers-color-scheme: no-preference), (prefers-color-scheme: light)" 
Enter fullscreen mode Exit fullscreen mode
Collapse
 
robinkartikeyakhatri profile image
Robin Kartikeya Khatri

Great