Skip to content

Layout bug with floating, full width elements #6266

@matan-h

Description

@matan-h

Summary

In my website there is a text that say "You May Also Enjoy". I've noticed the "You" disappear. after some research it seem that if element has "float: left;width: 100%;" ladybird try to append the next element after that 100% width, which make it start out of the page bonds.

Operating system

Linux

Steps to reproduce

  1. open a website with element that has float: <any>;width: 100%;
  2. notice there are random text after the page width that shouldnt be there

Expected behavior

The layout is display correctly: First Second Third in the same line

Actual behavior

The first word (First) disappear to be after the page width.

URL for a reduced test case

N/A

HTML/SVG/etc. source for a reduced test case

<div style="float: left;width: 100%;">
    Text
</div>


<h2>First Second Third</h2>

Log output and (if possible) backtrace

N/A

Screenshots or screen recordings

Image

Build flags or config settings

No response

Contribute a patch?

  • I’ll contribute a patch for this myself.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions