mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
Add display: none test
This commit is contained in:
parent
162ecd0aac
commit
317d2ac547
1 changed files with 8 additions and 0 deletions
|
@ -63,6 +63,12 @@
|
||||||
background-color: green;
|
background-color: green;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
}
|
}
|
||||||
|
#display-none {
|
||||||
|
width: 100px;
|
||||||
|
height: 100px;
|
||||||
|
background-color: green;
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
@ -78,6 +84,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div id='rotated'>rotated</div>
|
<div id='rotated'>rotated</div>
|
||||||
<div id='inline-block'>inline-block</div>
|
<div id='inline-block'>inline-block</div>
|
||||||
|
<div id='display-none'>display-none</div>
|
||||||
<script>
|
<script>
|
||||||
test_rect = function(name, left, top, height, width) {
|
test_rect = function(name, left, top, height, width) {
|
||||||
var div = document.getElementById(name);
|
var div = document.getElementById(name);
|
||||||
|
@ -99,6 +106,7 @@
|
||||||
test_rect('abs3', 0, 0, 40, 48);
|
test_rect('abs3', 0, 0, 40, 48);
|
||||||
test_rect('span1', 0, 0, 0, 0);
|
test_rect('span1', 0, 0, 0, 0);
|
||||||
test_rect('inline-block', 0, 0, 100, 100);
|
test_rect('inline-block', 0, 0, 100, 100);
|
||||||
|
test_rect('display-none', 0, 0, 0, 0);
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue