wpt / css / css-contain / parsing / contain-valid.html

Status: FAIL | Duration: 61ms | Subtests: 12/13 | 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
e.style['contain'] = "none" should set the property valuePASS
e.style['contain'] = "strict" should set the property valuePASS
e.style['contain'] = "content" should set the property valuePASS
e.style['contain'] = "size" should set the property valuePASS
e.style['contain'] = "layout" should set the property valuePASS
e.style['contain'] = "style" should set the property valuePASS
e.style['contain'] = "paint" should set the property valuePASS
e.style['contain'] = "layout size" should set the property valuePASS
e.style['contain'] = "paint style" should set the property valuePASS
e.style['contain'] = "layout style paint" should set the property valuePASS
e.style['contain'] = "layout paint style size" should set the property valuePASS
e.style['contain'] = "inline-size" should set the property valuePASS
e.style['contain'] = "layout inline-size" should set the property valueFAILassert_equals: serialization should be canonical expected "inline-size layout" but got "layout inline-size"

/css/css-contain/parsing/contain-valid.html

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Containment Module Level 3: parsing contain with valid values</title>
<link rel="help" href="https://drafts.csswg.org/css-contain-3/#contain-property">
<meta name="assert" content="contain supports the full grammar 'none | strict | content | [ [ size | inline-size ] || layout || style || paint ]'.">
<meta name="assert" content="contain serializes in canonical order.">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/css/support/parsing-testcommon.js"></script>
</head>
<body>
<script>
test_valid_value("contain", "none");
test_valid_value("contain", "strict");
test_valid_value("contain", "content");

// [ [ size | inline-size ] || layout || style || paint ]
test_valid_value("contain", "size");
test_valid_value("contain", "layout");
test_valid_value("contain", "style");
test_valid_value("contain", "paint");
test_valid_value("contain", "layout size", "size layout");
test_valid_value("contain", "paint style", "style paint");
test_valid_value("contain", "layout style paint");
test_valid_value("contain", "layout paint style size", "size layout style paint");
test_valid_value("contain", "inline-size");
test_valid_value("contain", "layout inline-size", "inline-size layout");
</script>
</body>
</html>