Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
<!DOCTYPE html>
<html class="reftest-wait">
<title>CSS Gap Decorations: changing rule-visibility-items from all to around after paint filters only grid-axis rules in grid lanes</title>
<link rel="author" title="Javier Contreras" href="mailto:javiercon@microsoft.com">
<link rel="match" href="column-gap-decorations-rule-visibility-items-around-002-ref.html">
<script src="/common/rendering-utils.js"></script>
<style>
body { margin: 0; }
.lanes {
display: grid-lanes;
grid-template-columns: repeat(3, 60px);
gap: 20px;
background: #cdd5e0;
width: max-content;
column-rule: 4px solid blue;
row-rule: 4px solid gold;
rule-break: none;
rule-visibility-items: all;
}
.lanes > div {
grid-column: 1;
background: #5b8def;
}
.first { height: 60px; }
.second { height: 40px; }
</style>
<div class="lanes" id="lanes">
<div class="first"></div>
<div class="second"></div>
</div>
<script>
waitForAtLeastOneFrame().then(() => {
document.getElementById("lanes").style.ruleVisibilityItems = "around";
document.documentElement.classList.remove("reftest-wait");
});
</script>