- Notifications
You must be signed in to change notification settings - Fork 3.3k
/
Copy pathvar-parsing.html
21 lines (17 loc) · 686 Bytes
/
var-parsing.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<!DOCTYPE html>
<title>CSS Custom Properties: var() parsing</title>
<linkrel="help" href="https://drafts.csswg.org/css-variables">
<scriptsrc="/resources/testharness.js"></script>
<scriptsrc="/resources/testharnessreport.js"></script>
<scriptsrc="/css/support/parsing-testcommon.js"></script>
<divid="target"></div>
<script>
test_valid_value('width','var(--x)');
test_valid_value('width','var(--x,)');
test_valid_value('width','var(--x, )');
test_invalid_value('width','var(--x ())');
test_invalid_value('width','var(--x () )');
test_invalid_value('width','var(--x() )');
test_invalid_value('width','var(--x (),)');
test_invalid_value('width','var(--x(),)');
</script>