{"action":"created","issue":{"url":"https://api.github.com/repos/less/less.js/issues/2715","labels_url":"https://api.github.com/repos/less/less.js/issues/2715/labels{/name}","comments_url":"https://api.github.com/repos/less/less.js/issues/2715/comments","events_url":"https://api.github.com/repos/less/less.js/issues/2715/events","html_url":"https://github.com/less/less.js/issues/2715","id":112633426,"number":2715,"title":"CSS @apply","user":{"login":"Jamtis","id":3067604,"avatar_url":"https://avatars.githubusercontent.com/u/3067604?v=3","gravatar_id":"","url":"https://api.github.com/users/Jamtis","html_url":"https://github.com/Jamtis","followers_url":"https://api.github.com/users/Jamtis/followers","following_url":"https://api.github.com/users/Jamtis/following{/other_user}","gists_url":"https://api.github.com/users/Jamtis/gists{/gist_id}","starred_url":"https://api.github.com/users/Jamtis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jamtis/subscriptions","organizations_url":"https://api.github.com/users/Jamtis/orgs","repos_url":"https://api.github.com/users/Jamtis/repos","events_url":"https://api.github.com/users/Jamtis/events{/privacy}","received_events_url":"https://api.github.com/users/Jamtis/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/less/less.js/labels/Feature%20Request","name":"Feature Request","color":"fe9400"},{"url":"https://api.github.com/repos/less/less.js/labels/NeedsDecision","name":"NeedsDecision","color":"5319e7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-10-21T16:52:29Z","updated_at":"2015-12-10T14:30:47Z","closed_at":null,"body":"This code breaks:\r\n\r\n```\r\npaper-drawer-panel {\r\n  --paper-drawer-panel-left-drawer: {\r\n    background-color: red;\r\n  };\r\n}\r\n```\r\n\r\nThe curly brackets in the property value break the parser.\r\n\r\nI'd like LESS to support the `@apply` syntax, as used by Polymer.\r\nhttps://www.polymer-project.org/1.0/docs/devguide/styling.html#custom-css-mixins\r\n\r\nAlso tried:\r\n\r\n```\r\npaper-drawer-panel {\r\n  @ruleset: {\r\n    prop: value;\r\n  };\r\n  --paper-drawer-panel-left-drawer: %(~\"%d\", @ruleset);\r\n}\r\n```\r\n\r\nIt didn't break the parser but delivered:\r\n```\r\npaper-drawer-panel {\r\n  --paper-drawer-panel-left-drawer: ;\r\n}\r\n```\r\n\r\nwhich is clearly not a desirable behavior."},"comment":{"url":"https://api.github.com/repos/less/less.js/issues/comments/163635828","html_url":"https://github.com/less/less.js/issues/2715#issuecomment-163635828","issue_url":"https://api.github.com/repos/less/less.js/issues/2715","id":163635828,"user":{"login":"seven-phases-max","id":5304376,"avatar_url":"https://avatars.githubusercontent.com/u/5304376?v=3","gravatar_id":"","url":"https://api.github.com/users/seven-phases-max","html_url":"https://github.com/seven-phases-max","followers_url":"https://api.github.com/users/seven-phases-max/followers","following_url":"https://api.github.com/users/seven-phases-max/following{/other_user}","gists_url":"https://api.github.com/users/seven-phases-max/gists{/gist_id}","starred_url":"https://api.github.com/users/seven-phases-max/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seven-phases-max/subscriptions","organizations_url":"https://api.github.com/users/seven-phases-max/orgs","repos_url":"https://api.github.com/users/seven-phases-max/repos","events_url":"https://api.github.com/users/seven-phases-max/events{/privacy}","received_events_url":"https://api.github.com/users/seven-phases-max/received_events","type":"User","site_admin":false},"created_at":"2015-12-10T14:30:47Z","updated_at":"2015-12-10T14:30:47Z","body":"I'm reopening this to be able to redirect duplicate requests here."}}