Skip to content

evaluate <media-condition> as opposed to <media-query>? #3

@albell

Description

@albell

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.

{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:

all, print, screen, speech, tty, tv, projection, handheld, braille, embossed, aural

Or possibly just ignore and leave it as is?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions