-
Notifications
You must be signed in to change notification settings - Fork 53
inherit
within @apply
definitions gets overriden by User-Agent styles
#91
Comments
@azakus, this is a major bug for me, especially considering 1.0.0 being just released. |
@sorvell, can you as the author of the first commit introducing Lines 321 to 326 in b971067
Native |
Related to Polymer/polymer#4282, originated from Polymer/polymer#3824 and sadly Dropping the lines linked above fixes the issue, but I'm not sure it doesn't break anything. |
Ping here, almost 3 months my fonts are broken because of this |
`apply-shim` hacked to fix fonts (not necessarily correct, just a workaround for webcomponents/shadycss#91
inherit
withing @apply
definitions gets overriden by User-Agent stylesinherit
within @apply
definitions gets overriden by User-Agent styles
@sorvell , can you take a look at this any time soon? |
This looks like the same issue as http://crbug.com/888965 |
@nazar-pc I apologize for the delay on handling this issue. The deprecation of |
Description
inherit
within@apply
definitions gets overriden by User-Agent styles, which didn't happen in Polymer 1.x with full WebComponents v0 polyfill (and without it in Chromium), but now happens in Polymer 2.0 and WebCmponents v1 lite.Live Demo
https://jsbin.com/guwinowudo/edit?html,output
Steps to Reproduce
@apply
definition withfont-family
set toinherit
font-family
forbody
@apply
rule in element in::slotted(button)
Expected Results
inherit
effectively appliesbody
'sfont-family
Actual Results
User-Agent's
font-family
has higher specificity, actualfont-family
is shown asapply-shim-inherit
in Dev Tools in both tested browsers.Browsers Affected
Only tested in these:
Versions
Polymer: 2.0-preview
The text was updated successfully, but these errors were encountered: