testing/web-platform/tests/css/css-transforms/transform-box/view-box-viewbox.html
author James Graham <james@hoppipolla.co.uk>
Wed, 03 Jan 2018 16:24:44 +0000
changeset 450154 049f8d7499d7cecc60e532dfd8a74db553fa89e3
child 522296 bd1da129790f6d5085cce62bbd0af61eb34af75c
permissions -rw-r--r--
Bug 1429043 - Update web-platform-tests to revision 4de5305adf3d33badc23952672bcf28168fea37e, a=testonly MozReview-Commit-ID: 8hFZiSUb5Qr

<!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>