mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-26 11:45:37 +00:00
cd5719b6d9
Per spec, "Note: Column boxes do not become the containing block for elements with position: fixed or position: absolute. The containing block is the multicol container, it being the principal box." https://drafts.csswg.org/css-multicol-1/#the-multi-column-model contentFrame and contentFrameTop are different only if fieldset has multicol layout. In that case, contentFrameTop is nsColumnSetFrame (or ColumnSetWrapperFrame after applying Part 2 with layout.css.column-span.enabled=true). Differential Revision: https://phabricator.services.mozilla.com/D23617 --HG-- extra : moz-landing-system : lando
26 lines
535 B
HTML
26 lines
535 B
HTML
<!DOCTYPE HTML>
|
|
<html>
|
|
<style>
|
|
div {
|
|
position: absolute;
|
|
width: 10px;
|
|
height: 10px;
|
|
top: 0;
|
|
background: blue;
|
|
}
|
|
fieldset {
|
|
width: 300px;
|
|
height: 200px;
|
|
border: 1px solid;
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
</style>
|
|
<fieldset style="columns: 1;">
|
|
<!-- The position of <div>s should remain the same regardless of
|
|
the multicol style on fieldset. -->
|
|
<legend>Legend<div style="left: 0px;"></div></legend>
|
|
<div style="left: 10px;"></div>
|
|
</fieldset>
|
|
</html>
|