[css3-mediaqueries] Add a test: "all and(orientation)" is invalid.

Thu, 04 Oct 2012 00:37:46 +0200

author
Simon Sapin <simon.sapin@exyr.org>
date
Thu, 04 Oct 2012 00:37:46 +0200
changeset 4279
3c457284e4a7
parent 4278
3f839be7d5df
child 4280
8b78d4952415

[css3-mediaqueries] Add a test: "all and(orientation)" is invalid.

Example 20 of the spec has a similar query. 'and(' is tokenized as a
FUNCTION. Adding whitespace makes it IDENT S '(', and thus a valid
query.

contributors/kozea/media-queries-001.html file | annotate | diff | comparison | revisions
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/contributors/kozea/media-queries-001.html	Thu Oct 04 00:37:46 2012 +0200
     1.3 @@ -0,0 +1,11 @@
     1.4 +<!doctype html>
     1.5 +<html>
     1.6 +<title>Whitespace after 'and': no functional syntax.</title>
     1.7 +<link rel="author" title="Simon Sapin" href="mailto:simon.sapin@exyr.org">
     1.8 +<style type="text/css">
     1.9 +  .a { color: green }
    1.10 +  @media all and(orientation) {
    1.11 +    .a { color: red }
    1.12 +  }
    1.13 +</style>
    1.14 +<p class=a> This line should be green.

mercurial