wpt / svg / painting / reftests / small-nested-viewbox.html

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

/svg/painting/reftests/small-nested-viewbox.html

<!DOCTYPE html>
<meta charset="utf-8">
<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1922222">
<link rel="author" title="Mozilla" href="https://mozilla.org">
<link rel="author" title="Emilio Cobos Álvarez" href="mailto:emilio@crisal.io">
<link rel="match" href="small-nested-viewbox-ref.html">
<style>
  svg#root {
    width: 16px;
    padding: 4px;
    background: #ccc;
    color: #000;
  }
</style>
<svg id="root" viewBox="0 0 4 4">
  <svg viewBox='0 0 256 256'>
    <rect width="256" height="256" x="0" y="0" fill="green" />
  </svg>
</svg>

/svg/painting/reftests/small-nested-viewbox-ref.html

<!DOCTYPE html>
<style>
  svg {
    width: 16px;
    padding: 4px;
    background: #ccc;
    color: #000;
  }
</style>
<svg width='16' height='16'>
  <svg viewBox='0 0 256 256'>
    <rect width="256" height="256" x="0" y="0" fill="green" />
  </svg>
</svg>