getScreenCTM() on WebKit does not reflect transformations applied to an ancestor (see bug https://bugs.webkit.org/show_bug.cgi?id=209220), so instead of transforming the root <svg> element, we can only transform a child element
18 lines
263 B
CSS
18 lines
263 B
CSS
body {
|
|
text-align: center;
|
|
max-height: 100vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
margin: 0;
|
|
}
|
|
|
|
object {
|
|
padding: 0;
|
|
margin: 5px;
|
|
border: 1px solid steelblue;
|
|
background-color: gray;
|
|
touch-action: none;
|
|
display: block;
|
|
min-height: 0;
|
|
}
|