https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 86fb98f2c3ec4e05bc529f19e41465da62052c3a authored by Lukasz Anforowicz on 02 April 2018, 23:48:36 UTC
Make CORB MIME type classification consistent with the web specs.
Tip revision: 86fb98f
fill-box-mutation.html
<!DOCTYPE html>
<html class="reftest-wait">
<title>transform-box: fill-box, shape mutated</title>
<link rel="match" href="support/greensquare200x200.html">
<link rel="help" href="https://drafts.csswg.org/css-transforms/#transform-box">
<style>
#target {
  transform-box: fill-box;
  transform: translate(-50%, 0);
}
</style>
<p>There should be a green 200x200 rectangle below, and no red.</p>
<svg width="400" height="200">
  <rect width="200" height="200" fill="red"/>
  <rect id="target" x="100" width="100" height="200" fill="green"/>
</svg>
<script>
requestAnimationFrame(function() {
  requestAnimationFrame(function() {
    document.querySelector('#target').setAttribute('width', 200);
    document.documentElement.classList.remove('reftest-wait');
  });
});
</script>
back to top