Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-variables/var-parsing.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<title>CSS Custom Properties: var() parsing</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/css/support/parsing-testcommon.js"></script>
<div id="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>