forked from mirrors/gecko-dev
Automatic update from web-platform-tests vt: iframe scrollbars paint last during transition In a main frame, scrollbars paint during the kOverlayOverflowControls phase while in an iframe they paint during kSelfBlockBackgroundOnly. The former causes the scrollbars to avoid being part of the root snapshot due to the way we handled https://crbug.com/1303081. The latter causes the scrollbar to be painted into the iframe's root snapshot which is unintended. This CL changes the paint order of iframe scrollbars to match the main frame since iframes also cannot have content that paints over top of a scrollbar. Bug: 1407299 Change-Id: Ida74507e59b16f64134807ed56487fc6fb569e1c Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4241484 Reviewed-by: Philip Rogers <pdr@chromium.org> Reviewed-by: Vladimir Levin <vmpstr@chromium.org> Commit-Queue: David Bokan <bokan@chromium.org> Cr-Commit-Position: refs/heads/main@{#1106800} -- wpt-commits: 8aa97ba28e1c4fa92bedbb5c7635efb2bcc10fce wpt-pr: 38499
44 lines
886 B
HTML
44 lines
886 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<style>
|
|
body.scrollable {
|
|
width: 200lvw;
|
|
height: 200lvh;
|
|
}
|
|
|
|
div {
|
|
width: 200px;
|
|
height: 200px;
|
|
background-color: skyblue;
|
|
}
|
|
|
|
::view-transition-new(*) {
|
|
animation-duration: 30s;
|
|
opacity: 0;
|
|
}
|
|
::view-transition-old(*) {
|
|
animation: unset;
|
|
opacity: 1;
|
|
}
|
|
*/
|
|
</style>
|
|
<script>
|
|
function startTransition() {
|
|
window.transition = document.startViewTransition(() => {
|
|
document.body.classList.toggle('scrollable');
|
|
});
|
|
}
|
|
|
|
onload = () => {
|
|
const params = new URLSearchParams(window.location.search);
|
|
if (params.has('scrollbar')) {
|
|
document.body.classList.add('scrollable');
|
|
}
|
|
}
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<div></div>
|
|
</body>
|
|
</html>
|