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

Type extension elements lose styling under polyfill #171

Closed
ebidel opened this issue Jun 5, 2013 · 2 comments
Closed

Type extension elements lose styling under polyfill #171

ebidel opened this issue Jun 5, 2013 · 2 comments
Assignees
Labels

Comments

@ebidel
Copy link
Contributor

ebidel commented Jun 5, 2013

The polyfill wraps scoped styles with the element name, but it doesn't do the same for type extension custom elements:

<element name="x-li" extends="li">
<template>
  <style>
    @host {
      * { list-style: none; display: block;}
    } 
    hgroup { color: red; }
  </style>
  <hgroup><content></content></hgroup>
</template>
<script>
  Polymer.register(this);
</script>
</element>

<li is="x-li">I should be red</x-li>

In Safari, the text is black. Chrome Canary, it's red.

http://jsbin.com/alecek/3/edit

cc @sorvell

@ghost ghost assigned sorvell Jun 5, 2013
@sorvell
Copy link
Contributor

sorvell commented Jun 5, 2013

Acknowledged. This is a bug.... on it.

@sorvell
Copy link
Contributor

sorvell commented Jun 13, 2013

Fixed by 63a1e0d

@sorvell sorvell closed this as completed Jun 13, 2013
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

2 participants