3 ms·
Was wondering if you could use this to run a version of your site in the favicon directly using `foreignObject`, but it looks like Chromium browsers at least re
by MattIPv4 5y ago
Was wondering if you could use this to run a version of your site in the favicon directly using `foreignObject`, but it looks like Chromium browsers at least render the SVGs in static mode [1][2]. Maybe it'll work in others though?
[1] https://www.chromestatus.com/feature/5180316371124224 https://www.chromestatus.com/feature/5180316371124224
[2] https://svgwg.org/svg2-draft/conform.html#secure-static-mode https://svgwg.org/svg2-draft/conform.html#secure-static-mode
- chrismorgan 5y agoSecure static mode doesn’t block foreignObject. Script execution, external references, declarative animation and interactivity, but not foreign content. Indeed, such processing modes are propagated to such foreign content: https://svgwg.org/svg2-draft/conform.html#referencing-modes https://svgwg.org/svg2-draft/conform.html#referencing-modes. See https://news.ycombinator.com/item?id=26922244#26923436 https://news.ycombinator.com/item?id=26922244#26923436 for an example. It works in Chromium.