-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Conversation
|
||
``` | ||
my-element:not(:defined) { | ||
background-color: blue; | ||
} | ||
``` | ||
|
||
**`:defined` is not supported by the Custom Elements polyfill.** See the [documentation on styling](style-shadow-dom#style-undefined-elements) for a workaround. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This link doesn't seem to exist anymore?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I put it back in d9d4ff6
// Create a class that extends HTMLElement (directly or indirectly) | ||
class MyElement extends HTMLElement { … }; | ||
```js | ||
import {PolymerElement} from '@polymer/polymer/polymer-element.js`; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
backtick should be single quote
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed, ty.
``` | ||
```js | ||
// Import PolymerElement class | ||
import {PolymerElement} from '@polymer/polymer/polymer-element.js`; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
backtick should be single quote
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am a little confused by what a legacy element is - do we have a definition of that?
No description provided.