mirror of
https://github.com/servo/servo.git
synced 2025-08-11 16:35:33 +01:00
Fix the panic when transform is non-invertible
This commit is contained in:
parent
3c8daca772
commit
f362f6f93b
3 changed files with 44 additions and 1 deletions
|
@ -13321,6 +13321,12 @@
|
|||
{}
|
||||
]
|
||||
],
|
||||
"mozilla/non-invertible-transform.html": [
|
||||
[
|
||||
"/_mozilla/mozilla/non-invertible-transform.html",
|
||||
{}
|
||||
]
|
||||
],
|
||||
"mozilla/out-of-order-stylesheet-loads-and-imports.html": [
|
||||
[
|
||||
"/_mozilla/mozilla/out-of-order-stylesheet-loads-and-imports.html",
|
||||
|
@ -25886,6 +25892,10 @@
|
|||
"fe965e58fdcb78d08384a9fde74c982e34768745",
|
||||
"testharness"
|
||||
],
|
||||
"mozilla/non-invertible-transform.html": [
|
||||
"6fa68fe08c9dd5d594e838da51617951193fee19",
|
||||
"testharness"
|
||||
],
|
||||
"mozilla/out-of-order-stylesheet-loads-and-imports.html": [
|
||||
"462f5b6a1f47e0e40ad407ccd13b3058176d106d",
|
||||
"testharness"
|
||||
|
|
|
@ -0,0 +1,26 @@
|
|||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Shouldn't panic when transform is non-invertible</title>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<style>
|
||||
#test {
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
transform: scale(0);
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="test"></div>
|
||||
<script>
|
||||
async_test(function(t) {
|
||||
setTimeout(t.step_func_done(function() {
|
||||
var elements = document.elementsFromPoint(10, 10);
|
||||
}), 500);
|
||||
}, "Shouldn't panic when transform is non-invertible");
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue