You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Setting Polymer elements CSS properties using CSS variables does not allow more specific CSS selectors to override the property unless they also are CSS variables.
The following code will result in all div elements being --red-color even when they have class='green'
<dom-module id='x-test'>
<style>
div {
color: var(--red-color);
}
div.green {
color: green;
}
</style>
<template>
<div class='green'>Green text is red</div>
</template>
</dom-module>
Setting Polymer elements CSS properties using CSS variables does not allow more specific CSS selectors to override the property unless they also are CSS variables.
The following code will result in all div elements being
--red-color
even when they haveclass='green'
Full example of issue: http://jsbin.com/xopovovema/edit?html,output
The text was updated successfully, but these errors were encountered: