{"action":"created","issue":{"url":"https://api.github.com/repos/Polymer/polymer/issues/1349","labels_url":"https://api.github.com/repos/Polymer/polymer/issues/1349/labels{/name}","comments_url":"https://api.github.com/repos/Polymer/polymer/issues/1349/comments","events_url":"https://api.github.com/repos/Polymer/polymer/issues/1349/events","html_url":"https://github.com/Polymer/polymer/issues/1349","id":65263094,"number":1349,"title":"[0.8] `<link rel=\"import\" type=\"css\">` styles are shimmed out of order","user":{"login":"cdata","id":240083,"avatar_url":"https://avatars.githubusercontent.com/u/240083?v=3","gravatar_id":"","url":"https://api.github.com/users/cdata","html_url":"https://github.com/cdata","followers_url":"https://api.github.com/users/cdata/followers","following_url":"https://api.github.com/users/cdata/following{/other_user}","gists_url":"https://api.github.com/users/cdata/gists{/gist_id}","starred_url":"https://api.github.com/users/cdata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cdata/subscriptions","organizations_url":"https://api.github.com/users/cdata/orgs","repos_url":"https://api.github.com/users/cdata/repos","events_url":"https://api.github.com/users/cdata/events{/privacy}","received_events_url":"https://api.github.com/users/cdata/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Polymer/polymer/labels/0.8","name":"0.8","color":"00aa44"}],"state":"closed","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-03-30T17:38:28Z","updated_at":"2015-05-05T14:13:45Z","closed_at":"2015-05-05T14:13:45Z","body":"Considering the following contrived custom element:\r\n\r\n```html\r\n<dom-module id=\"x-example\">\r\n<style>\r\n  :host {\r\n    color: red;\r\n  }\r\n</style>\r\n<link rel=\"import\" type=\"css\" href=\"./external-styles.css\">\r\n<style>\r\n  :host {\r\n    color: red;\r\n  }\r\n</style>\r\n<template> <!-- ... --> </template>\r\n</dom-module>\r\n<script> Polymer({ is: 'x-example' }); </script>\r\n```\r\n\r\n```css\r\n/* external-styles.css */\r\n:host {\r\n  color: black;\r\n}\r\n```\r\n\r\nThe following shimmed stylesheet is generated:\r\n\r\n```html\r\n<style scope=\"x-example\">\r\nx-example {\r\n  color: red;\r\n}\r\n\r\nx-example {\r\n  color: red;\r\n}\r\n\r\nx-example {\r\n  color: black;\r\n}\r\n</style>\r\n```\r\n\r\nThis results in an unexpected condition where the external stylesheet will always take precedence over the inline stylesheets. The expected outcome - for many who have used stylesheets in more traditional workflows - is for the stylesheets to be applied in the order they appear in the document, regardless of whether they are inline or externally referenced."},"comment":{"url":"https://api.github.com/repos/Polymer/polymer/issues/comments/99090533","html_url":"https://github.com/Polymer/polymer/issues/1349#issuecomment-99090533","issue_url":"https://api.github.com/repos/Polymer/polymer/issues/1349","id":99090533,"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-05-05T14:13:45Z","updated_at":"2015-05-05T14:13:45Z","body":"Fixed via https://github.com/Polymer/polymer/commit/dbfe8f8b917858f3684dfbff6993d1333aa2061f."}}