LadybirdBrowser / ladybird

Truly independent web browser
https://ladybird.org
BSD 2-Clause "Simplified" License
12.53k stars 501 forks source link

CSS Grid layout goes wrong on chess.com #178

Open awesomekling opened 1 month ago

awesomekling commented 1 month ago

Hmmmmm: image

Simplified reduction:

<!doctype html><style>
    * { outline: 1px solid black; }
    html { background: white; }
    body {
        display: grid;
        grid-template-columns: 1fr [sidebar] 500px 1fr;
        grid-template-rows: [top] 100px [bottom] auto;
        background: wheat;
    }
    .main {
        background: pink;
        height: 200px;
    }
    .chessboard {
        background: orange;
        width: 600px;
        height: 100px;
    }
    .sidebar {
        grid-area: top/sidebar;
    }
</style>
<body>
 <div class="main">
  <div class="chessboard"></div>
 </div>
 <div class="sidebar">hello</div>
yogirajbshinde21 commented 3 weeks ago

I can fix this issue, can I submit a PR here?

awesomekling commented 3 weeks ago

I can fix this issue, can I submit a PR here?

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