Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Implemented moz-any Selector

  • Loading branch information...
commit 93ea15bfd89d6ff1aeb08ecc76e54177f87c839d 1 parent 8fb886b
@bmavity authored
Showing with 3 additions and 3 deletions.
  1. +3 −1 src/cssSelector.ometa
  2. +0 −2  tests/test.js
View
4 src/cssSelector.ometa
@@ -105,7 +105,9 @@ ometa CssSelector <: Parser {
equals_match = '=' -> { '=' },
pseudo = ':' ':' (functional_pseudo | IDENT):i -> { '::' + i }
| ':' (functional_pseudo | IDENT):i -> { ':' + i },
- functional_pseudo = FUNCTION:f S* full_expression:e ')' -> { f + e + ')' },
+ functional_pseudo = FUNCTION:f S* full_expression:e ')' -> { f + e + ')' }
+ // Css Hack for :-moz-any(...)
+ | FUNCTION:f S* selectors_group:sel ')' -> { f + sel + ')' },
expression_content = (PLUS | '-' | PERCENTAGE | DIMENSION | NUMBER | STRING | IDENT):e -> { e },
expression = expression_content:ec S+ expression:e -> { ec + ' ' + e }
View
2  tests/test.js
@@ -188,13 +188,11 @@ vows.describe('Negation Selectors').addBatch({
}).run();
-/*
vows.describe('moz Any Selector').addBatch({
':-moz-any(h1, h2, h3)': shouldParse(),
':-moz-any(.foo)': shouldParse(),
':-moz-any(foo bar, .baz > .bang)': shouldParse()
}).run();
-*/
vows.describe('Namespaced Selectors').addBatch({
Please sign in to comment.
Something went wrong with that request. Please try again.