mirror of
https://github.com/jquery/jquery.git
synced 2024-12-09 08:04:24 +00:00
4e98980523
Also, account for the fact old Firefox (<61) has `null` computed style for elements in such iframes. Closes gh-5359 Ref gh-5317 Ref gh-5358
35 lines
628 B
HTML
35 lines
628 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>Test computeStyleTests for hidden iframe</title>
|
|
<meta charset="utf-8">
|
|
<style>
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
#test {
|
|
position: absolute;
|
|
border: 10px solid black;
|
|
width: 400px;
|
|
}
|
|
#test-table {
|
|
position: absolute;
|
|
width: 100.7px;
|
|
border-spacing: 0;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div id="test"></div>
|
|
<table id="test-table">
|
|
<tr id="test-tr"></tr>
|
|
</table>
|
|
<script src="../../jquery.js"></script>
|
|
<script src="../iframeTest.js"></script>
|
|
<script>
|
|
var initialHeight = $( "#test" ).outerHeight();
|
|
startIframeTest( initialHeight );
|
|
</script>
|
|
</body>
|
|
</html>
|