Files
sousa-gecko/testing/web-platform/tests/css/css-multicol/parsing/column-rule-computed.html
T
Sam Davis Omekara Jr. d3fa0bf2e3 Bug 1988847 [wpt PR 54881] - [Gap Decorations]: Disentangle resolved -width values from -style, a=testonly
Automatic update from web-platform-tests
[Gap Decorations]: Disentangle resolved -width values from -style

This CL decouples the resolved value of outline-width and
column-rule-width from their corresponding *-style properties. The
second part of the CSSWG resolution[1], stipulates that the resolved
value for these properties should now be independent of the *-style.

Most file changes in this CL involve updating tests to reflect this new
behavior. To simplify reverting in the case of a web compat issue, a
virtual test suite with the flag disabled and relevant tests as base has
been set up.

A subsequent CL will be put up to set up use counters to evaluate
potential web compat risks associated with this change

[1]:
https://github.com/w3c/csswg-drafts/issues/11494#issuecomment-2675800489

Bug: 393631108
Change-Id: I241d253b14493f45dc6b143286bfa031261fac27
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6909751
Reviewed-by: Kevin Babbitt <kbabbitt@microsoft.com>
Commit-Queue: Sam Davis Omekara <samomekarajr@microsoft.com>
Reviewed-by: Alison Maher <almaher@microsoft.com>
Reviewed-by: Philip Rogers <pdr@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1516261}

--

wpt-commits: 7f15bbaf0b6d43a99ba964e42649bc3878e9b819
wpt-pr: 54881
2025-09-22 10:52:46 +00:00

38 lines
1.4 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Multi-column Layout: getComputedStyle().columnRule</title>
<link rel="help" href="https://drafts.csswg.org/css-multicol/#propdef-column-rule">
<meta name="assert" content="column-rule computed value is as specified.">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/css/support/computed-testcommon.js"></script>
<style>
#reference {
column-rule-style: dotted; /* Avoid column-rule-width computed style 0px */
column-rule-width: medium;
}
#target {
color: lime;
}
</style>
</head>
<body>
<div id="reference"></div>
<div id="target"></div>
<script>
const currentColor = 'rgb(0, 255, 0)';
const mediumWidth = getComputedStyle(document.getElementById('reference')).columnRuleWidth; // e.g. 3px
test_computed_value("column-rule", "10px", "10px " + currentColor);
test_computed_value("column-rule", "dotted", mediumWidth + " dotted " + currentColor);
test_computed_value("column-rule", "0px none rgb(255, 0, 255)", "0px rgb(255, 0, 255)");
test_computed_value("column-rule", "10px dotted rgb(255, 0, 255)");
test_computed_value("column-rule", "medium hidden currentcolor", mediumWidth + " hidden " + currentColor);
test_computed_value("column-rule", "medium solid currentcolor", mediumWidth + " solid " + currentColor);
</script>
</body>
</html>