Skip to content
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

Extend of extend all #1667

Open
SomMeri opened this issue Nov 20, 2013 · 1 comment
Open

Extend of extend all #1667

SomMeri opened this issue Nov 20, 2013 · 1 comment

Comments

@SomMeri
Copy link
Member

SomMeri commented Nov 20, 2013

Extend all will extend selectors generated by normal extend, however normal extend ignores selectors generated by extend all. Was that intentional?

I do not care one way or the other, I just need to know whether it is a bug or a feature.

Normal extend ignores selectors generated by extend all:

ruleset:last {
  property: value;
}

full:extend(ruleset:first) {}
:first:extend(:last all) {}

compiles into:

ruleset:last,
ruleset:first {
  property: value;
}

Extend all will extend selectors generated by normal extend:

ruleset:last {
  property: value;
}

full:first:extend(ruleset:last) {}
:nth-child(3n):extend(:first all) {}

compiles into:

ruleset:last,
full:first,
full:nth-child(3n) {
  property: value;
}

If it is a bug, then it is related to #1641 .

@lukeapage
Copy link
Member

hrmm I think its a bug

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

2 participants