Bug 219335 - [LFC] <br style="position:absolute"> shows up in line runs despite being out-of-flow
Summary: [LFC] <br style="position:absolute"> shows up in line runs despite being out-...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: Safari Technology Preview
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2020-11-29 11:18 PST by Simon Fraser (smfr)
Modified: 2020-12-06 11:19 PST (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Simon Fraser (smfr) 2020-11-29 11:18:18 PST
For this content:

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

the layout tree is:

Initial containing block at (0,0) size 1101x1105 (0x237965980)
  HTML at (0,0) size 1101x1105 (0x237965a70)
    BODY at (8,8) size 1085x1089 (0x237965b40)
-------- --      line at (0.00,0.00) size (23.99x18.00) baseline (14.00)
-------- --        Inline level boxes:
-------- --          Root inline box at (0.00,0.00) size (23.99x18.00) baseline (14.00) ascent (14.00/14.00) descent (4.00/4.00)
-------- --          Line break box at (23.99,0.00) size (0.00x18.00) baseline (14.00) ascent (14.00/14.00) descent (4.00/4.00)
-------- --        Runs:
-------- --          text run at (0.00,0.00) size 23.99x18.00 run(0, 4)
-------- --          box run at (23.99,0.00) size 0.00x18.00
-------- --      line at (0.00,18.00) size (27.53x18.00) baseline (14.00)
-------- --        Inline level boxes:
-------- --          Root inline box at (0.00,0.00) size (27.53x18.00) baseline (14.00) ascent (14.00/14.00) descent (4.00/4.00)
-------- --        Runs:
-------- --          text run at (0.00,0.00) size 27.53x18.00 run(1, 5)
      anonymous inline box (0x23a490640) length->(5) "text\n"
      line break at (23.98,0) size 0x18 (0x236779130)
      anonymous inline box (0x23a4907d0) length->(5) "\nhere"

so the abs-pos <br> is in the line runs as "box run at (23.99,0.00)" despite being positioned.
Comment 1 Simon Fraser (smfr) 2020-11-29 11:18:43 PST
See also https://github.com/w3c/csswg-drafts/issues/5749
Comment 2 Radar WebKit Bug Importer 2020-12-06 11:19:35 PST
<rdar://problem/72025085>