Skip to content

Commit

Permalink
Merge pull request #495 from danielsakhapov/move_path_to_basic_shape
Browse files Browse the repository at this point in the history
  • Loading branch information
tabatkins committed Feb 27, 2023
2 parents 9147ed7 + 1b15f84 commit 3224e3f
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions motion-1/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ Defining A Path: The 'offset-path' property {#offset-path-property}

<pre class=propdef>
Name: offset-path
Value: none | <<ray()>> | <<offsetpath-pathfunc/path()>> | <<url>> | [ <<basic-shape>> && <<coord-box>>? ] | <<coord-box>>
Value: none | <<ray()>> | <<url>> | [ <<basic-shape>> && <<coord-box>>? ] | <<coord-box>>
Initial: none
Applies to: <a href="https://drafts.csswg.org/css-transforms-1/#transformable-element">transformable elements</a>
Inherited: no
Expand Down Expand Up @@ -145,6 +145,9 @@ Values have the following meanings:

The <var>initial position</var> for basic shapes are defined as follows:

: <<path()>>
::
The <var>initial position</var> is defined by the first “move to” argument in the path string. For the initial direction follow SVG 1.1 [[!SVG11]].
: <<circle()>>
: <<ellipse()>>
::
Expand Down Expand Up @@ -175,12 +178,6 @@ Values have the following meanings:
immediately to the right of any 'border-radius' arc,
and the <var>initial direction</var> is to the right.

: <dfn for=offsetpath-pathfunc function>path()</dfn> = path( <<string>> )
::
The <<string>> represents an SVG Path data string.
The path data string must be conform to the grammar and parsing rules of SVG 1.1 [[!SVG11]].
The <var>initial position</var> is defined by the first “move to” argument in the path string. For the <var>initial direction</var> follow SVG 1.1 [[!SVG11]].

: <<url>>
::
References an SVG <a>shape element</a> and uses its geometry as <a>offset path</a>.
Expand Down

0 comments on commit 3224e3f

Please sign in to comment.