RESOLVED CONFIGURATION CHANGED115820
When a child becomes floated or out-of-flow it should find an anonymous wrapper if necessary
https://bugs.webkit.org/show_bug.cgi?id=115820
Summary When a child becomes floated or out-of-flow it should find an anonymous wrapp...
Robert Hogan
Reported 2013-05-08 12:29:05 PDT
Created attachment 201096 [details] Reduction When a child becomes floated or out-of-flow it should check if its previous sibling is an anonymous block - if so, it should move in under the anonymous block.
Attachments
Reduction (742 bytes, text/html)
2013-05-08 12:29 PDT, Robert Hogan
no flags
STP165 matches Chrome Canary 113 but differs Firefox Nightly 113 (355.40 KB, image/png)
2023-03-18 06:29 PDT, Ahmad Saleem
no flags
Robert Hogan
Comment 1 2013-05-18 03:24:00 PDT
I definitely need advice on how to go about doing this - anonymous blocks are too complicated for trial and error. If the render tree is like this: RenderBlock (anonymous) at (0,73) size 320x19 RenderInline {SPAN} at (0,0) size 40x19 RenderInline {SPAN} at (0,0) size 40x19 [bgcolor=#FF0000] RenderBlock (anonymous) at (0,92) size 320x40 RenderBlock {DIV} at (0,0) size 160x40 [bgcolor=#008000] RenderText {#text} at (0,10) size 4x19 text run at (0,10) width 4: " " RenderBlock (anonymous) at (0,132) size 320x0 RenderInline {SPAN} at (0,0) size 0x0 RenderBlock (anonymous) at (0,132) size 320x0 RenderBlock {DIV} at (0,0) size 320x0 RenderBlock (anonymous) at (0,132) size 320x0 RenderInline {SPAN} at (0,0) size 0x0 RenderInline {SPAN} at (0,0) size 0x0 RenderText {#text} at (0,0) size 0x0 RenderText {#text} at (0,0) size 0x0 and the first div becomes a float, I need to change it to this: RenderBlock (anonymous) at (0,73) size 320x19 RenderInline {SPAN} at (0,0) size 40x19 RenderInline {SPAN} at (0,0) size 40x19 [bgcolor=#FF0000] RenderBlock {DIV} (floating) at (0,0) size 160x40 [bgcolor=#008000] RenderText {#text} at (0,10) size 4x19 text run at (0,10) width 4: " " RenderBlock (anonymous) at (0,132) size 320x0 RenderBlock {DIV} at (0,0) size 320x0 RenderBlock (anonymous) at (0,132) size 320x0 RenderInline {SPAN} at (0,0) size 0x0 RenderInline {SPAN} at (0,0) size 0x0 RenderText {#text} at (0,0) size 0x0 RenderText {#text} at (0,0) size 0x0 Can I just use moveChildTo() to move the float into the preceding anonymous block and destroy its old anonymous block parent? Or will I then need to rewrite the continuation map to link the RenderInline parent to the anonymous block containing the remaining block-flow DIV?
Ahmad Saleem
Comment 2 2023-03-18 06:29:43 PDT
Created attachment 465490 [details] STP165 matches Chrome Canary 113 but differs Firefox Nightly 113 Just wanted to share updated test results. As mentioned, Safari is matching Chrome but differs from Firefox slightly in showing "red".
alan
Comment 3 2023-03-18 09:10:54 PDT
This looks to be working now.
Note You need to log in before you can comment on or make changes to this bug.