You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
all is allowed in a <media-query> but not allowed in a <media-condition>. However there is no easy way to evaluate a <media-condition> as opposed to a <media query>. These tests will currently fail.
{sizes: 'all and (min-width:0) 100vw, 1px', expect: '1px'},
{sizes: 'all and (min-width:0) 1px', expect: '100vw'},
One crude but very fast approach could be to just test the string for some of the common media type strings and error out if one or more is found:
Another option is to not evaluate at all, just return a list of media-condition,length pairs. It doesn't make the issue go away of course. It's not what the spec does but that doesn't matter, so long as the end result is the same the spec can be implemented in any manner.
http://dev.w3.org/csswg/mediaqueries4/#mq-syntax
all
is allowed in a<media-query>
but not allowed in a<media-condition>
. However there is no easy way to evaluate a<media-condition>
as opposed to a<media query>
. These tests will currently fail.One crude but very fast approach could be to just test the string for some of the common media type strings and error out if one or more is found:
Or possibly just ignore and leave it as is?
The text was updated successfully, but these errors were encountered: