mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
25e9d2ccf0
Adds ref-tests from pages used in the following PRs: https://github.com/SerenityOS/serenity/pull/16035 https://github.com/SerenityOS/serenity/pull/17591
45 lines
1.1 KiB
HTML
45 lines
1.1 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<link rel="match" href="reference/overflow-hidden-2-ref.html" />
|
|
<style>
|
|
.box1 {
|
|
width: 400px;
|
|
height: 400px;
|
|
background-color: slateblue;
|
|
position: absolute;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.translate {
|
|
width: 200px;
|
|
height: 200px;
|
|
background-color: black;
|
|
transform: translate(150px, 150px);
|
|
}
|
|
|
|
.box2 {
|
|
width: 100px;
|
|
height: 100px;
|
|
background-color: orangered;
|
|
position: absolute;
|
|
}
|
|
|
|
.box3 {
|
|
position: relative;
|
|
width: 100px;
|
|
height: 100px;
|
|
background-color: greenyellow;
|
|
top: -90px;
|
|
left: -120px;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="box1">
|
|
<div class="translate">
|
|
<div class="box2"><div class="box3"></div></div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|