Add display: none test

This commit is contained in:
Till Schneidereit 2015-07-19 18:59:54 +02:00
parent 162ecd0aac
commit 317d2ac547

View file

@ -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>