Files
sousa-gecko/testing/web-platform/tests/css/css-multicol/multicol-nested-033-ref.html
T
Ting-Yu Lin 24952a4927 Bug 2011944 - Use available inline-size to resolve percentage column-gap in multicol. r=layout-reviewers,emilio
Similar to previous patch, percentage column-gap should be resolved against
`availableContentISize`, which is the content-box inline-size of
`ColumnSetWrapperFrame`.

Quote the spec text https://drafts.csswg.org/css-align/#gap-percent,

```
gap always resolves percentages against the corresponding size of the content
box of the element.
```

Differential Revision: https://phabricator.services.mozilla.com/D280192
2026-01-26 21:48:37 +00:00

42 lines
674 B
HTML

<!DOCTYPE html>
<link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com">
<link rel="author" title="Mozilla" href="https://www.mozilla.org/">
<style>
.multicol {
column-count: 2;
column-fill: auto;
column-gap: 0;
}
#outer {
width: 100px;
height: 100px;
}
#nested {
width: 100%;
height: 200px;
column-gap: 15px;
}
#abscb {
position: relative;
width: 100%;
height: 50px;
}
#abspos {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 400px;
background: green;
}
</style>
<div id="outer" class="multicol">
<div id="nested" class="multicol">
<div id="abscb">
<div id="abspos"></div>
</div>
</div>
</div>