Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[0.9] Can't override the css property if the property is already set on the host via custom property #1525

Closed
frankiefu opened this issue May 13, 2015 · 2 comments
Assignees

Comments

@frankiefu
Copy link
Member

x-toolbar.html

<style is="custom-style">
  :root {
    --toolbar-color: blue;
  }
</style>

<dom-module id="x-toolbar">
  <style>
    :host {
      display: block;
      height: 64px;
      background: var(--toolbar-color);
    }
  </style>

  <template>
    <content></content>
  </template>

  <script>
    Polymer({
      is: 'x-toolbar'
    });
  </script>

</dom-module>

app.html

<style>
  x-toolbar {
    background: red;
  }
</style>

<x-toolbar></x-toolbar>

This should make x-toolbar have "red" background but instead it displays as "blue". Also noticed if shadow dom is on (dom=shadow) then the correct color ("blue") is shown.

@sorvell
Copy link
Contributor

sorvell commented May 14, 2015

Maybe related #1277

@sorvell
Copy link
Contributor

sorvell commented May 21, 2015

Fixed via 041b732

@sorvell sorvell closed this as completed May 21, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants