LadybirdBrowser / ladybird

Truly independent web browser
https://ladybird.dev
BSD 2-Clause "Simplified" License
4.26k stars 210 forks source link

Grid layout issue on firefox.com #255

Open awesomekling opened 6 days ago

awesomekling commented 6 days ago

This doesn't look right: Screenshot from 2024-06-23 10-40-28

Simplified reduction:

<!doctype html><style>
    * {
        outline: 1px solid black;
    }
    html {
        background: white;
        position: absolute;
        width: 0;
    }
    body {
        background: orange;
        position: absolute;
    }
    main {
        background: cyan;
        display: grid;
        grid-template-columns: 1fr;
    }
</style><body><main><div>hello
yogirajbshinde21 commented 4 days ago

To fix this, we need to ensure to have proper positioning and structure of elements. Can I send a PR to resolve this issue? @awesomekling

awesomekling commented 4 days ago

To fix this, we need to ensure to have proper positioning and structure of elements. Can I send a PR to resolve this issue? @awesomekling

Of course, if you have a fix, please submit it along with a layout test :)