forked from WebKit/WebKit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/WebKit/WebKit
- Loading branch information
Showing
244 changed files
with
12,393 additions
and
4,379 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
87 changes: 87 additions & 0 deletions
87
...tTests/compositing/shared-backing/update-backing-sharing-on-geometry-change-expected.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
|
||
<head> | ||
<meta charset="utf-8"> | ||
<style> | ||
body { | ||
background-color: white; | ||
color: black; | ||
} | ||
|
||
.transformed-container { | ||
transform: translate3d(0px, 0px, 0px); | ||
border: 1px solid black; | ||
padding: 10px; | ||
/* width: 200px; */ | ||
} | ||
|
||
.fixed { | ||
position: fixed; | ||
top: 20px; | ||
right: 320px; | ||
width: 20px; | ||
height: 20px; | ||
border: 2px solid red; | ||
transform: translate3d(300px, 0px, 0px); | ||
} | ||
|
||
.above { | ||
position: absolute; | ||
z-index: 1; | ||
height: 50px; | ||
width: 50px; | ||
top: 20px; | ||
left: 20px; | ||
background-color: green; | ||
} | ||
|
||
.translated { | ||
transform: translateX(-100%); | ||
width: 100px; | ||
height: 100px; | ||
} | ||
|
||
.slide-left { | ||
position: absolute; | ||
height: 100px; | ||
width: 100px; | ||
transform: translateX(100%); | ||
background-color: rgba(255, 255, 128, 0.85); | ||
} | ||
|
||
.slide-right { | ||
position: absolute; | ||
height: 100px; | ||
width: 100px; | ||
transform: translateX(200%); | ||
} | ||
</style> | ||
</head> | ||
|
||
<body> | ||
<div id="containerShrinking" style="width: 150px"> | ||
<div class="transformed-container"> | ||
<div class="fixed"></div> | ||
<div class="above"></div> | ||
<div class="translated"> | ||
<div class="slide-left"></div> | ||
<div class="slide-right"></div> | ||
</div> | ||
</div> | ||
</div> | ||
<br> | ||
<div id="containerGrowing" style="width: 200px"> | ||
<div class="transformed-container"> | ||
<div class="fixed"></div> | ||
<div class="above"></div> | ||
<div class="translated"> | ||
<div class="slide-left"></div> | ||
<div class="slide-right"></div> | ||
</div> | ||
</div> | ||
</div> | ||
</body> | ||
<p>When the red square overlaps the yellow box, the inside box should be green.</p> | ||
|
||
</html> |
97 changes: 97 additions & 0 deletions
97
LayoutTests/compositing/shared-backing/update-backing-sharing-on-geometry-change.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
<!DOCTYPE html> | ||
<html class="reftest-wait"> | ||
|
||
<head> | ||
<meta charset="utf-8"> | ||
<style> | ||
body { | ||
background-color: white; | ||
color: black; | ||
} | ||
|
||
.transformed-container { | ||
transform: translate3d(0px, 0px, 0px); | ||
border: 1px solid black; | ||
padding: 10px; | ||
/* width: 200px; */ | ||
} | ||
|
||
.fixed { | ||
position: fixed; | ||
top: 20px; | ||
right: 320px; | ||
width: 20px; | ||
height: 20px; | ||
border: 2px solid red; | ||
transform: translate3d(300px, 0px, 0px); | ||
} | ||
|
||
.above { | ||
position: absolute; | ||
z-index: 1; | ||
height: 50px; | ||
width: 50px; | ||
top: 20px; | ||
left: 20px; | ||
background-color: green; | ||
} | ||
|
||
.translated { | ||
transform: translateX(-100%); | ||
width: 100px; | ||
height: 100px; | ||
} | ||
|
||
.slide-left { | ||
position: absolute; | ||
height: 100px; | ||
width: 100px; | ||
transform: translateX(100%); | ||
background-color: rgba(255, 255, 128, 0.85); | ||
} | ||
|
||
.slide-right { | ||
position: absolute; | ||
height: 100px; | ||
width: 100px; | ||
transform: translateX(200%); | ||
} | ||
</style> | ||
</head> | ||
|
||
<script> | ||
function waitAndResizeContainers() { | ||
requestAnimationFrame(() => requestAnimationFrame(() => { | ||
containerShrinking.style = "width: 150px"; | ||
containerGrowing.style = "width: 200px"; | ||
document.documentElement.classList.remove("reftest-wait"); | ||
})); | ||
} | ||
</script> | ||
|
||
<body onload="waitAndResizeContainers()"> | ||
<div id="containerShrinking" style="width: 200px"> | ||
<div class="transformed-container"> | ||
<div class="fixed"></div> | ||
<div class="above"></div> | ||
<div class="translated"> | ||
<div class="slide-left"></div> | ||
<div class="slide-right"></div> | ||
</div> | ||
</div> | ||
</div> | ||
<br> | ||
<div id="containerGrowing" style="width: 150px"> | ||
<div class="transformed-container"> | ||
<div class="fixed"></div> | ||
<div class="above"></div> | ||
<div class="translated"> | ||
<div class="slide-left"></div> | ||
<div class="slide-right"></div> | ||
</div> | ||
</div> | ||
</div> | ||
</body> | ||
<p>When the red square overlaps the yellow box, the inside box should be green.</p> | ||
|
||
</html> |
5 changes: 5 additions & 0 deletions
5
LayoutTests/compositing/shared-backing/update-backing-sharing-on-size-change-expected.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<!DOCTYPE html> <!-- webkit-test-runner [ OverlappingBackingStoreProvidersEnabled=false ] --> | ||
<style> | ||
* { position: absolute; box-shadow: 0px 1px 64px } | ||
</style> | ||
<span style="position:sticky">class3</span> |
18 changes: 18 additions & 0 deletions
18
LayoutTests/compositing/shared-backing/update-backing-sharing-on-size-change.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<!DOCTYPE html> | ||
<style> | ||
* { position: absolute; box-shadow: 0px 1px 64px } | ||
.class9 { position: relative; backdrop-filter: hue-rotate(-1deg); top: -1cm; } | ||
</style> | ||
<script> | ||
function jsfuzzer() { | ||
mo.firstChild.remove(); | ||
div.contentEditable = "plaintext-only"; | ||
} | ||
</script> | ||
<body onload=jsfuzzer()> | ||
<span style="position:sticky">class3</span> | ||
<math display="block"> | ||
<mspace class="class9"/> | ||
<mo id="mo">*</mo> | ||
<div id="div"> | ||
<embed> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
LayoutTests/fast/dynamic/out-of-flow-video-assert-at-attach-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
PASS if no assert in debug. | ||
|
22 changes: 22 additions & 0 deletions
22
LayoutTests/fast/dynamic/out-of-flow-video-assert-at-attach.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<style> | ||
.abspos { | ||
width: 100px; | ||
height: 100px; | ||
background: red; | ||
position: absolute; | ||
} | ||
|
||
#container { | ||
position: relative; | ||
} | ||
</style> | ||
PASS if no assert in debug. | ||
<div id=container></div> | ||
<script> | ||
if (window.testRunner) | ||
testRunner.dumpAsText(); | ||
document.body.offsetHeight; | ||
let video = document.createElement("video"); | ||
video.className = "abspos"; | ||
container.appendChild(video); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.