https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 0cb962b995d06ee5a8e581277aa7906b039563af authored by Anne van Kesteren on 29 March 2018, 12:32:41 UTC
document.open() and the load event
Tip revision: 0cb962b
view-box-viewbox.html
<!DOCTYPE html>
<title>transform-box: view-box, relative to viewport defined by viewBox</title>
<link rel="match" href="support/greensquare200x200.html">
<link rel="help" href="https://drafts.csswg.org/css-transforms/#transform-box">
<style>
#target {
  transform-box: view-box;
  transform: translate(-50%, -50%);
}
</style>
<p>There should be a green 200x200 rectangle below, and no red.</p>
<svg width="400" height="200" viewBox="0 0 200 200" preserveAspectRatio="xMinYMin">
  <rect width="200" height="200" fill="red"/>
  <rect id="target" x="100" y="100" width="200" height="200" fill="green"/>
</svg>
back to top