summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-pseudo/marker-content-020.html
blob: 5211506d8a17ce278407d2337d760b16f3fd34be (plain)
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
<!DOCTYPE html>
<html class="reftest-wait">
<meta charset="utf-8">
<title>CSS Test: ::marker pseudo elements styled with 'content' property</title>
<link rel="author" title="Oriol Brufau" href="mailto:obrufau@igalia.com">
<link rel="match" href="marker-content-020-ref.html">
<link rel="help" href="https://drafts.csswg.org/css-pseudo-4/#marker-pseudo">
<link rel="help" href="https://drafts.csswg.org/css-content/#content-property">
<meta name="assert" content="Checks that the ::marker is updated when 'content: none' is applied or unapplied dynamically.">
<style>
.no-marker ::marker {
  content: none;
}
.inside {
  list-style-position: inside;
}
.symbol {
  list-style-type: disc;
}
.decimal {
  list-style-type: decimal;
}
.string {
  list-style-type: "string";
}
.image {
  list-style-image: url("/images/green-100x50.png");
}
</style>
<div class="no-marker">
  <ol class="inside">
    <li class="symbol">inside symbol</li>
    <li class="decimal">inside decimal</li>
    <li class="string">inside string</li>
    <li class="image">inside image</li>
  </ol>
  <ol class="outside">
    <li class="symbol">outside symbol</li>
    <li class="decimal">outside decimal</li>
    <li class="string">outside string</li>
    <li class="image">outside image</li>
  </ol>
</div>
<div>
  <ol class="inside">
    <li class="symbol">inside symbol</li>
    <li class="decimal">inside decimal</li>
    <li class="string">inside string</li>
    <li class="image">inside image</li>
  </ol>
  <ol class="outside">
    <li class="symbol">outside symbol</li>
    <li class="decimal">outside decimal</li>
    <li class="string">outside string</li>
    <li class="image">outside image</li>
  </ol>
</div>
<script src="/common/reftest-wait.js"></script>
<script>
"use strict";
addEventListener("load", function() {
  requestAnimationFrame(() => {
    for (const div of document.querySelectorAll("div")) {
      div.classList.toggle("no-marker");
    }
    takeScreenshot();
  });
}, {once: true});
</script>
</html>