mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2024-12-22 12:50:36 +01:00
97c50e8761
For #253
59 lines
1.1 KiB
HTML
59 lines
1.1 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>DOMRect test</title>
|
|
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
|
|
<link href="testIcon.svg" type="image/png" rel="icon">
|
|
<link href="testIcon.svg" type="image/png" rel="shortcut icon">
|
|
<style>
|
|
#iframe {
|
|
position: absolute;
|
|
top: -2000%;
|
|
}
|
|
.template {
|
|
display: none;
|
|
}
|
|
.test {
|
|
display: inline-block;
|
|
margin: 1em;
|
|
}
|
|
.test .data table {
|
|
border-collapse: collapse;
|
|
}
|
|
.test .data th {
|
|
padding: 0.4em;
|
|
}
|
|
.test .data td{
|
|
border: 1px solid #c7c7c7;
|
|
padding: 0.4em;
|
|
}
|
|
.test .data td.value {
|
|
text-align: right;
|
|
}
|
|
.small {
|
|
font-size: 0.8em;
|
|
color: gray;
|
|
}
|
|
.rectHash {
|
|
font-size: 4px;
|
|
}
|
|
.rectHash:hover {
|
|
font-size: 100%;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<h1>DOMRect test</h1>
|
|
<iframe id="iframe" src="domRectIFrame.html"></iframe>
|
|
<div id="tests">
|
|
<div class="test">
|
|
<h2 class="title"></h2>
|
|
Hash: <span class="hash"></span><br>
|
|
Data: <span class="data"></span><br>
|
|
<button class="refresh">refresh</button>
|
|
<button class="performance">measure performance</button>
|
|
</div>
|
|
</div>
|
|
<script src="domRectTest.js"></script>
|
|
</body>
|
|
</html> |