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
Copy file name to clipboardExpand all lines: css-round-display/Overview.bs
+15-15Lines changed: 15 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -393,7 +393,7 @@ The example below shows how the 'border-boundary' property works on drawing bord
393
393
<h2 id="positioning-content">Position the element along the path</h2>
394
394
This section introduces specifying a path and positioning the element along it.
395
395
396
-
A path can be defined with 'offset-path' and 'offset-origin'. The position of the element on the path is computed by the value of 'offset-distance' and 'offset-anchor'.
396
+
A path can be defined with 'offset-path' and 'offset-position'. The position of the element on the path is computed by the value of 'offset-distance' and 'offset-anchor'.
397
397
398
398
<h3 id="offset-path-property">Define the path: The 'offset-path' property</h3>
399
399
@@ -408,14 +408,14 @@ A path can be defined with 'offset-path' and 'offset-origin'. The position of th
408
408
Animatable: as specified for <a href="https://www.w3.org/TR/css3-transitions/#animatable-types">angle</a>, otherwise no
409
409
</pre>
410
410
411
-
Specifies the <a>path</a> the element gets positioned at. The exact element’s position on the path is determined by the 'offset-distance' property. A <dfn>path</dfn> is either a specified path with one or multiple sub-paths or the geometry of a not styled basic shape. Each shape or path must define an <dfn>initial position</dfn> for the computed value of "0" for 'offset-distance' or the position specified by 'offset-origin'. An <dfn>initial direction</dfn> which specifies the rotation of the object on the initial position.
411
+
Specifies the <a>path</a> the element gets positioned at. The exact element’s position on the path is determined by the 'offset-distance' property. A <dfn>path</dfn> is either a specified path with one or multiple sub-paths or the geometry of a not styled basic shape. Each shape or path must define an <dfn>initial position</dfn> for the computed value of "0" for 'offset-distance' or the position specified by 'offset-position'. An <dfn>initial direction</dfn> which specifies the rotation of the object on the initial position.
412
412
413
413
Values have the following meanings:
414
414
415
415
<dl dfn-for="offset-path">
416
416
<dt><<angle>></dt>
417
417
<dd>
418
-
The path is a straight line that has the degree of the angle as specified in <<angle>> from the Y-axis. The initial position of the path is defined by 'offset-origin' and the end point of the path is on the edge of the containing block.
418
+
The path is a straight line that has the degree of the angle as specified in <<angle>> from the Y-axis. The initial position of the path is defined by 'offset-position' and the end point of the path is on the edge of the containing block.
419
419
420
420
<p class="note">Note: Defining the path with <<angle>>, the element can be positioned in the polar coordinate system. In polar coordinates, a pole is the reference point and points are described as been a certain distance from it, as also a certain angle from the polar axis. In mathematical theory, the polar axis is commonly defined as the positive direction of the x-axis, but we consider the polar axis as the positive direction of the y-axis position as other CSS specifications usually do. Therefore, when the <<angle>> value of 'offset-path' is 0, the element is positioned on the y-axis. If the <<angle>> value increases in the positive direction from 0, the element moves clockwise. The method to determine a direction using the <<angle>> value for 'offset-path' works the same way in [[!CSS3VAL]], <<angle>> value.</p>
421
421
</dd>
@@ -454,9 +454,9 @@ For SVG elements without associated CSS layout box, the <a>used value</a> for <a
454
454
455
455
For elements with associated CSS layout box, the <a>used value</a> 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>.
456
456
457
-
<h3 id="offset-origin-property">Define the starting point of the path: The 'offset-origin' property</h3>
457
+
<h3 id="offset-position-property">Define the starting point of the path: The 'offset-position' property</h3>
458
458
<pre class='propdef'>
459
-
Name: offset-origin
459
+
Name: offset-position
460
460
Applies to: all elements
461
461
Value: auto | <<position>>
462
462
Initial: auto
@@ -473,7 +473,7 @@ Values are defined as follows:
473
473
<dl>
474
474
<dt><var>'auto'</var></dt>
475
475
<dd>
476
-
Computes to '50% 50%'('center') if the value for 'offset-path' is specified with <<angle>> and the element is positioned in polar coordinates. In polar coordinates, there are many use cases specifying the position of the origin at the center point of the containing block. Therefore the element is positioned to the horizontally and vertically center in the area of the containing block when auto is given to the 'offset-origin'.
476
+
Computes to '50% 50%'('center') if the value for 'offset-path' is specified with <<angle>> and the element is positioned in polar coordinates. In polar coordinates, there are many use cases specifying the position of the origin at the center point of the containing block. Therefore the element is positioned to the horizontally and vertically center in the area of the containing block when auto is given to the 'offset-position'.
477
477
But the other value types for 'offset-path', it computes to '0% 0%' because 'offset-path' also specifies the initial position.
478
478
</dd>
479
479
</dl>
@@ -593,7 +593,7 @@ Values are defined as follows:
593
593
See the section Motion processing for how to process a motion position.
594
594
595
595
<div class='example'>
596
-
This example shows a way to align elements within the polar coordinate system using 'offset-path', 'offset-distance' and 'offset-origin'.
596
+
This example shows a way to align elements within the polar coordinate system using 'offset-path', 'offset-distance' and 'offset-position'.
597
597
598
598
<pre class="lang-html">
599
599
<body>
@@ -605,17 +605,17 @@ See the section Motion processing for how to process a motion position.
605
605
#circle1 {
606
606
offset-path: 0deg;
607
607
offset-distance: 50%;
608
-
offset-origin: 50% 50%;
608
+
offset-position: 50% 50%;
609
609
}
610
610
#circle2 {
611
611
offset-path: 90deg;
612
612
offset-distance: 20%;
613
-
offset-origin: 50% 50%;
613
+
offset-position: 50% 50%;
614
614
}
615
615
#circle3 {
616
616
offset-path: 225deg;
617
617
offset-distance: 100%;
618
-
offset-origin: 50% 50%;
618
+
offset-position: 50% 50%;
619
619
}
620
620
</style>
621
621
</pre>
@@ -632,8 +632,8 @@ See the section Motion processing for how to process a motion position.
0 commit comments