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

Custom Element shim incorrectly handles @host rule #65

Closed
ebidel opened this issue Feb 9, 2013 · 1 comment
Closed

Custom Element shim incorrectly handles @host rule #65

ebidel opened this issue Feb 9, 2013 · 1 comment
Assignees
Labels

Comments

@ebidel
Copy link
Contributor

ebidel commented Feb 9, 2013

Originally from: https://github.com/toolkitchen/polyfills/issues/86


The shim treats @host as a pseduo element. Namely, the following example applies
a red border to the host, which changes to a blue one on hover:

<style>
@host {
 border: 1px solid red;
}
@host:hover {
   border: 1px solid blue;
}
<style>

But the @host at-rule is like a @media query. The example above should be written as:

<style>
@host {
  * {
   border: 1px solid red;
  }
  *:hover {
   border: 1px solid blue;
  }
}
<style>

The toolkit, shim, and examples use the first syntax everywhere. Is that intentional or am I out of whack here?

@ghost ghost assigned sorvell Feb 9, 2013
@frankiefu
Copy link
Member

Current spec @host syntax is now supported.

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