Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

  • This WPT test may be referenced by the following Test IDs:
<!DOCTYPE html>
<meta charset="utf-8">
<title>Fieldset anonymous content box inherits rule-overlap</title>
<link rel="match" href="fieldset-content-box-rule-overlap-ref.html">
<meta name="assert" content="rule-overlap set on a fieldset should be inherited by the anonymous fieldset content box.">
<style>
fieldset {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 20px;
column-rule: 20px solid green;
row-rule: 20px solid blue;
rule-overlap: column-over-row;
width: 200px;
margin: 0;
border: none;
padding: 0;
}
.item {
height: 50px;
background: silver;
}
</style>
<p>There should be a 2-column grid with green column rules overlapping blue row rules below.</p>
<fieldset>
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
</fieldset>