39 lines
1004 B
HTML
39 lines
1004 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<style>
|
|
.rel {
|
|
position: relative;
|
|
width: 150px;
|
|
}
|
|
.pos {
|
|
background-color: cyan;
|
|
position: absolute;
|
|
width: 100%;
|
|
top: 0;
|
|
left: 0;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<p>
|
|
Bug webkit.org/b/111977 : We should compute overflow from cells during simplified layout. The page should have a vertical scrollbar.
|
|
</p>
|
|
<table>
|
|
<tr>
|
|
<td>
|
|
<div class="rel">
|
|
<div class="pos"></div>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<script>
|
|
var e = document.querySelector('.pos');
|
|
document.body.offsetHeight;
|
|
e.style.height = '800px';
|
|
</script>
|
|
</body>
|
|
</html>
|
|
|