{"action":"created","issue":{"url":"https://api.github.com/repos/Polymer/polymer/issues/2263","labels_url":"https://api.github.com/repos/Polymer/polymer/issues/2263/labels{/name}","comments_url":"https://api.github.com/repos/Polymer/polymer/issues/2263/comments","events_url":"https://api.github.com/repos/Polymer/polymer/issues/2263/events","html_url":"https://github.com/Polymer/polymer/issues/2263","id":100703475,"number":2263,"title":"custom-style containing '/deep/' or '::shadow' produces an SyntaxError in Firefox","user":{"login":"urandom","id":7908,"avatar_url":"https://avatars.githubusercontent.com/u/7908?v=3","gravatar_id":"","url":"https://api.github.com/users/urandom","html_url":"https://github.com/urandom","followers_url":"https://api.github.com/users/urandom/followers","following_url":"https://api.github.com/users/urandom/following{/other_user}","gists_url":"https://api.github.com/users/urandom/gists{/gist_id}","starred_url":"https://api.github.com/users/urandom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/urandom/subscriptions","organizations_url":"https://api.github.com/users/urandom/orgs","repos_url":"https://api.github.com/users/urandom/repos","events_url":"https://api.github.com/users/urandom/events{/privacy}","received_events_url":"https://api.github.com/users/urandom/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Polymer/polymer/labels/p1","name":"p1","color":"eb6420"}],"state":"open","locked":false,"assignee":{"login":"sorvell","id":78891,"avatar_url":"https://avatars.githubusercontent.com/u/78891?v=3","gravatar_id":"","url":"https://api.github.com/users/sorvell","html_url":"https://github.com/sorvell","followers_url":"https://api.github.com/users/sorvell/followers","following_url":"https://api.github.com/users/sorvell/following{/other_user}","gists_url":"https://api.github.com/users/sorvell/gists{/gist_id}","starred_url":"https://api.github.com/users/sorvell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sorvell/subscriptions","organizations_url":"https://api.github.com/users/sorvell/orgs","repos_url":"https://api.github.com/users/sorvell/repos","events_url":"https://api.github.com/users/sorvell/events{/privacy}","received_events_url":"https://api.github.com/users/sorvell/received_events","type":"User","site_admin":false},"milestone":null,"comments":4,"created_at":"2015-08-13T07:01:47Z","updated_at":"2015-08-20T19:25:26Z","closed_at":null,"body":"The problem occurs when the rule is passed to the Element.prototype.matches function. \r\nFirefox throws the following: \r\n```\r\nSyntaxError: An invalid or illegal string was specified\r\n```\r\n\r\nThe location of the error is in Polymer.StyleProperties.propertyDataFromStyles, when the matchesSelector is called on the rule. The rule with which I reproduce it is 'body /deep/ *', but any rule which contains /deep/ and ::shadow will trigger the error.\r\n\r\nBefore the custom-style element, the html contains both the script for webcomponents-lite.min.js, as well as the import for polymer.html."},"comment":{"url":"https://api.github.com/repos/Polymer/polymer/issues/comments/133138193","html_url":"https://github.com/Polymer/polymer/issues/2263#issuecomment-133138193","issue_url":"https://api.github.com/repos/Polymer/polymer/issues/2263","id":133138193,"user":{"login":"sorvell","id":78891,"avatar_url":"https://avatars.githubusercontent.com/u/78891?v=3","gravatar_id":"","url":"https://api.github.com/users/sorvell","html_url":"https://github.com/sorvell","followers_url":"https://api.github.com/users/sorvell/followers","following_url":"https://api.github.com/users/sorvell/following{/other_user}","gists_url":"https://api.github.com/users/sorvell/gists{/gist_id}","starred_url":"https://api.github.com/users/sorvell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sorvell/subscriptions","organizations_url":"https://api.github.com/users/sorvell/orgs","repos_url":"https://api.github.com/users/sorvell/repos","events_url":"https://api.github.com/users/sorvell/events{/privacy}","received_events_url":"https://api.github.com/users/sorvell/received_events","type":"User","site_admin":false},"created_at":"2015-08-20T19:25:26Z","updated_at":"2015-08-20T19:25:26Z","body":"A selector like `body /deep/ *` should just be replaced with `:root`. I will effectively do the same thing."}}