Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upAbsolutely positioned block inside of relatively positioned block with overflow is invisible #26500
Comments
|
To make matters slightly more confusing, the following testcase does not use quirks mode and passes in layout 2020 but fails in layout 2013: <!doctype html>
<style>
#viewer-container {
position: relative;
padding-top: 50%;
}
#viewer-viewport {
position: absolute;
top: 0;
bottom: 0;
right: 0;
left: 0;
}
#viewer {
overflow: hidden;
}
#inner {
position: absolute;
display: inline-block;
width: 100px;
height: 100px;
background-color: green;
}
</style>
<div id="viewer-container">
<div id="viewer-viewport">
<div id="viewer">
<span id="inner"></span>
</div>
</div>
</div> |
|
The issue here seems to be the calculation of
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In Firefox this displays a 100x100 green box; in Servo I get a white page in both layout 2013 and layout 2020. Commenting out any of the properties makes the box appear.
I believe this is a layout bug that makes the model viewer invisible on Sketchfab, based on reducing the contents of https://sketchfab.com/3d-models/soviet-tape-recorder-vesna-207-32ee8d86fe504f09ba4a2f017d653828.