Skip to content

Commit ab54f17

Browse files
dirkschulzesvgeesus
authored andcommitted
Add reference box to motion-path syntax
1 parent f4b336c commit ab54f17

2 files changed

Lines changed: 48 additions & 118 deletions

File tree

motion-1/index.bs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ ISSUE: Add more details and examples.
5151

5252
<pre class='propdef'>
5353
Name: motion-path
54-
Value: <<basic-shape>> | <<path()>> | <<url>> | none
54+
Value: <<url>> | [ <<basic-shape>> | <<path()>> ] || <<geometry-box>> | none
5555
Initial: none
5656
Applies to: All elements. In SVG, it applies to <a href="">container elements</a> excluding the <a href="">defs</a> element and all <a href="">graphics elements</a>
5757
Inherited: no
@@ -100,7 +100,9 @@ A reference that fails to download, is not a reference to an SVG <a href="">grap
100100

101101
See the section <a href="#motion-processing">“Motion processing”</a> for how to process a motion path.
102102

103-
ISSUE: Which coordinate system do we use for elements with associated layout box? The canvas boundaries? The viewport boundaries? An element reference box? Do we need to allow keywords to specify this box?
103+
For SVG elements without associated CSS layout box, the <i>used value</i> for <a value for=mask-clip>content-box</a>, <a value for=mask-clip>padding-box</a>, <a value for=mask-clip>border-box</a> and <a value for=mask-clip>margin-box</a> is <a value for=clip-path>fill-box</a>.
104+
105+
For elements with associated CSS layout box, the <i>used value</i> for <a value for=clip-path>fill-box</a>, <a value for=clip-path>stroke-box</a> and <a value for=clip-path>view-box</a> is <a value for=mask-clip>border-box</a>.
104106

105107
<h3 id="motion-position">Position on motion path: The 'motion-position' property</h3>
106108

0 commit comments

Comments
 (0)