You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<pclass=p-summarydata-fill-with=abstract>CSS Masking provides two means for partially or fully hiding portions of visual elements: masking and clipping.</p>
91
+
<pclass=p-summarydata-fill-with=abstract><p>CSS Masking provides two means for partially or fully hiding portions of visual elements: masking and clipping.</p>
92
+
93
+
94
+
95
+
<p>Masking describes how to use another graphical element or image as a luminance or alpha mask. Typically, rendering an element via CSS or SVG can conceptually described as if the element, including its children, are drawn into a buffer and then that buffer is composited into the element’s parent. Luminance and alpha masks influence the transparency of this buffer before the compositing stage.</p>
96
+
97
+
90
98
91
-
<p>Masking describes how to use another graphical element or image as a luminance or alpha mask. Typically, rendering an element via CSS or SVG can conceptually described as if the element, including its children, are drawn into a buffer and then that buffer is composited into the element’s parent. Luminance and alpha masks influence the transparency of this buffer before the compositing stage.
92
-
<p>Clipping describes the visible region of visual elements. The region can be described by using certain SVG graphics elements or basic shapes. Anything outside of this region is not rendered.
99
+
<p>Clipping describes the visible region of visual elements. The region can be described by using certain SVG graphics elements or basic shapes. Anything outside of this region is not rendered.</p>
93
100
94
101
<ahref=http://www.w3.org/TR/CSS/>CSS</a> is a language for describing the rendering of structured documents
<p>If the URI reference is not valid (e.g it points to an object that doesn’t exist or the object is not a <adata-link-type=elementhref=#elementdef-clippathtitle=clippath>clipPath</a> element), no clipping is applied.</p>
401
408
402
409
<divclass=example>
403
-
<p></p>
410
+
<p>This example demonstrates the use of the basic shape <aclass="production css-code" data-link-type=functionhref=http://www.w3.org/TR/css-shapes-1/#funcdef-polygontitle=polygon()><polygon()></a> as clipping path. Each space separated length pair represents one point of the polygon. The visualized clipping path can be seen in the <ahref=#clipping>introduction</a>.</p>
<p>In this example, the <aclass=propertydata-link-type=propdeschref=#propdef-clip-pathtitle=clip-path>clip-path</a> property references an SVG <adata-link-type=elementhref=#elementdef-clippathtitle=clippath>clipPath</a> element. Each comma separated length pair represents one point of the polygon. As for the previous example, the visualized clipping path can be seen in the <ahref=#clipping>introduction</a>.</p>
0 commit comments