blob: d118dda4a2bbf6e766ab46d60d6717ab383f40d1 [file] [log] [blame]
<!doctype html>
<meta charset="utf-8">
<title>Identifier normalization tests</title>
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#normalize-ident">
<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>