blob: bc800d9858eb8183c8cb264be09da7e4ac3274d7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript">
function runTest() {
var outer = document.getElementById('outer');
outer.style.width = '100px';
window.checkLayout("#outer", document.getElementById("test-output"));
};
</script>
<script src="../../resources/check-layout.js"></script>
<style>
#outer {
display: table;
table-layout: fixed;
}
#inner {
display: table-cell;
height: 50px;
background-color: green;
min-width: 200px;
}
</style>
</head>
<body onload="runTest()">
Tests that the table width having table-layout fixed changes when width is changed dynamically.
<div id="outer" data-expected-width="100">
<div id="inner"></div>
</div>
<div id="test-output"></div>
</body>
</html>
|