-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Layout of anonymous blocks should propagate depends_on_block_constraints #41629
Copy link
Copy link
Closed
Labels
A-layout/2020https://github.com/servo/servo/wiki/Layout-2020https://github.com/servo/servo/wiki/Layout-2020A-layout/inlineC-has-manual-testcase
Description
<!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 |
|---|---|
![]() |
![]() |
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A-layout/2020https://github.com/servo/servo/wiki/Layout-2020https://github.com/servo/servo/wiki/Layout-2020A-layout/inlineC-has-manual-testcase

