Skip to content

Wrong layout of minimal page with <span style="display: inline-block;"> #567

@simonkrauter

Description

@simonkrauter

I have extracted this minimal example from Wikipedia:

<!DOCTYPE html>
<html>
<head>
<style>
* {
  border: 1px solid black;
  padding: 15px;
}
</style>
</head>
<body>
<span style="background-color: yellow; border: 2px solid red;">
  <span style="display: inline-block;">aaa</span>
  <span>bbb</span>
</span>

Current layout in Ladybird:
ladybird1
or
ladybird2
(Page reload sometimes toggles between the two layouts.)

Expected layout (from Firefox):
firefox

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingreduction of web contentIssue has a simplified reduction based on real-world web content.web compatibility

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions