Source code

Revision control

Copy as Markdown

Other Tools

Test Info: Warnings

<!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>