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

Shady DOM doesn't correctly parse custom property rules. #1389

Closed
philipwalton opened this issue Apr 9, 2015 · 0 comments
Closed

Shady DOM doesn't correctly parse custom property rules. #1389

philipwalton opened this issue Apr 9, 2015 · 0 comments
Assignees
Labels

Comments

@philipwalton
Copy link

Consider the following element:

<dom-module id="my-element">
  <style>
    :host {
      x--color: red;
    }
    p {
      color: var(--color);
    }
  </style>
  <template>
    <div>
      <p>Some paragraph text...</p>
    </div>
  </template>
</dom-module>

<script>
  Polymer({
    is: "my-element",

    // The custom properties shim is currently an opt-in feature
    enableCustomStyleProperties: true
  });
</script>

<my-element></my-element>

The text should not be red because x--color: red is not a valid property/value combination, but in Chrome it is red.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants