News for hackers. Stuff that matters.
Re:CSS in GitHub Readmes by kevin_thibedeau on Tuesday December 08, 2020 @06:09PM (#25352826)
SVGs can also be referenced with object tags at which part they become part of the DOM. This is required if you want SVGs with embedded hyperlinks to work.
Re:CSS in GitHub Readmes by SahAssar on Tuesday December 08, 2020 @06:15PM (#25352899)
Yeah, my point was having them as a11y objects in img tags, which is how they have to be used within the github readmes. felixfbecker's parent comment talked about object/iframes for SVG's.
Re:CSS in GitHub Readmes by felixfbecker on Wednesday December 09, 2020 @06:44AM (#25357616)
That will run scripts inside the SVG though. <iframe> can be set to disallow that using `sandbox` and/or `csp`.