https://github.com/web-platform-tests/wpt
Raw File
Tip revision: bcb0c3b2a28cfcd91a767b683b39f4f990a91f90 authored by Matt Falkenhagen on 09 April 2018, 08:40:54 UTC
service worker: Add tests for inteception of workers after redirects.
Tip revision: bcb0c3b
view-box.html
<!DOCTYPE html>
<title>transform-box: view-box</title>
<link rel="match" href="support/greensquare200x200.html">
<link rel="help" href="https://drafts.csswg.org/css-transforms/#transform-box">
<style>
svg {
  background-color: red;
}
rect {
  transform-box: view-box;
}
#target1 {
  transform-origin: 25% 25%;
  transform: scale(2);
}
#target2 {
  transform: translate(50%, 0);
}
#target3 {
  transform: translate(0, 50%);
}
#target4 {
  transform-origin: 50% 50%;
  transform: rotate(180deg);
}
</style>
<p>There should be a green 200x200 rectangle below, and no red.</p>
<svg width="200" height="200">
  <rect id="target1" x="25" y="25" width="50" height="50" fill="green"/>
  <rect id="target2" width="100" height="100" fill="green"/>
  <rect id="target3" width="100" height="100" fill="green"/>
  <rect id="target4" width="100" height="100" fill="green"/>
</svg>
back to top