• Shaarli
  • Tag cloud
  • Picture wall
  • Daily
  • RSS
  • Login
4252 shaares
Filters

The paint order of SVG elements and their stroke and fill is configurable | Stefan Judis Web Development

QRCode

Control the paint order of path and fill using the paint-order presentation attribute or CSS property

In this case, I usually changed the path or width/height of the given element to avoid the stroke going over the filled area too much. But it turns out that you can change the paint order of fill and stroke using paint-order.

The default order is described via the normal value, and it defines that fill will be painted first, then the stroke, and finally the markers. But you can redefine the paint order so that the stroke is not painted over the fill area with stroke fill markers.

https://www.stefanjudis.com/today-i-learned/paint-order-of-svg-elements-is-configurable/
April 11, 2023 at 9:44:57 AM EDT *
svg
FILLER
Shaarli · The personal, minimalist, super fast, database-free, bookmarking service by the Shaarli community · Documentation
Fold Fold all Expand Expand all Are you sure you want to delete this link? Are you sure you want to delete this tag? The personal, minimalist, super fast, database-free, bookmarking service by the Shaarli community