W3C home > Mailing lists > Public > public-css-archive@w3.org > November 2020

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

From: Simon Fraser via GitHub <sysbot+gh@w3.org>
Date: Sun, 29 Nov 2020 19:08:34 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-752984506-1606676913-sysbot+gh@w3.org>
smfr has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-position] What is the behavior of an absolutely-positioned <br>? ==
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:
<br style="position: absolute;">

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

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5749 using your GitHub account

Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Sunday, 29 November 2020 19:08:36 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:42:22 UTC