LibWeb: Implement CSS perspective-origin

This commit is contained in:
Psychpsyo
2025-11-12 21:47:17 +01:00
committed by Sam Atkins
parent 27e4793c5d
commit 2db3796fd3
Notes: github-actions[bot] 2025-11-21 11:15:32 +00:00
31 changed files with 547 additions and 42 deletions

View File

@@ -0,0 +1,30 @@
<!DOCTYPE html>
<html>
<head>
<title>Reference File</title>
<link rel="author" title="Andres Ugarte" href="mailto:anduga@gmail.com">
<style type="text/css">
.container {
position: absolute;
width: 150px;
height: 150px;
top: 100px;
left: 100px;
}
.greenSquare {
position: absolute;
top: 0px;
left: 0px;
width: 150px;
height: 150px;
background: green;
}
</style>
</head>
<body>
<p>The test passes if there is a green square and no red.</p>
<div class="container">
<div class="greenSquare"></div>
</div>
</body>
</html>

View File

@@ -0,0 +1,30 @@
<!DOCTYPE html>
<html>
<head>
<title>Reference File</title>
<link rel="author" title="Andres Ugarte" href="mailto:anduga@gmail.com">
<style type="text/css">
.container {
position: absolute;
width: 150px;
height: 150px;
top: 100px;
left: 100px;
}
.greenSquare {
position: absolute;
top: 0px;
left: 0px;
width: 150px;
height: 150px;
background: green;
}
</style>
</head>
<body>
<p>The test passes if there is a green square and no red.</p>
<div class="container">
<div class="greenSquare"></div>
</div>
</body>
</html>

View File

@@ -0,0 +1,16 @@
<!DOCTYPE html>
<html>
<head>
<title>CSS Reftest Reference</title>
<link rel="author" title="Matt Woodrow" href="mailto:mwoodrow@mozilla.com">
<link rel="author" title="Aryeh Gregor" href="mailto:ayg@aryeh.name">
<link rel="mismatch" href="transform3d-rotatex-ref.html">
</head>
<body>
<div style="perspective: 1000px; perspective-origin: top left;">
<div style="transform: rotatex(45deg); width: 100px; height: 100px;
background: lime">
</div>
</div>
</body>
</html>