wpt / css / css-gaps / parsing / rule-overlap-invalid.html

Status: PASS | Duration: 34ms | Subtests: 5/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
e.style['rule-overlap'] = "auto" should not set the property valuePASS
e.style['rule-overlap'] = "true" should not set the property valuePASS
e.style['rule-overlap'] = "none" should not set the property valuePASS
e.style['rule-overlap'] = "10px" should not set the property valuePASS
e.style['rule-overlap'] = "10%" should not set the property valuePASS

/css/css-gaps/parsing/rule-overlap-invalid.html

<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>CSS Gaps: parsing rule-overlap with invalid values</title>
  <link rel="author" title="Javier Contreras Tenorio" href="mailto:javiercon@microsoft.com">
  <link rel="help" href="https://drafts.csswg.org/css-gaps-1/#overlap">
  <script src="/resources/testharness.js"></script>
  <script src="/resources/testharnessreport.js"></script>
  <script src="/css/support/parsing-testcommon.js"></script>
</head>
<body>
  <div id="target"></div>
  <script>
    test_invalid_value('rule-overlap', 'auto');
    test_invalid_value('rule-overlap', 'true');
    test_invalid_value('rule-overlap', 'none');
    test_invalid_value('rule-overlap', '10px');
    test_invalid_value('rule-overlap', '10%');
  </script>
</body>
</html>