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
42 lines
674 B
HTML
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>
|