-
Notifications
You must be signed in to change notification settings - Fork 0
/
question-four.html
71 lines (66 loc) · 2.08 KB
/
question-four.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<!DOCTYPE html>
<html lang="en">
<head>
<title>
Question Four - The Quirks of Shadow DOM and How to Take Advantage of Them
</title>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="./common-styles.css" />
<script src="./questions/question-four.js" type="module"></script>
</head>
<body>
<header>
<nav>
<a href="./">Home</a>
<a href="./question-one.html">Q1</a>
<a href="./question-two.html">Q2</a>
<a href="./question-three.html">Q3</a>
<a href="./question-four.html" class="active">Q4</a>
<a href="./question-five.html">Q5</a>
</nav>
</header>
<main>
<h1>The Quirks of Shadow DOM and How to Take Advantage of Them</h1>
<h2>
Question Four - Styling Slots
</h2>
<style>
.some-class .header {
color: red;
}
.some-class div {
color: mediumvioletred;
}
</style>
<question-four>
<div>1</div>
<div class="special">2</div>
<div>3</div>
</question-four>
<question-four class="some-class">
<div>4</div>
<div class="special">5</div>
<div>6</div>
<span class="header" slot="header">
Second Element Header
</span>
</question-four>
</main>
<footer>
<section>
<h2>
Articles:
</h2>
<ul>
<li><a hreflang="en" target="_blank" rel="noopener noreferrer" href="https://dev.to/alangdm/the-quirks-of-shadow-dom-and-how-to-take-advantage-of-them-4cd1">English Article</a></li>
<li><a hreflang="ja" target="_blank" rel="noopener noreferrer" href="https://qiita.com/alangdm/items/cec32f21151a9da3c3f2" lang="ja">日本語記事</a></li>
</ul>
<p>
<a hreflang="en" target="_blank" rel="noopener noreferrer" href="https://github.com/alangdm/shadow-dom-quiz">Github</a>
</p>
</section>
</footer>
</body>
</html>