{"action":"created","issue":{"url":"https://api.github.com/repos/stylelint/stylelint/issues/1870","repository_url":"https://api.github.com/repos/stylelint/stylelint","labels_url":"https://api.github.com/repos/stylelint/stylelint/issues/1870/labels{/name}","comments_url":"https://api.github.com/repos/stylelint/stylelint/issues/1870/comments","events_url":"https://api.github.com/repos/stylelint/stylelint/issues/1870/events","html_url":"https://github.com/stylelint/stylelint/issues/1870","id":173847121,"number":1870,"title":"property-no-unknown False Positive with SCSS Nested Properties","user":{"login":"epmatsw","id":1126580,"avatar_url":"https://avatars.githubusercontent.com/u/1126580?v=3","gravatar_id":"","url":"https://api.github.com/users/epmatsw","html_url":"https://github.com/epmatsw","followers_url":"https://api.github.com/users/epmatsw/followers","following_url":"https://api.github.com/users/epmatsw/following{/other_user}","gists_url":"https://api.github.com/users/epmatsw/gists{/gist_id}","starred_url":"https://api.github.com/users/epmatsw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/epmatsw/subscriptions","organizations_url":"https://api.github.com/users/epmatsw/orgs","repos_url":"https://api.github.com/users/epmatsw/repos","events_url":"https://api.github.com/users/epmatsw/events{/privacy}","received_events_url":"https://api.github.com/users/epmatsw/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/stylelint/stylelint/labels/status:%20discussion","name":"status: discussion","color":"0023ee"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-08-29T19:03:05Z","updated_at":"2016-08-30T07:34:32Z","closed_at":null,"body":"> Describe the issue. Is it a bug or a feature request (new rule, new option, etc.)?\r\n\r\nA bug where valid CSS is being reported as an issue.\r\n\r\n> Which rule, if any, is this issue related to?\r\n\r\n`property-no-unknown`\r\n\r\n> What CSS is needed to reproduce this issue?\r\n\r\ne.g.\r\n\r\n```css\r\n.test {\r\n    border: {\r\n            style: solid;\r\n            color: red;\r\n    }\r\n}\r\n```\r\n\r\n> What stylelint configuration is needed to reproduce this issue?\r\n\r\nstylelint-config-standard 13.0.0\r\n\r\n> Which version of stylelint are you using?\r\n\r\n7.2.0\r\n\r\n> How are you running stylelint: CLI, PostCSS plugin, Node API?\r\n\r\nScripted via npm (`stylelint -q -s 'scss' \"src/**/*.css\"`)\r\n\r\n> Does your issue relate to non-standard syntax (e.g. SCSS, nesting, etc.)?\r\n\r\nYes, SCSS nested properties.\r\n\r\n> What did you expect to happen?\r\n\r\nNo errors raised.\r\n\r\n> What actually happened (e.g. what warnings or errors you are getting)?\r\n\r\nThe following errors were flagged:\r\n\r\n```shell\r\nUnexpected unknown property \"style\"   property-no-unknown\r\n```"},"comment":{"url":"https://api.github.com/repos/stylelint/stylelint/issues/comments/243357271","html_url":"https://github.com/stylelint/stylelint/issues/1870#issuecomment-243357271","issue_url":"https://api.github.com/repos/stylelint/stylelint/issues/1870","id":243357271,"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-08-30T07:34:32Z","updated_at":"2016-08-30T07:34:32Z","body":"@epmatsw Thanks for report and for using the template.\r\n\r\n@evilebottnawi Yes. Unlike nested selectors, I don't think we should resolve nested properties in core as it's a non-standard language extension.\r\n\r\nAs always, lets work out a way to ignore this construct so this rule doesn't trip up on it.\r\n\r\nShall we add a conditional to [`isStandardSyntaxProperty`](https://github.com/stylelint/stylelint/blob/master/src/utils/isStandardSyntaxProperty.js)? \r\n\r\nI think returning early if the *selector* of the *parent rule* ends with `:` and doesn't start with `--` (to exclude custom property sets). Can you any foreseen any problems with this heuristic? "}}
{"actor":{"display_login":"jeddy3"}}