News for hackers. Stuff that matters.
Re:SVG favicons have some cool benefits by MattIPv4 on Wednesday July 07, 2021 @02:36PM (#27764349)
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

[2] https://svgwg.org/svg2-draft/conform.html#secure-static-mode

Re:SVG favicons have some cool benefits by chrismorgan on Wednesday July 07, 2021 @03:58PM (#27765131)
Secure 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.

See https://news.ycombinator.com/item?id=26922244#26923436 for an example. It works in Chromium.