-
Notifications
You must be signed in to change notification settings - Fork 136
Preserve sourceURL comment in parser #197
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
Conversation
Looks good. I assume you’re want this on crates.io, so r=me with the version number incremented. |
In addition to the sourceMappingURL comment, there is a second special comment, "sourceURL", that can be used to set the "display name" of a style sheet for developer tools. This name is also used as the base URL for the source-map URL resolution algorithm. sourceURL is described here: https://blog.getfirebug.com/2009/08/11/give-your-eval-a-name-with-sourceurl/ The relevant Firefox bug is here: https://bugzilla.mozilla.org/show_bug.cgi?id=880831
7cf88a7
to
7e3b85d
Compare
I saw by chance that you had updated this PR but did not receive an email notification for that. I’ve seen some github notifications for further pushes to PR but they don’t seem to always happen… I don’t know if there’s a specific situation that causes that. Anyway, please also comment (or ping on IRC, or something) when you push. @bors-servo r+ |
📌 Commit 7e3b85d has been approved by |
Preserve sourceURL comment in parser In addition to the sourceMappingURL comment, there is a second special comment, "sourceURL", that can be used to set the "display name" of a style sheet for developer tools. This name is also used as the base URL for the source-map URL resolution algorithm. sourceURL is described here: https://blog.getfirebug.com/2009/08/11/give-your-eval-a-name-with-sourceurl/ The relevant Firefox bug is here: https://bugzilla.mozilla.org/show_bug.cgi?id=880831 <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/rust-cssparser/197) <!-- Reviewable:end -->
💡 This pull request was already approved, no need to approve it again.
|
📌 Commit 7e3b85d has been approved by |
Preserve sourceURL comment in parser In addition to the sourceMappingURL comment, there is a second special comment, "sourceURL", that can be used to set the "display name" of a style sheet for developer tools. This name is also used as the base URL for the source-map URL resolution algorithm. sourceURL is described here: https://blog.getfirebug.com/2009/08/11/give-your-eval-a-name-with-sourceurl/ The relevant Firefox bug is here: https://bugzilla.mozilla.org/show_bug.cgi?id=880831 <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/rust-cssparser/197) <!-- Reviewable:end -->
☀️ Test successful - status-travis |
In addition to the sourceMappingURL comment, there is a second special
comment, "sourceURL", that can be used to set the "display name" of a
style sheet for developer tools. This name is also used as the base
URL for the source-map URL resolution algorithm. sourceURL is
described here:
https://blog.getfirebug.com/2009/08/11/give-your-eval-a-name-with-sourceurl/
The relevant Firefox bug is here:
https://bugzilla.mozilla.org/show_bug.cgi?id=880831
This change is