I have defined a style sheet using Cascading Variables.
:root {
--media: narrow;
}
@media all and (min-width: 30rem)
{
:root {
--media: wide;
}
}
Firefox understands this and shows me the property in the Inspector.
But how to read it from JavaScript?
I tried it with jQuery 2.1.3 but it does not seem to work:
$('html').css('--media')
undefined
$('html').css('media')
undefined
$(':root').css('media')
undefined
Which native function I have to use?