-
Notifications
You must be signed in to change notification settings - Fork 0
/
host.html
43 lines (43 loc) · 975 Bytes
/
host.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<!doctype html>
<html>
<head>
<link href="../components/polymer/polymer.html" rel="import">
<script src="../components/platform/platform.js"></script>
</head>
<body>
<polymer-element name="x-post" noscript>
<template>
<style>
:host {
display: block;
}
:host(.bar) {
color: blue;
}
:host(.baz:host) {
color: red;
}
:host(.zot:not(.bar)) {
color: orange;
}
</style>
<content></content>
</template>
</polymer-element>
<x-post>Hi!</x-post>
<div class="bar">
<x-post>I should be blue</x-post>
</div>
<x-post class="bar">I should also be blue</x-post>
<x-post class="baz">I should be red</x-post>
<div class="baz">
<x-post>I should not be red</x-post>
</div>
<div class="zot">
<x-post>I should be orange</x-post>
</div>
<div class="zot bar">
<x-post>I should not be orange</x-post>
</div>
</body>
</html>