mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2025-07-03 12:06:31 +02:00
Added test for DOMRect
This commit is contained in:
parent
f00c3b674e
commit
c83b1f8a3b
3 changed files with 152 additions and 0 deletions
42
test/domRectTest.html
Normal file
42
test/domRectTest.html
Normal file
|
@ -0,0 +1,42 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>DOMRect test</title>
|
||||
<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;
|
||||
}
|
||||
</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>refresh</button>
|
||||
</div>
|
||||
</div>
|
||||
<script src="domRectTest.js"></script>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue