CSS | shape-image-threshold Property
The shape-image-threshold property is used to set the threshold of the alpha channel used to extract the shape when using an image for shape-outside.
- alpha-value: It is used to set the threshold for extracting the shape. The pixels which are greater than the threshold value would be considered for the shape. A decimal value from 0.0 to 1.0 can be used for setting the threshold from fully transparent to fully opaque. If the values are outside the range they are clamped to this range.
Below examples illustrate the shape-image-threshold Property:
Example 1: In this example, we will set the threshold to 0.5
Example 2: In this example, we will set the threshold to 0.2
Supported Browsers: The browsers supported by shape-image-threshold property are listed below:
- Google Chrome 37+
- Edge 79+
- Firefox 62+
- Safari 10.1+
- Opera 24+