Skip to content

[css-position] What is the behavior of an absolutely-positioned <br>? #5749

@smfr

Description

@smfr

https://drafts.csswg.org/css-position/#position-property is clear that position applies to the <br> element, and that "the box is taken out of flow such that it has no impact on the size or position of its siblings and ancestors, and does not participate in its parent’s formatting context." It also say "A position value of absolute or fixed blockifies the box and causes float to compute to none."

This implies that the <br> should not trigger a line break here:

text
<br style="position: absolute;">
here

However, WebKit and Blink both trigger a line break. Gecko does not.

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