Open ristew opened 2 years ago
Why not use the global attribute hidden
?
<svg hidden width="100" height="100">
<circle cx="50" cy="50" r="50" />
</svg>
svg[hidden] {
display: none;
}
I made an issue with the library it's coming from: https://github.com/google/blockly/issues/5840. Even display: initial
or display: unset
triggered the behavior, so I feel it's best to avoid use of the SVG display attribute altogether as it can easily be the victim of undefined behavior.
Minimum example:
workaround: