wpt / css / css-typed-om / stylevalue-subclasses / cssKeywordValue.html

Status: FAIL | Duration: 49ms | Subtests: 0/5 | Open test on wpt.live | wpt.fyi

Data from commit:
a50cb89 wpt: run reference-named files which are themselves tests (#836) (2026-09-03)

SubtestStatusMessage
CSSKeywordValue can be constructed from a CSS wide keywordFAILCSSKeywordValue is not defined
CSSKeywordValue can be constructed from a CSS keywordFAILCSSKeywordValue is not defined
CSSKeywordValue can be constructed from an unsupported CSS keywordFAILCSSKeywordValue is not defined
CSSKeywordValue can be constructed from a string containing multiple tokensFAILCSSKeywordValue is not defined
CSSKeywordValue can be constructed from a unicode stringFAILCSSKeywordValue is not defined

/css/css-typed-om/stylevalue-subclasses/cssKeywordValue.html

<!doctype html>
<meta charset="utf-8">
<title>CSSKeywordValue Constructor</title>
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-csskeywordvalue-csskeywordvalue">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<body>
<div id="log"></div>
<script>
'use strict';

const gTestArguments = [
  { keyword: 'initial', description: 'a CSS wide keyword' },
  { keyword: 'auto', description: 'a CSS keyword' },
  { keyword: 'lemon', description: 'an unsupported CSS keyword' },
  { keyword: '3! + 4@', description: 'a string containing multiple tokens' },
  { keyword: '☺', description: 'a unicode string' },
];

for (const args of gTestArguments) {
  test(() => {
    const result = new CSSKeywordValue(args.keyword);
    assert_not_equals(result, null, 'a CSSKeywordValue is created');
    assert_equals(result.value, args.keyword,
                  'value is same as given by constructor');
  }, `CSSKeywordValue can be constructed from ${args.description}`);
}

</script>