mirror of
https://github.com/servo/servo.git
synced 2025-08-15 10:25:32 +01:00
Fix panic when perspective property is zero.
This commit is contained in:
parent
34954a9870
commit
183c3f5389
4 changed files with 104 additions and 2 deletions
|
@ -3536,6 +3536,18 @@
|
|||
"url": "/_mozilla/css/percentage_width_inline_block_a.html"
|
||||
}
|
||||
],
|
||||
"css/perspective_zero.html": [
|
||||
{
|
||||
"path": "css/perspective_zero.html",
|
||||
"references": [
|
||||
[
|
||||
"/_mozilla/css/perspective_zero_ref.html",
|
||||
"=="
|
||||
]
|
||||
],
|
||||
"url": "/_mozilla/css/perspective_zero.html"
|
||||
}
|
||||
],
|
||||
"css/pixel_snapping_border_a.html": [
|
||||
{
|
||||
"dpi": "2",
|
||||
|
@ -9616,6 +9628,18 @@
|
|||
"url": "/_mozilla/css/percentage_width_inline_block_a.html"
|
||||
}
|
||||
],
|
||||
"css/perspective_zero.html": [
|
||||
{
|
||||
"path": "css/perspective_zero.html",
|
||||
"references": [
|
||||
[
|
||||
"/_mozilla/css/perspective_zero_ref.html",
|
||||
"=="
|
||||
]
|
||||
],
|
||||
"url": "/_mozilla/css/perspective_zero.html"
|
||||
}
|
||||
],
|
||||
"css/pixel_snapping_border_a.html": [
|
||||
{
|
||||
"dpi": "2",
|
||||
|
|
31
tests/wpt/mozilla/tests/css/perspective_zero.html
Normal file
31
tests/wpt/mozilla/tests/css/perspective_zero.html
Normal file
|
@ -0,0 +1,31 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel='match' href='perspective_zero_ref.html'>
|
||||
<style type="text/css">
|
||||
html, body {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
#outer {
|
||||
perspective: 0px;
|
||||
transform-style: preserve-3d;
|
||||
}
|
||||
|
||||
#inner {
|
||||
position: absolute;
|
||||
top: 100px;
|
||||
left: 100px;
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
background-color: green;
|
||||
transform: translate3d(0, 0, 0);
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="outer">
|
||||
<div id="inner"></div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
30
tests/wpt/mozilla/tests/css/perspective_zero_ref.html
Normal file
30
tests/wpt/mozilla/tests/css/perspective_zero_ref.html
Normal file
|
@ -0,0 +1,30 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<style type="text/css">
|
||||
html, body {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
#outer {
|
||||
perspective: 10px;
|
||||
transform-style: preserve-3d;
|
||||
}
|
||||
|
||||
#inner {
|
||||
position: absolute;
|
||||
top: 100px;
|
||||
left: 100px;
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
background-color: green;
|
||||
transform: translate3d(0, 0, 0);
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="outer">
|
||||
<div id="inner"></div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue