blob: e914b41b0e43a1e471af458c94c13690c4559c33 (
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
|
<!doctype html>
<title>css-counter-styles IDL tests</title>
<link rel="help" href="https://drafts.csswg.org/css-counter-styles/">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/resources/WebIDLParser.js"></script>
<script src="/resources/idlharness.js"></script>
<style>
@counter-style triangle {
system: cyclic;
symbols: ‣;
suffix: " ";
}
</style>
<script>
'use strict';
idl_test(
['css-counter-styles'],
['cssom'],
idl_array => {
try {
self.counter = document.styleSheets[0].rules[0];
} catch (e) {
// Will be surfaced when counter is undefined below.
}
idl_array.add_objects({
CSSCounterStyleRule: ['counter'],
});
}
);
</script>
|