Get the latest tech news

SVG Triangle of Compromise


All rituals restricted. All rites reserved.

Stylable: can be colored with CSS (including foreground, background,:hover states, etc) Cacheable: load once, use on other pages is free Dimensional: has an intrinsic width and height An SVG defined this way has another advantage: it can use the currentColor value for its fill and stroke properties, which means that it will automatically inherit the text finder color of its parent element. It's too bad that an inline<svg> cannot be cached, because it would be nice to be able to style logos and icons with CSS, and those are the things that are most likely to be repeated on multiple pages.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of compromise

compromise

Photo of SVG

SVG

Photo of SVG Triangle

SVG Triangle

Related news:

News photo

SVG: The Good, the Bad, and the Ugly (2021)

News photo

Show HN: I made first declaritive SVG,canvas framework

News photo

Morphing Arbitrary Paths in SVG