{"id":319912,"date":"2020-08-27T14:09:37","date_gmt":"2020-08-27T21:09:37","guid":{"rendered":"https:\/\/css-tricks.com\/?page_id=319912"},"modified":"2022-09-15T16:01:36","modified_gmt":"2022-09-15T23:01:36","slug":"shape-image-threshold","status":"publish","type":"page","link":"https:\/\/css-tricks.com\/almanac\/properties\/s\/shape-image-threshold\/","title":{"rendered":"shape-image-threshold"},"content":{"rendered":"\n

The CSS shape-image-threshold<\/code> property sets which pixels are included in the shape of an image when shape-outside<\/code> is used to define the float area of a CSS element.<\/p>\n\n\n\n

Let’s say we’re using a linear gradient to define the float area of a CSS shape. Something like this where we go from a solid color to transparent at a 45\u00b0 angle:<\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n

Normally, we’d define that as the background-image<\/code> of an element. If we float this element and drop some content next to it, the gradient and content would sit side-by-side.<\/p>\n\n\n\n