Skip to content

Commit 2852446

Browse files
author
Jihye Hong
committed
[css-round-display] Fix some error in code examples
1 parent fa550aa commit 2852446

File tree

2 files changed

+45
-45
lines changed

2 files changed

+45
-45
lines changed

css-round-display/Overview.bs

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ The example below shows how the 'border-boundary' property works on drawing bord
393393
<h2 id="positioning-content">Position the element along the path</h2>
394394
This section introduces specifying a path and positioning the element along it.
395395

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'.
397397

398398
<h3 id="offset-path-property">Define the path: The 'offset-path' property</h3>
399399

@@ -408,14 +408,14 @@ A path can be defined with 'offset-path' and 'offset-origin'. The position of th
408408
Animatable: as specified for <a href="https://www.w3.org/TR/css3-transitions/#animatable-types">angle</a>, otherwise no
409409
</pre>
410410

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.
412412

413413
Values have the following meanings:
414414

415415
<dl dfn-for="offset-path">
416416
<dt><<angle>></dt>
417417
<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.
419419

420420
<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>
421421
</dd>
@@ -454,9 +454,9 @@ For SVG elements without associated CSS layout box, the <a>used value</a> for <a
454454

455455
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>.
456456

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>
458458
<pre class='propdef'>
459-
Name: offset-origin
459+
Name: offset-position
460460
Applies to: all elements
461461
Value: auto | <<position>>
462462
Initial: auto
@@ -473,7 +473,7 @@ Values are defined as follows:
473473
<dl>
474474
<dt><var>'auto'</var></dt>
475475
<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'.
477477
But the other value types for 'offset-path', it computes to '0% 0%' because 'offset-path' also specifies the initial position.
478478
</dd>
479479
</dl>
@@ -593,7 +593,7 @@ Values are defined as follows:
593593
See the section Motion processing for how to process a motion position.
594594

595595
<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'.
597597

598598
<pre class="lang-html">
599599
&lt;body>
@@ -605,17 +605,17 @@ See the section Motion processing for how to process a motion position.
605605
#circle1 {
606606
offset-path: 0deg;
607607
offset-distance: 50%;
608-
offset-origin: 50% 50%;
608+
offset-position: 50% 50%;
609609
}
610610
#circle2 {
611611
offset-path: 90deg;
612612
offset-distance: 20%;
613-
offset-origin: 50% 50%;
613+
offset-position: 50% 50%;
614614
}
615615
#circle3 {
616616
offset-path: 225deg;
617617
offset-distance: 100%;
618-
offset-origin: 50% 50%;
618+
offset-position: 50% 50%;
619619
}
620620
&lt;/style>
621621
</pre>
@@ -632,8 +632,8 @@ See the section Motion processing for how to process a motion position.
632632

633633
<pre class="lang-html">
634634
&lt;body>
635-
&lt;div style="offset-path: 45deg; offset-distance: 100%"&lt;/div>
636-
&lt;div style="offset-path: 180deg; offset-distance: 100%"&lt;/div>
635+
&lt;div style="offset-path: 45deg; offset-distance: 100%">&lt;/div>
636+
&lt;div style="offset-path: 180deg; offset-distance: 100%">&lt;/div>
637637
&lt;/body>
638638
</pre>
639639
<div class=figure>
@@ -647,8 +647,8 @@ See the section Motion processing for how to process a motion position.
647647

648648
<pre class="lang-html">
649649
&lt;body>
650-
&lt;div style="offset-path: 45deg; offset-distance: 100% contain"&lt;/div>
651-
&lt;div style="offset-path: 180deg; offset-distance: 100% contain"&lt;/div>
650+
&lt;div style="offset-path: 45deg; offset-distance: 100% contain">&lt;/div>
651+
&lt;div style="offset-path: 180deg; offset-distance: 100% contain">&lt;/div>
652652
&lt;/body>
653653
</pre>
654654
<div class=figure>
@@ -678,7 +678,7 @@ Values have the following meanings:
678678
<dl>
679679
<dt><var>'auto'</var></dt>
680680
<dd>
681-
Computes to the value from 'offset-origin'. When 'auto' is given to 'offset-anchor', 'offset-origin' behaves similar to 'background-position'.
681+
Computes to the value from 'offset-position'. When 'auto' is given to 'offset-anchor', 'offset-position' behaves similar to 'background-position'.
682682
</dd>
683683

684684
<dt><<position>></dt>

0 commit comments

Comments
 (0)