summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/svg/layout/svg-intrinsic-size-invalidation-ref.html
blob: acfc7be517b3cc6783a372de4c67cc0d7a8b976e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<!doctype html>
<style>
#avatar {
  width: 100px;
  display: block;
}
#container {
  width: max-content;
  border: 10px solid green;
}
#ancestor {
  padding: 10px;
}
</style>
<div id="ancestor">
  <div id="container">
    <svg viewBox="0 0 128 128" xmlns="http://www.w3.org/2000/svg" id="avatar">
      <rect height="100%" width="100%" fill="blue"></rect>
    </svg>
  </div>
</div>