Skip to content

[css-page-floats] Absolutely positioned? #243

@bradkemper

Description

@bradkemper

https://drafts.csswg.org/css-page-floats/#relation_to_absolutely_positioned_exclusions implies that page floats are absolutely positioned, with the actual position determined by the spec logic. The subsections are about how "absolutely positioned exclusions" are different from inline floats. So are these actual absolutely positioned exclusions (with automatic locations based on values defined in this spec)? Or are they just similar to "absolutely positioned" items, and if so, how similar? For instance, do they create a containing block for their positioned descendants? Are margins not collapsed? Are 'auto' margins changed to 0? Are 'auto' widths shrink-wrapped? Do most 'display-outside: inline' things become block? Put another way, is the computed value of 'position', 'absolute'?

IMO, the answer to all these should be "yes". The spec kind of implies it, but the closest it comes to actually saying so is "Floats that are not inline floats should behave the same as absolutely positioned exclusions." Related question: what if 'left', 'right', 'top', and/or 'bottom' are not 'auto' for the page-floated item? What wins?

Note that setting position:absolute normally overrides floats, but these aren't really floats, they're absolutely positioned exclusions with actual positions determined another way. Another reason why the 'float' property should not be overloaded to include this completely separate model of wrapping.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions