Files
sousa-gecko/testing/web-platform/tests/css/css-view-transitions/nested/nested-position-with-border-ref.html
T
Vladimir Levin 9218d342c9 Bug 1972011 [wpt PR 53081] - Nested VT: Adjust border offset by device scale factor., a=testonly
Automatic update from web-platform-tests
Nested VT: Adjust border offset by device scale factor.

Since border width is used for CSS transform, it should be in CSS
space instead of the physical space.

R=nrosenthal@google.com

Change-Id: I592d373a5b7298e99173eee77fa0aa1f91d0c790
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6633637
Reviewed-by: Noam Rosenthal <nrosenthal@google.com>
Auto-Submit: Vladimir Levin <vmpstr@chromium.org>
Commit-Queue: Vladimir Levin <vmpstr@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1473181}

--

wpt-commits: 933734e8bbd7eee39370bdf73ede94436760931d
wpt-pr: 53081
2025-06-23 09:38:48 +00:00

36 lines
604 B
HTML

<!doctype html>
<title>Nested View Transitions: nested position with borders (ref)</title>
<link rel="help" href="https://drafts.csswg.org/css-view-transitions-2/">
<style>
body {
background: pink;
}
#clipper {
view-transition-group: contain;
view-transition-name: clipper;
border-width: 6px 10px 16px 20px;
border-style: solid;
border-color: green;
height: 200px;
width: 200px;
}
.item {
view-transition-name: item;
background: blue;
position: relative;
width: 100px;
height: 100px;
border: 1px solid black;
}
</style>
<div id=clipper>
<div class=item></div>
</div>