Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Do not assume that an absolute positioned block box's height is alway…
…s resolvable https://bugs.webkit.org/show_bug.cgi?id=241213 Reviewed by Simon Fraser. 1. While the ICB (RenderView) always has fixed height/width, the RenderStyle values are set to auto. 2. It's incorrect to assume that we can always resolve the height for an absolute positioned box (e.g. it may have a "height: auto" relative positioned containing block) * LayoutTests/fast/block/fill-available-with-absolute-position-expected.html: Added. * LayoutTests/fast/block/fill-available-with-absolute-position.html: Added. * Source/WebCore/rendering/RenderBox.cpp: (WebCore::RenderBox::computeIntrinsicLogicalContentHeightUsing const): (WebCore::RenderBox::computePositionedLogicalHeightUsing const): Canonical link: https://commits.webkit.org/251215@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@295124 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
3 changed files
with
27 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<style> | ||
div { | ||
width: 10px; | ||
height: 100%; | ||
background-color: green; | ||
position: absolute; | ||
} | ||
</style> | ||
<div></div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<style> | ||
.fill { | ||
width: 10px; | ||
background-color: green; | ||
height: -webkit-fill-available; | ||
position: absolute; | ||
} | ||
.relative-containing-block { | ||
position: relative; | ||
} | ||
</style> | ||
<div class=fill></div> | ||
<div class=relative-containing-block> | ||
<div class=fill style="background-color: red"></div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters