Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Warnings
- This test has a WPT meta file that expects 2 subtest issues.
- This WPT test may be referenced by the following Test IDs:
- /css/css-typed-om/stylevalue-normalization/normalize-ident.tentative.html - WPT Dashboard Interop Dashboard
<!doctype html>
<meta charset="utf-8">
<title>Identifier normalization tests</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="../resources/testhelper.js"></script>
<body>
<script>
'use strict';
test(() => {
assert_style_value_equals(CSSStyleValue.parse('width', 'auto'),
new CSSKeywordValue('auto'));
}, 'CSS identifiers are normalized from String to CSSKeywordValues');
test(t => {
assert_style_value_equals(
createDivWithStyle(t, 'width: auto').attributeStyleMap.get('width'),
new CSSKeywordValue('auto'));
}, 'CSS identifiers are normalized from CSSOM to CSSKeywordValues');
</script>