Skip to content

Commit caa8b32

Browse files
dirkschulzesvgeesus
authored andcommitted
Remove bounding-box keyword as reference box.
1 parent 48193b9 commit caa8b32

4 files changed

Lines changed: 110 additions & 105 deletions

File tree

css-masking-1/Overview.src.html

Lines changed: 35 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ <h3 id="the-clip-path">Clipping Shape: the 'clip-path' property</h3>
158158

159159
<pre class='propdef'>
160160
Name: clip-path
161-
Value: <<clip-source>> | [ <<basic-shape>> || [ <<shape-box>> | bounding-box] ] | none
161+
Value: <<clip-source>> | [ <<basic-shape>> || <<shape-box>> ] | none
162162
Initial: none
163163
Applies to: All elements. In SVG, it applies to <a>container elements</a> without the <a>'defs'</a> element and all <a>graphics elements</a>
164164
Inherited: no
@@ -182,10 +182,6 @@ <h3 id="the-clip-path">Clipping Shape: the 'clip-path' property</h3>
182182
<p>If specified in combination with a <<basic-shape>> it provides the reference box for the <<basic-shape>>.</p>
183183
<p>If specified by itself, uses the edges of the specified box, including any corner shaping (e.g. defined by 'border-radius' [[!CSS3BG]]), as clipping path. See also <a href="http://www.w3.org/TR/css-shapes/#shapes-from-box-values">“Shapes from box values”</a> [[!CSS-SHAPES]].</p>
184184
</dd>
185-
<dt><dfn dfn-type=value>bounding-box</dfn></dt>
186-
<dd>
187-
The reference box is the <i>bounding client rect</i>. For further definition see <<shape-box>>.
188-
</dd>
189185
<dt>none</dt>
190186
<dd>
191187
No <i>clipping path</i> gets created.
@@ -227,12 +223,20 @@ <h3 id="ClipPathElement">The <a element>clipPath</a> element</h3>
227223
<p><em>Attribute definitions:</em></p>
228224
<dl dfn-type=element-attr dfn-for=clipPath>
229225
<dt>
230-
<dfn element-attr>clipPathUnits</dfn> = "<dfn dfn-type=value dfn-for=clipPathUnits>userSpaceOnUse</dfn> | <dfn dfn-type=value dfn-for=clipPathUnits>objectBoundingBox</dfn>"
226+
<dfn element-attr>clipPathUnits</dfn> = "<a value for=clipPathUnits>userSpaceOnUse</a> | <a value for=clipPathUnits>objectBoundingBox</a>"
231227
</dt>
232228
<dd>
233229
<p>Defines the coordinate system for the contents of the <a element>clipPath</a>.</p>
234-
<p>If <code>clipPathUnits="userSpaceOnUse"</code>, the contents of the <a element>clipPath</a> represent values in the current user coordinate system in place at the time when the <a element>clipPath</a> element is referenced (i.e., the user coordinate system for the element referencing the <a element>clipPath</a> element via the 'clip-path' property).</p>
235-
<p>If <code>clipPathUnits="objectBoundingBox"</code>, then the user coordinate system for the contents of the <a element>clipPath</a> element is established using the bounding box of the element to which the clipping path is applied (see <a>object bounding box units</a>).</p>
230+
<dl>
231+
<dt><dfn dfn-type=value dfn-for=clipPathUnits>userSpaceOnUse</dfn></dt>
232+
<dd>
233+
<p>The contents of the <a element>clipPath</a> represent values in the current user coordinate system in place at the time when the <a element>clipPath</a> element is referenced (i.e., the user coordinate system for the element referencing the <a element>clipPath</a> element via the 'clip-path' property).</p>
234+
</dd>
235+
<dt><dfn dfn-type=value dfn-for=clipPathUnits>objectBoundingBox</dfn></dt>
236+
<dd>
237+
<p>The user coordinate system for the contents of the <a element>clipPath</a> element is established using the bounding box of the element to which the clipping path is applied (see <a>object bounding box units</a>).</p>
238+
</dd>
239+
</dt>
236240
<p>If attribute <a element-attr>clipPathUnits</a> is not specified, then the effect is as if a value of <a value for=clipPathUnits>userSpaceOnUse</a> were specified.</p>
237241
<p>Animatable: yes.</p>
238242
</dd>
@@ -522,7 +526,7 @@ <h3 id="the-mask-origin">Positioning Area: the 'mask-origin' property</h3>
522526

523527
<pre class='propdef'>
524528
Name: mask-origin
525-
Value: <<box>> | bounding-box
529+
Value: <<box>>
526530
Initial: border-box
527531
Applies to: All elements. In SVG, it applies to <a>container elements</a> without the <a>'defs'</a> element and all <a>graphics elements</a>
528532
Inherited: no
@@ -546,30 +550,6 @@ <h3 id="the-mask-origin">Positioning Area: the 'mask-origin' property</h3>
546550
<dt><dfn>content-box</dfn>
547551
<dd>
548552
The position is relative to the content box respectively object bounding box [[!SVG11]] for objects without associated layout box.
549-
<dt><dfn>bounding-box</dfn></dt>
550-
<dd>
551-
<p>The position relative to the <i>bounding client rect</i>.</p>
552-
<div class="example">
553-
<p>The <i>bounding client rect</i> includes the border box of the element as well as the border box of the descendants.</p>
554-
<pre><code class=html>&lt;div id="element">
555-
&lt;div id="content">&lt;/div>
556-
&lt;/div></code></pre>
557-
<div class=figure>
558-
<img src="images/bounding-box-overflow.svg" width="241" height="221" alt="Values for rect shape">
559-
<p class=caption>This diagram illustrates an element and an overflowing descendant. The dashed line represents the <i>bounding client rect</i> and covers the element and the descendant.</p>
560-
</div>
561-
</div>
562-
<div class="example">
563-
<p>In this example the descendant is transformed. The <i>bounding client rect</i> includes the transformed border box of the descendant. It does <em>not</em> include any transform on the element.</p>
564-
<pre><code class=css>#content {
565-
transform: translate(50px, 50px);
566-
}</code></pre>
567-
<div class=figure>
568-
<img src="images/bounding-box-transform.svg" width="601" height="258.5" alt="Values for rect shape">
569-
<p class=caption>This diagram illustrates an element and a transformed descendant. The dashed line represents the <i>bounding client rect</i> and covers the element and the descendant.</p>
570-
</div>
571-
</div>
572-
</dd>
573553
</dl>
574554

575555
Note: There is no corresponding box for <a value for=mask-origin>padding-box</a> on objects without associated layout box and <a value for=mask-origin>content-box</a> is chosen instead.
@@ -822,22 +802,38 @@ <h3 id="MaskElement">The <a element>mask</a> element</h3>
822802
<p><em>Attribute definitions:</em></p>
823803
<dl dfn-type="element-attr" dfn-for="mask">
824804
<dt>
825-
<dfn>maskUnits</dfn> = "<dfn dfn-type=value dfn-for=maskUnits>userSpaceOnUse</dfn> | <dfn dfn-type=value dfn-for=maskUnits>objectBoundingBox</dfn>"
805+
<dfn>maskUnits</dfn> = "<a value for=maskUnits>userSpaceOnUse</a> | <a value for=maskUnits>objectBoundingBox</a>"
826806
</dt>
827807
<dd>
828808
<p>Defines the coordinate system for attributes <a element-attr>x</a>, <a element-attr>y</a>, <a element-attr>width</a> and <a element-attr>height</a>.</p>
829-
<p>If <code>maskUnits="userSpaceOnUse"</code>, <a element-attr>x</a>, <a element-attr>y</a>, <a element-attr>width</a> and <a element-attr>height</a> represent values in the current user coordinate system in place at the time when the <a element>mask</a> element is referenced (i.e., the user coordinate system for the element referencing the <a element>mask</a> element via the 'mask' property).</p>
830-
<p>If <code>maskUnits="objectBoundingBox"</code>, <a element-attr>x</a>, <a element-attr>y</a>, <a element-attr>width</a> and <a element-attr>height</a> represent fractions or percentages of the bounding box of the element to which the mask is applied. (See <a>object bounding box units</a>.)</p>
809+
<dl>
810+
<dt><dfn value for=maskUnits>userSpaceOnUse</dfn></dt>
811+
<dd>
812+
<p><a element-attr>x</a>, <a element-attr>y</a>, <a element-attr>width</a> and <a element-attr>height</a> represent values in the current user coordinate system in place at the time when the <a element>mask</a> element is referenced (i.e., the user coordinate system for the element referencing the <a element>mask</a> element via the 'mask' property).</p>
813+
</dd>
814+
<dt><dfn dfn-type=value dfn-for=maskUnits>objectBoundingBox</dfn></dt>
815+
<dd>
816+
<p><a element-attr>x</a>, <a element-attr>y</a>, <a element-attr>width</a> and <a element-attr>height</a> represent fractions or percentages of the bounding box of the element to which the mask is applied. (See <a>object bounding box units</a>.)</p>
817+
</dd>
818+
</dl>
831819
<p>If attribute <a element-attr>maskUnits</a> is not specified, then the effect is as if a value of <a value for=maskUnits>objectBoundingBox</a> were specified.</p>
832820
<p>Animatable: yes.</p>
833821
</dd>
834822
<dt>
835-
<dfn>maskContentUnits</dfn> = "<dfn dfn-type=value dfn-for=maskContentUnits>userSpaceOnUse</dfn> | <dfn dfn-type=value dfn-for=maskContentUnits>objectBoundingBox</dfn>"
823+
<dfn>maskContentUnits</dfn> = "<a value for=maskContentUnits>userSpaceOnUse</a> | <a value for=maskContentUnits>objectBoundingBox</a>"
836824
</dt>
837825
<dd>
838826
<p>Defines the coordinate system for the contents of the <a element>mask</a>.</p>
839-
<p>If <code>maskContentUnits="userSpaceOnUse"</code>, the user coordinate system for the contents of the <a element>mask</a> element is the current user coordinate system in place at the time when the <a element>mask</a> element is referenced (i.e., the user coordinate system for the element referencing the <a element>mask</a> element via the 'mask' property).</p>
840-
<p>If <code>maskContentUnits="objectBoundingBox"</code>, the user coordinate system for the contents of the <a element>mask</a> is established using the bounding box of the element to which the mask is applied. (See <a>object bounding box units</a>.)</p>
827+
<dl>
828+
<dt><dfn dfn-type=value dfn-for=maskContentUnits>userSpaceOnUse</dfn></dt>
829+
<dd>
830+
<p>The user coordinate system for the contents of the <a element>mask</a> element is the current user coordinate system in place at the time when the <a element>mask</a> element is referenced (i.e., the user coordinate system for the element referencing the <a element>mask</a> element via the 'mask' property).</p>
831+
</dd>
832+
<dt><dfn dfn-type=value dfn-for=maskContentUnits>objectBoundingBox</dfn></dt>
833+
<dd>
834+
<p>The user coordinate system for the contents of the <a element>mask</a> is established using the bounding box of the element to which the mask is applied. (See <a>object bounding box units</a>.)</p>
835+
</dd>
836+
</dl>
841837
<p>If attribute <a element-attr>maskContentUnits</a> is not specified, then the effect is as if a value of <a value for=maskContentUnits>userSpaceOnUse</a> were specified.</p>
842838
<p>Animatable: yes.</p>
843839
</dd>

0 commit comments

Comments
 (0)