Description
Can't overwrite default font (Roboto) using custom property mixin when any paper font mixins are referenced ie: @apply(--paper-font-sunhead); as it looks like nested CSS variables get confused.
Live example:
https://codepen.io/rhysyg03/pen/YxgYQp?editors=1100
When a CSS variable is nested, in this example:
- font-family: var(--paper-font-subhead_-_font-family)
- refers back to
- font-family: var(--paper-font-common-base_-_font-family)
--paper-font-subhead_-_font-family variable refers back to variable in the same declaration (html) even if it’s been overwritten (.my-class).
Expected outcome
The NEW --paper-font-common-base_-_font-family mixin would overwrite default variable.
Actual outcome
The NEW --paper-font-common-base_-_font-family mixin DOES NOT get overwritten.
Steps to reproduce
- add @apply(--paper-font-body1) to a Polymer element
- override the @apply --paper-font-common-base mixin with custom font from the document level
Browsers Affected