Automatic update from web-platform-tests Full implementation of scale transform render surface trigger The general approach is as follows: * Look for 2D scale transforms, and allocate effect nodes for them (if all goes well, this should have little or no effect on cc layer count or render surfaces) * Upgrade the effect node for a 2D scale transform to a render surface if it doesn't have a backdrop filter in a descendant effect node, and has at least two composited layers under it. Also, in particular this approach: * Relies on implicit compositing of scale transform due to presence of composited descendants Bug: 40084005 Change-Id: If7fff045752f5cf1c09e574a81d181b2a8ac4959 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6299812 Reviewed-by: Xianzhu Wang <wangxianzhu@chromium.org> Commit-Queue: Chris Harrelson <chrishtr@chromium.org> Cr-Commit-Position: refs/heads/main@{#1427258} -- wpt-commits: 8dd63a5942f11650d17b34d716dc4da1ae84bec9 wpt-pr: 51062
43 lines
1.3 KiB
HTML
43 lines
1.3 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>CSS Test (Transforms): Compound Transforms</title>
|
|
<link rel="author" title="Keith Schwarz" href="mailto:keith@keithschwarz.com">
|
|
<link rel="author" title="Robert O'Callahan" href="mailto:robert@ocallahan.org">
|
|
<link rel="author" title="Aryeh Gregor" href="mailto:ayg@aryeh.name">
|
|
<link rel="help" href="http://www.w3.org/TR/css-transforms-1/#transform-rendering">
|
|
<meta name="assert" content='Tests that applying multiple transforms to an
|
|
element is the same as applying the transforms in the same order to nested
|
|
elements.'>
|
|
<meta name=fuzzy content="maxDifference=0-30;totalPixels=0-500">
|
|
<link rel="match" href="transform-compound-ref.html">
|
|
<link rel="mismatch" href="transform-compound-notref-1.html">
|
|
<link rel="mismatch" href="transform-compound-notref-2.html">
|
|
<style>
|
|
body {
|
|
overflow: hidden;
|
|
}
|
|
div {
|
|
transform-origin: top left;
|
|
}
|
|
body > div {
|
|
position: relative;
|
|
left: 200px;
|
|
top: 0;
|
|
}
|
|
body > div > div {
|
|
background-color: gold;
|
|
width: 200px;
|
|
height: 100px;
|
|
transform: translate(100px) scale(2) rotate(90deg) skewX(15deg);
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div>
|
|
<div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|