{"action":"created","issue":{"url":"https://api.github.com/repos/stylelint/stylelint/issues/841","repository_url":"https://api.github.com/repos/stylelint/stylelint","labels_url":"https://api.github.com/repos/stylelint/stylelint/issues/841/labels{/name}","comments_url":"https://api.github.com/repos/stylelint/stylelint/issues/841/comments","events_url":"https://api.github.com/repos/stylelint/stylelint/issues/841/events","html_url":"https://github.com/stylelint/stylelint/issues/841","id":138082067,"number":841,"title":"Compound warnings with data URI's and function-url-quotes","user":{"login":"ntwb","id":1016458,"avatar_url":"https://avatars.githubusercontent.com/u/1016458?v=3","gravatar_id":"","url":"https://api.github.com/users/ntwb","html_url":"https://github.com/ntwb","followers_url":"https://api.github.com/users/ntwb/followers","following_url":"https://api.github.com/users/ntwb/following{/other_user}","gists_url":"https://api.github.com/users/ntwb/gists{/gist_id}","starred_url":"https://api.github.com/users/ntwb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ntwb/subscriptions","organizations_url":"https://api.github.com/users/ntwb/orgs","repos_url":"https://api.github.com/users/ntwb/repos","events_url":"https://api.github.com/users/ntwb/events{/privacy}","received_events_url":"https://api.github.com/users/ntwb/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/stylelint/stylelint/labels/type:%20bug","name":"type: bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-03T05:48:38Z","updated_at":"2016-03-03T13:36:46Z","closed_at":null,"body":"> Describe the issue. Is it a bug or a feature request (new rule, new option, etc.)?\r\n\r\nWhen using the rule `function-url-quotes` alongside `number-leading-zero`, and `function-comma-space-after` rules then those rules will throw the related warnings when using `data` URI's.\r\n\r\n> Which rule, if any, is this issue related to?\r\n\r\n`function-url-quotes`, `number-leading-zero`, and `function-comma-space-after`\r\n\r\n> What CSS is needed to reproduce this issue?\r\n\r\n```css\r\n/* A couple of basic url examples, triggers \"function-comma-space-after\" rule warnings */\r\na { background: url(data:image/gif;base64,BESE64ENCODEDSTRING==); }\r\na { background-image: url(data:image/png;base64,BASE64ENCODEDSTRING==); }\r\n\r\n/* An example that contains a number less than zero without a leading zero, triggers \"number-leading-zero\" rule warnings */\r\na { background-image: url(data:image/svg+xml;charset=utf8,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.example.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2020%2020%27%3E%3Cpath%20d%3D%27M14.5%2012q1.24%200%202.12.88T17.5%2015t-.88%202.12-2.12.88-2.12-.88T11.5%2015q0-.34.09-.69l-4.38-2.3Q6.32%2013%205%2013q-1.24%200-2.12-.88T2%2010t.88-2.12T5%207q1.3%200%202.21.99l4.38-2.3q-.09-.35-.09-.69%200-1.24.88-2.12T14.5%202t2.12.88T17.5%205t-.88%202.12T14.5%208q-1.3%200-2.21-.99l-4.38%202.3Q8%209.66%208%2010t-.09.69l4.38%202.3q.89-.99%202.21-.99z%27%20fill%3D%27%230073aa%27%2F%3E%3C%2Fsvg%3E); }\r\n```\r\n\r\n> What stylelint configuration is needed to reproduce this issue?\r\n\r\n```json\r\n{\r\n  \"rules\": {\r\n    \"function-comma-space-after\": \"always\",\r\n    \"function-url-quotes\": \"none\",\r\n    \"number-leading-zero\": \"always\",\r\n  }\r\n}\r\n```\r\n\r\n> Which version of stylelint are you using? `4.4.0`\r\n\r\n> How are you running stylelint: CLI, PostCSS plugin, Node API?\r\n\r\nCLI with `stylelint --config node_modules/stylelint-config-wordpress/index.js src/test.css`\r\n\r\n> Does your issue relate to non-standard syntax (e.g. SCSS, nesting, etc.)? No\r\n\r\n> What did you expect to happen?\r\n\r\nIn a perfect world, no warnings to be flagged.\r\n\r\n> What actually happened (e.g. what warnings or errors you are getting)?\r\n\r\nBoth these warnings were flagged for the example CSS above:\r\n\r\n```shell\r\ntest.css\r\n16:39\t⚠  Expected single space after \",\" (function-comma-space-after) [stylelint]\r\n61:209\t⚠  Expected a leading zero (number-leading-zero) [stylelint]\r\n```\r\n\r\nCurrently I'm working around this using:\r\n`/* stylelint-disable function-comma-space-after, number-leading-zero */`\r\n\r\nI'm not sure if there is an easy way to modify the `function-url-quotes` rule here, or if some exceptions should be added to the `number-leading-zero` and `function-comma-space-after` rules"},"comment":{"url":"https://api.github.com/repos/stylelint/stylelint/issues/comments/191763286","html_url":"https://github.com/stylelint/stylelint/issues/841#issuecomment-191763286","issue_url":"https://api.github.com/repos/stylelint/stylelint/issues/841","id":191763286,"user":{"login":"jeddy3","id":808227,"avatar_url":"https://avatars.githubusercontent.com/u/808227?v=3","gravatar_id":"","url":"https://api.github.com/users/jeddy3","html_url":"https://github.com/jeddy3","followers_url":"https://api.github.com/users/jeddy3/followers","following_url":"https://api.github.com/users/jeddy3/following{/other_user}","gists_url":"https://api.github.com/users/jeddy3/gists{/gist_id}","starred_url":"https://api.github.com/users/jeddy3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeddy3/subscriptions","organizations_url":"https://api.github.com/users/jeddy3/orgs","repos_url":"https://api.github.com/users/jeddy3/repos","events_url":"https://api.github.com/users/jeddy3/events{/privacy}","received_events_url":"https://api.github.com/users/jeddy3/received_events","type":"User","site_admin":false},"created_at":"2016-03-03T13:36:46Z","updated_at":"2016-03-03T13:36:46Z","body":"Sgtm."}}