Skip to content

Intrinsic size of anonymous blocks should propagate depends_on_block_constraints #41633

@Loirooriol

Description

@Loirooriol

Like #41629, but for intrinsic sizing.

<!DOCTYPE html>
<style>
#flex-container {
  display: flex;
  flex-direction: column;
}
#flex-item {
  width: max-content;
  height: 100px;
  background: red;
}
#target {
  height: 100%;
  background: green;
}
</style>

<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<div id="flex-container">
  <div id="flex-item">
    <div><!-- This wraps the inline-level canvas inside an anonymous block --></div>
    <canvas id="target" width="200" height="200"></canvas>
  </div>
</div>
Servo main Servo #41632 Expected
Image Image Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions