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

Add crutch to help browsers interpreting sourcemaps #1759

Merged
merged 1 commit into from
Nov 28, 2015

Conversation

mgreter
Copy link
Contributor

@mgreter mgreter commented Nov 25, 2015

They should report where the scope gets opened and not
the position of the first simple selector in the sequence.

Browsers actually report the mapping found most right just before the first selector in the sequence. I first tried to simply wrap each entry in a selector list with a mapping from their last complex selector, but as it turned out browsers wouldn't pick that up, so I had to delay the emmitting of that specific source map entry just before the token for the selector is emitted.

Should fix #1747

They should report where the scope gets opened and not
the position of the first simple selector in the sequence.
@xzyfer
Copy link
Contributor

xzyfer commented Nov 28, 2015

👍

@x-yuri
Copy link

x-yuri commented Feb 1, 2018

@mgreter I understand the kludge is still in effect? It may be that it's not needed anymore. I didn't test it thoroughly, but from my couple of attempts it seems like at least Chromium 63 looks for the next mapping after the opening curly bracket.

And there's a related issue, where a guy from Firefox team wants to change libsass behavior. But it may be an opportunity to change how Firefox handles things.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

nested styles refer to top-level parent in sourcemap line number
3 participants