-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.html
64 lines (50 loc) · 1.66 KB
/
test.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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Test</title>
<style>
my-element {
width: 50vw;
height: 30vh;
border: 4px solid green;
}
p {
border: 4px solid red;
width: 75vw;
}
/* Both work */
/* ::-webkit-scrollbar {
block-size: 1rem;
}
::-webkit-scrollbar-track {
background-color: black
}
::-webkit-scrollbar-thumb {
background-color: red;
} */
my-element::-webkit-scrollbar {
block-size: 1rem;
}
my-element::-webkit-scrollbar-track {
background-color: black
}
my-element::-webkit-scrollbar-thumb {
background-color: red;
}
</style>
</head>
<body>
<script>
// console.log('style', document.getElementsByTagName('style')[0])
</script>
<p class="foo">
Lorem ipsum dolor sit amet consectetur adipisicing elit. Totam iste esse eum molestias dolore fuga cupiditate! Ducimus est omnis ipsum aperiam, esse beatae dolorum repudiandae veritatis delectus labore dignissimos ratione!
</p>
<p class="bar">
Lorem ipsum dolor sit amet consectetur adipisicing elit. Totam iste esse eum molestias dolore fuga cupiditate! Ducimus est omnis ipsum aperiam, esse beatae dolorum repudiandae veritatis delectus labore dignissimos ratione!
<br>
<br>
Lorem ipsum dolor sit amet consectetur adipisicing elit. Officia quis obcaecati fuga nam quae ad dicta numquam ab omnis. Unde ab minima sit vel ipsum doloribus commodi doloremque, aut id.
</p>
</body>
</html>