Skip to content

Extend all and leading/trailing combinators #1642

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
SomMeri opened this issue Nov 6, 2013 · 0 comments
Open

Extend all and leading/trailing combinators #1642

SomMeri opened this issue Nov 6, 2013 · 0 comments

Comments

@SomMeri
Copy link
Member

SomMeri commented Nov 6, 2013

It is not possible to use leading or trailing combinator inside extend all. Combinators in the middle are compared while:

  • leading combinators are ignored
  • trailing combinators prevent matching.
a:first b:second  { property: value;}
a:first + b:second  { property: value;}

leading:extend(+ b:second all) {} // + is ignored
trailing:extend(a:first + all) {} // + prevents matching

compiles into:

a:first b:second,
a:first leading { // + was ignored match found 
  property: value;
}
a:first + b:second,
a:first + leading { // trailing is missing here
  property: value;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant