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

Stylelint: Define function-url-quotes #103

Merged
merged 1 commit into from
Dec 3, 2018
Merged

Conversation

mikeselander
Copy link
Contributor

Stylelint is currently (via a parent config, I assume) requiring that no quotes be used within the CSS url() function. However, using url() without quotes requires special escaping and the potential for forgetting to escape a special character exists, making use with quotes just a little bit safer. I propose that we require quotes in URLs for consistency and ease of use.

Ref: https://drafts.csswg.org/css-values-3/#urls

This PR defines this rule to "always" to match the current spec.

@rmccue
Copy link
Member

rmccue commented Nov 15, 2018

Should this be added to the style guide as well?

@mikeselander
Copy link
Contributor Author

Yes, it and #104 should both be updated in the guides. I'll add PRs for those as well.

Copy link
Member

@rmccue rmccue left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Marking as blocked until we get it in the handbook. :)

@mikeselander mikeselander mentioned this pull request Nov 24, 2018
7 tasks
Copy link
Member

@rmccue rmccue left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added to Handbook, so we can proceed whenever you're ready here. :)

@mikeselander mikeselander merged commit b470d44 into master Dec 3, 2018
@mikeselander mikeselander deleted the function-url-quotes branch December 3, 2018 18:01
@mikeselander mikeselander added this to the 0.6 milestone Mar 22, 2019
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.

None yet

3 participants