Skip to content

Layout of anonymous blocks should propagate depends_on_block_constraints #41629

@Loirooriol

Description

@Loirooriol
<!DOCTYPE html>
<style>
#flex-container {
  display: flex;
  flex-direction: column;
}
#flex-item {
  width: 200px;
  height: 200px;
  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="100" height="100"></canvas>
  </div>
</div>
Actual Expected
Image Image

The anonymous block around the <canvas> doesn't establish a containing block. So it should propagate the depends_on_block_constraints up to the flex item.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-layout/2020https://github.com/servo/servo/wiki/Layout-2020A-layout/inlineC-has-manual-testcase

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions