+ 3

[Solved: Yes] Do CSS variables work with @media queries?

I should probably test this in the playground before I post it in the Q/A. Or Google it. Whoops. Maybe some one else will want to know and it'll be helpful. *heads to code playground*

17th Oct 2017, 12:57 AM
Russel Reeder
Russel Reeder - avatar
7 Respostas
+ 6
CSS variable? In my webview no but chrome yes
17th Oct 2017, 1:10 AM
Yanothai Chaitawat
Yanothai Chaitawat - avatar
+ 7
https://css-tricks.com/building-skeleton-screens-css-custom-properties/ Here's a link to where I learned about this, if anyone is interested.
17th Oct 2017, 1:15 AM
Russel Reeder
Russel Reeder - avatar
17th Oct 2017, 1:12 AM
Russel Reeder
Russel Reeder - avatar
+ 6
CSS Variable browser compatibility: Chrome ~ 49.0 (2016) Edge ~ Support Firefox (Gecko) ~ 42 (2015) Internet Explorer ~ Not support Safari Mobile ~ 9.1 Chrome for Android ~ 49.0 Other option, you could consider use SASS or LESS preprocessor.
17th Oct 2017, 2:57 AM
Calviղ
Calviղ - avatar
+ 5
.....Sound like you don't know its history,ha? That it was remove for a long times and then it was released too lately What I want to say is don't use in code playground until It's truly compatible on all android
17th Oct 2017, 1:25 AM
Yanothai Chaitawat
Yanothai Chaitawat - avatar
+ 5
So unless its running in browser probably not worthy
17th Oct 2017, 1:26 AM
Russel Reeder
Russel Reeder - avatar
+ 5
Hmm. Haven't studied SASS or LESS... seems legit tho, heard about it before.
18th Oct 2017, 6:31 PM
Russel Reeder
Russel Reeder - avatar