Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-gaps/agnostic/gap-decorations-004.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<html class="reftest-wait">
<head>
<title>column-rule-color declared with repeaters doesn't crash when recomputing</title>
<link rel="match" href="gap-decorations-003-ref.html">
<link rel="author" href="mailto:javiercon@microsoft.com">
</head>
<style>
body {
margin: 0px;
}
#current {
color: firebrick;
columns: 6;
column-gap: 2px;
column-rule-style: solid;
column-rule-width: 2px;
column-fill: auto;
height: 20px;
column-rule-color: gold;
width: 72px;
height: 20px;
}
.items {
background-color: lightgreen;
height: 20px
}
</style>
<body>
<div id="current">
<div class="items"></div>
<div class="items"></div>
<div class="items"></div>
<div class="items"></div>
<div class="items"></div>
<div class="items"></div>
</div>
</body>
<script>
// Use double requestAnimationFrame to remove need of setTimeout.
// Wait for the first frame to ensure that the style is computed.
requestAnimationFrame(() => {
// Wait for the second frame to ensure that the style is painted.
requestAnimationFrame(() => {
document.getElementById("current").style.columnRuleColor = "hotpink";
document.documentElement.classList.remove("reftest-wait");
});
});
</script>
</html>