It is very unfriendly to be stuck writing stuff like this:
"foobar/style/mobile.css" => array( 'media' => 'only screen and (max-width: 600px)' ),
"foobar/style/mobile-hidpi.css" => array( 'media' => 'only screen and (max-width: 600px) and (-webkit-min-device-pixel-ratio: 1.3), only screen and (max-width: 600px) and (-o-min-device-pixel-ratio: 2.6/2), only screen and (max-width: 600px) and (min--moz-device-pixel-ratio: 1.3), only screen and (max-width: 600px) and (min-resolution: 1.3dppx), only screen and (max-width: 600px) and (min-resolution: 124.8dpi)' ),
Just so you can add a few hidpi styles.
We should support just having the mobile.css and using @media for just the hidpi stuff inside the css file. Which would combined together as top-level @media entries in the final output.
For that matter since RL is already screwing with things by turning media="" into @media we might as well just expand all nested @media entries into top-level ones.
Nesting queries is valid in css3-mediaqueries but only a few browsers implement that part of the spec correctly. Which the RL pattern messes with.
Version: 1.22.0
Severity: enhancement