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

Activate specs for broken at-root in LibSass #936

Merged
merged 2 commits into from
Oct 4, 2016

Conversation

xzyfer
Copy link
Contributor

@xzyfer xzyfer commented Oct 3, 2016

This PR activates specs for sass/libsass#2006 and sass/libsass#2198

xzyfer added a commit to xzyfer/libsass that referenced this pull request Oct 4, 2016
LibSass fully parses selectors during the parsing stage. This is
different from Ruby Sass which parse selectors and string during
the parsing stage, and lazily eval'ing when required. This
difference causes some pathological selector issues. Our eager
parsing of selectors has resulted in us hacking in fake
`Parent_Selector` into `Sequence_Selector` during parsing.

These fake `Parent_Selector` play havoc with `resolve_parent_refs`
when within `@at-root` blocks. I spent a couple weeks going down
the rabbit whole of refactoring our selector parsing to be lazy before
bailing.

Explicitly marking which `Parent_Selector` are fake during parsing
allows us faithfully implement the `implicit_parent` flag in
`resolve_parent_refs`.

Fixes sass#2006
Fixes sass#2198
Spec sass/sass-spec#936
xzyfer added a commit to xzyfer/libsass that referenced this pull request Oct 4, 2016
LibSass fully parses selectors during the parsing stage. This is
different from Ruby Sass which parse selectors and string during
the parsing stage, and lazily eval'ing when required. This
difference causes some pathological selector issues. Our eager
parsing of selectors has resulted in us hacking in fake
`Parent_Selector` into `Sequence_Selector` during parsing.

These fake `Parent_Selector` play havoc with `resolve_parent_refs`
when within `@at-root` blocks. I spent a couple weeks going down
the rabbit whole of refactoring our selector parsing to be lazy before
bailing.

Explicitly marking which `Parent_Selector` are fake during parsing
allows us faithfully implement the `implicit_parent` flag in
`resolve_parent_refs`.

Fixes sass#2006
Fixes sass#2198
Spec sass/sass-spec#936
@xzyfer xzyfer merged commit f33148e into sass:master Oct 4, 2016
@xzyfer xzyfer deleted the feat/enable-broken-at-root branch October 4, 2016 08:12
@nex3 nex3 mentioned this pull request Nov 11, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant