mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2024-12-22 12:50:36 +01:00
domRectTest: added getBOXQuads test
This commit is contained in:
parent
ff98b9b9af
commit
71c9baec0a
@ -142,6 +142,10 @@
|
|||||||
createTest("Element.getBoundingClientRect", function(element){
|
createTest("Element.getBoundingClientRect", function(element){
|
||||||
return element.getBoundingClientRect();
|
return element.getBoundingClientRect();
|
||||||
}, useIframe);
|
}, useIframe);
|
||||||
|
createTest("Element.getBoxQuads", function(element){
|
||||||
|
const quad = element.getBoxQuads();
|
||||||
|
return quad[0].getBounds();
|
||||||
|
}, useIframe);
|
||||||
createTest("Range.getClientRects", function(element){
|
createTest("Range.getClientRects", function(element){
|
||||||
const range = document.createRange();
|
const range = document.createRange();
|
||||||
range.selectNode(element);
|
range.selectNode(element);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user