-
Notifications
You must be signed in to change notification settings - Fork 3.3k
/
Copy pathcolumn-scroll-marker-011.html
42 lines (42 loc) · 1.11 KB
/
column-scroll-marker-011.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
<!DOCTYPE html>
<html class="reftest-wait">
<title>multicol ::column::scroll-marker, add more columns</title>
<link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org">
<link rel="help" href="https://drafts.csswg.org/css-overflow-5/#scroll-marker-group-pseudo">
<link rel="match" href="../reference/ref-filled-green-100px-square.xht">
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<style>
#container {
overflow: hidden;
columns: 3;
column-fill: auto;
gap: 0;
height: 100px;
scroll-marker-group: before;
}
#container::scroll-marker-group {
overflow: auto;
display: flex;
width: 100px;
height: 100px;
background: red;
}
#container::column::scroll-marker {
width: 25px;
height: 100px;
flex: none;
content: "";
background: green;
}
</style>
<div id="container">
<div style="height:100px;"></div>
</div>
<script>
requestAnimationFrame(()=> {
requestAnimationFrame(()=> {
document.documentElement.classList.remove("reftest-wait");
container.style.height = "25px";
});
});
</script>