forked from mirrors/gecko-dev
Automatic update from web-platform-tests Improve will-change:transform raster scale adjustment This fixes the issue of too big scale for will-change:transform layers by - Partly reverting crrev.com/c/2447650 to apply the change on tiny scales only. When the ideal scale is not tiny, use the original policy to clamp minimum scale to the native scale. - Increasing kMinScaleRatioForWillChangeTransform from 0.1 to 0.25 to reduce memory and number of tiles when the scale is bigger than ideal, from 100x to 16x in worst cases. Bug: 1146393 Change-Id: Ida5720f5126648c2fad0b9921781714fa006d346 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2527733 Reviewed-by: vmpstr <vmpstr@chromium.org> Commit-Queue: Xianzhu Wang <wangxianzhu@chromium.org> Cr-Commit-Position: refs/heads/master@{#825998} -- wpt-commits: 4cf34e3fc5d4d673dee780015ebf194db71fd500 wpt-pr: 26475
20 lines
480 B
HTML
20 lines
480 B
HTML
<!DOCTYPE html>
|
|
<title>Huge lengths with tiny scale</title>
|
|
<link rel="author" title="Xianzhu Wang" href="mailto:wangxianzhu@chromium.org">
|
|
<link rel="help" href="https://crbug.com/1132991">
|
|
<link rel="match" href="huge-length-tiny-scale-ref.html">
|
|
<style>
|
|
body {
|
|
overflow: hidden;
|
|
}
|
|
div {
|
|
will-change: transform;
|
|
transform: scale(0.005);
|
|
transform-origin: 0 0;
|
|
width: 40000px;
|
|
height: 40000px;
|
|
background: green;
|
|
border: 2000px solid blue;
|
|
}
|
|
</style>
|
|
<div></div>
|