wpt / css / css-masking / clip-path / clip-path-rotated-will-change-transform.html

Status: PASS | Duration: 5ms | Subtests: 1/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi

/css/css-masking/clip-path/clip-path-rotated-will-change-transform.html

<!DOCTYPE html>
<title>Clip Path: should be correctly rotated by transform with will-change:transform</title>
<link rel="help" href="http://www.w3.org/TR/css-masking-1/#the-clip-path">
<link rel="match" href="clip-path-rotated-will-change-transform-ref.html">
<style>div { width: 200px; height: 200px; position: absolute; }</style>
<div style="transform: rotate(45deg); clip-path: inset(31px)">
  <div style="will-change: transform; background: red"></div>
</div>
<div style="transform: rotate(45deg); will-change: transform">
  <div style="top: 30px; left: 30px; width: 140px; height: 140px; background: green"></div>
</div>

/css/css-masking/clip-path/clip-path-rotated-will-change-transform-ref.html

<!DOCTYPE html>
<div style="transform: rotate(45deg); width: 200px; height: 200px; will-change: transform">
  <div style="position: relative; top: 30px; left: 30px; width: 140px; height: 140px; background: green"></div>
</div>