mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
81edbbb58e
This patch fixes a case in which computeQuadArea calculates the area size correctly, but returns the area as a negative number. This occurs when DOM.getContentQuads returns quads in a specific order. E.g. the array: [ { x: 463, y: 68.5 },{ x: 437, y: 68.5 },{ x: 437, y: 94.5 },{ x: 463, y: 94.5 } ] will receive area size of -676.
22 lines
422 B
HTML
22 lines
422 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>Rotated button test</title>
|
|
</head>
|
|
<body>
|
|
<script src="mouse-helper.js"></script>
|
|
<button onclick="clicked();">Click target</button>
|
|
<style>
|
|
button {
|
|
transform: rotateY(180deg);
|
|
}
|
|
</style>
|
|
<script>
|
|
window.result = 'Was not clicked';
|
|
function clicked() {
|
|
result = 'Clicked';
|
|
}
|
|
</script>
|
|
</body>
|
|
</html>
|