Open
Description
https://drafts.csswg.org/css-sizing-3/#min-percentage-contribution
For the min size properties, as well as for margins and paddings (and gutters), a cyclic percentage is resolved against zero for determining intrinsic size contributions.
That's a lie, nobody does this for the min size properties, and WebKit doesn't do it either for margins.
Instead, the entire value is treated as the initial value, just like for preferred and max size properties.
<!DOCTYPE html>
<div style="width: 0">
<div style="display: inline-block; border: 5px solid cyan">
<div style="min-width: calc(50px + 0%)"></div>
</div>
<div style="display: inline-block; border: 5px solid magenta">
<div style="padding-left: calc(50px + 0%)"></div>
</div>
<div style="display: inline-block; border: 5px solid orange">
<div style="margin-left: calc(50px + 0%)"></div>
</div>
</div>
Spec & Servo | Gecko | Blink | WebKit |
---|---|---|---|
![]() |
![]() |
![]() |
![]() |
Agenda+ to reflect reality (or change the implementations?).
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Friday morning