{"id":321460,"date":"2020-09-18T15:35:19","date_gmt":"2020-09-18T22:35:19","guid":{"rendered":"https:\/\/css-tricks.com\/?page_id=321460"},"modified":"2020-09-23T16:53:11","modified_gmt":"2020-09-23T23:53:11","slug":"paint-order","status":"publish","type":"page","link":"https:\/\/css-tricks.com\/almanac\/properties\/p\/paint-order\/","title":{"rendered":"paint-order"},"content":{"rendered":"\n

The CSS paint-order<\/code> property sets the order that SVG shapes and text are drawn, including the fill, stroke, and any markers that might be in use. By default, those attributes are drawn in that very order: fill, stroke, and markers. This property allows us to switch it up so we have more control over the resulting appearance.<\/p>\n\n\n\n\n\n\n\n

Where this property really shines is with SVG text, particularly a <text><\/code> element that has both a fill and a stroke. Like this:<\/p>\n\n\n\n