{"action":"created","issue":{"url":"https://api.github.com/repos/Polymer/polymer/issues/3458","repository_url":"https://api.github.com/repos/Polymer/polymer","labels_url":"https://api.github.com/repos/Polymer/polymer/issues/3458/labels{/name}","comments_url":"https://api.github.com/repos/Polymer/polymer/issues/3458/comments","events_url":"https://api.github.com/repos/Polymer/polymer/issues/3458/events","html_url":"https://github.com/Polymer/polymer/issues/3458","id":135837185,"number":3458,"title":"Add polyfill support for `:not([class])` within scoped styles","user":{"login":"hguiney","id":229232,"avatar_url":"https://avatars.githubusercontent.com/u/229232?v=3","gravatar_id":"","url":"https://api.github.com/users/hguiney","html_url":"https://github.com/hguiney","followers_url":"https://api.github.com/users/hguiney/followers","following_url":"https://api.github.com/users/hguiney/following{/other_user}","gists_url":"https://api.github.com/users/hguiney/gists{/gist_id}","starred_url":"https://api.github.com/users/hguiney/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hguiney/subscriptions","organizations_url":"https://api.github.com/users/hguiney/orgs","repos_url":"https://api.github.com/users/hguiney/repos","events_url":"https://api.github.com/users/hguiney/events{/privacy}","received_events_url":"https://api.github.com/users/hguiney/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Polymer/polymer/labels/css","name":"css","color":"fbca04"},{"url":"https://api.github.com/repos/Polymer/polymer/labels/needs%20documentation","name":"needs documentation","color":"d7e102"},{"url":"https://api.github.com/repos/Polymer/polymer/labels/wontfix","name":"wontfix","color":"ffffff"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-02-23T19:26:34Z","updated_at":"2016-02-25T22:42:28Z","closed_at":null,"body":"### Description\r\nWhen using Shady DOM, targeting elements with `:not([class])` in a `<template>`-scoped `<style>` block generates an oxymoron rule, e.g. `.my-widget:not([class])`, that can never match anything.\r\n\r\n#### Live Demo\r\nhttps://jsbin.com/turuder/7/edit?html,output\r\n\r\n#### Steps to Reproduce\r\n    <dom-module id=\"my-widget\">\r\n      <template>\r\n        <style>\r\n          :not([class]) {\r\n            color: purple;\r\n          }\r\n        </style>\r\n        <div class=\"my-widget\">\r\n          <p>Shadow paragraph, should be purple</p>\r\n          <p class=\"my-widget__paragraph\">Shadow paragraph, should be black</p>\r\n        </div><!--/.my-widget-->\r\n      </template>\r\n      <script>\r\n        HTMLImports.whenReady(function() {\r\n          Polymer({\r\n            is: 'my-widget'\r\n          });\r\n        });\r\n      </script>\r\n    </dom-module>\r\n\r\n    <my-widget></my-widget>\r\n\r\n#### Expected Results\r\nUnclassed shadow paragraph's text color should be purple.\r\n\r\n#### Actual Results\r\nUnclassed shadow paragraph's text color is black.\r\n\r\n### Browsers Affected\r\n<!-- Check all that apply -->\r\n- [x] Chrome \r\n- [ ] Chrome with `window.Polymer.dom = 'shadow';`\r\n- [x] Firefox\r\n\r\n### Versions\r\n<!--\r\n`Polymer.version` will show the version for Polymer\r\n`bower ls` or `npm ls` will show the version of webcomponents.js or webcomponents-lite.js\r\n-->\r\n- Polymer: v1.2.4\r\n- webcomponents: v0.7.21 \r\n"},"comment":{"url":"https://api.github.com/repos/Polymer/polymer/issues/comments/189016586","html_url":"https://github.com/Polymer/polymer/issues/3458#issuecomment-189016586","issue_url":"https://api.github.com/repos/Polymer/polymer/issues/3458","id":189016586,"user":{"login":"azakus","id":46725,"avatar_url":"https://avatars.githubusercontent.com/u/46725?v=3","gravatar_id":"","url":"https://api.github.com/users/azakus","html_url":"https://github.com/azakus","followers_url":"https://api.github.com/users/azakus/followers","following_url":"https://api.github.com/users/azakus/following{/other_user}","gists_url":"https://api.github.com/users/azakus/gists{/gist_id}","starred_url":"https://api.github.com/users/azakus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/azakus/subscriptions","organizations_url":"https://api.github.com/users/azakus/orgs","repos_url":"https://api.github.com/users/azakus/repos","events_url":"https://api.github.com/users/azakus/events{/privacy}","received_events_url":"https://api.github.com/users/azakus/received_events","type":"User","site_admin":false},"created_at":"2016-02-25T22:42:28Z","updated_at":"2016-02-25T22:42:28Z","body":"@arthurevans Should an issue be filed on the docs repo?"}}