Skip to content

Commit 3c15840

Browse files
author
Jihye Hong
committed
[css-round-display] Modify Example5 and split paragraphs to read better
1 parent 5160da4 commit 3c15840

1 file changed

Lines changed: 29 additions & 20 deletions

File tree

css-round-display/Overview.bs

Lines changed: 29 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,11 @@ The example below shows how the 'border-boundary' property works on drawing bord
275275
<h2 id="positioning-content">Positioning content by using the polar coordinate system</h2>
276276

277277
<p>
278-
Polar coordinate system is a two-dimensional coordinate system that describes the position of a point in a plane with a distance from a reference point and an angle from a reference direction. Elements could be placed along a circle or concentric circles, and the polar coordinate system is useful to handle such cases. This section introduces polar positioning to support layout of elements in the polar coordinate system where the position of an element is determined by a distance from the center point within the containing element and an angle from the Y-axis. We add '<code>polar</code>' to the value of the 'position' property to support the polar coordinates of an element itself. The 'polar-angle' and 'polar-distance' properties specify the position of an element.
278+
Polar coordinate system is a two-dimensional coordinate system that describes the position of a point in a plane with a distance from a reference point and an angle from a reference direction. Elements could be placed along a circle or concentric circles, and the polar coordinate system is useful to handle such cases.
279+
280+
This section introduces polar positioning to support layout of elements in the polar coordinate system where the position of an element is determined by a distance from the center point within the containing element and an angle from the Y-axis.
281+
282+
We add '<code>polar</code>' to the value of the 'position' property to support the polar coordinates of an element itself. The 'polar-angle' and 'polar-distance' properties specify the position of an element.
279283
</p>
280284
<p class="note">
281285
Note: In the polar coordinate system, a point is described as being a certain distance from the pole and a certain angle from the polar axis. In the 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 'polar-angle' value of an element is 0, the element is positioned on the y-axis. If the angle value of an element increases in the positive direction from 0, the element moves clockwise. The method to determine a direction using 'polar-angle' works the same way in [[CSS-VALUES]], <<angle>> value.
@@ -297,38 +301,43 @@ When the 'position' property on an element is set to '<code>polar</code>', the e
297301
Note: The center point of the containing block of an element indicates the origin of polar coordinate when the value of position property of the element is '<code>polar</code>'.
298302
</p>
299303
<p>
300-
In conventional coordinate system used in the web, the origin is positioned in the upper left corner of a containing block. In comparison, the origin of polar coordinates is the center point of a containing block. Therefore different methods are required to deploy and transform elements, or set margin/padding values when using polar coordinates. An example as below shows the difference between the conventional coordinates and the polar coordinates when positioning elements.
304+
In conventional coordinate system used in the web, the origin is positioned in the upper left corner of a containing block. In comparison, the origin of polar coordinates is the center point of a containing block. Therefore different methods are required to deploy and transform elements, or set margin/padding values when using polar coordinates.
305+
306+
An example as below shows the difference between the conventional coordinates and the polar coordinates when positioning elements.
301307
</p>
302308
<div class='example'>
303-
The examples below show the difference between conventional coordinate system in web and polar coordinate system when positioning elements. The result of following example is Figure 6A.
309+
The codes below show the difference between conventional coordinate system in the web and polar coordinate system when positioning elements.
310+
311+
Figure 6A might be the result of
304312
<pre>
305313
&lt;body>
306-
&lt;div id="rect1" style="position: absolute; width: 100px; height: 100px; background-color: blue;">&lt;/div>
307-
&lt;div id="rect2" style="position: absolute; width: 50px; height: 50px; background-color: green;">&lt;/div>
314+
&lt;div style="position: absolute; width: 100px; height: 100px; background-color: blue;">&lt;/div>
315+
&lt;div style="position: absolute; width: 50px; height: 50px; background-color: green;">&lt;/div>
308316
&lt;/body>
309317
</pre>
310-
Another example bellow shows the result in Figure 6B.
318+
Figure 6B might be the result of
311319
<pre>
312320
&lt;body>
313-
&lt;div id="rect1" style="position: polar; width: 100px; height: 100px; background-color: blue;">&lt;/div>
314-
&lt;div id="rect2" style="position: polar; width: 50px; height: 50px;
315-
background-color: green;">&lt;/div>
321+
&lt;div style="position: polar; width: 100px; height: 100px; background-color: blue;">&lt;/div>
322+
&lt;div style="position: polar; width: 50px; height: 50px; background-color: green;">&lt;/div>
316323
&lt;/body>
317324
</pre>
325+
318326
<br />
319-
<div style="width: 600px; text-align:center">
320-
<div style="float: left; width: 300px;">
321-
<img style="width: 250px" src="images/polar_positioning_a.png">
322-
<p>(A) Deploying elements using the conventional coordinate system used in the web</p>
327+
<div style="width: 700px; text-align:center">
328+
<div style="float: left; width: 350px;">
329+
<img style="width: 300px" src="images/polar_positioning_a.png">
330+
<p>(A) With 'position: <code>absolute</code>'</p>
331+
</div>
332+
<div style="float: left; width: 350px; ">
333+
<img style="width: 300px" src="images/polar_positioning_b.png">
334+
<p>(B) With 'position: <code>polar</code>'</p>
323335
</div>
324-
<div style="float: left; width: 300px;">
325-
<img style="width: 250px" src="images/polar_positioning_b.png">
326-
<p>(B) Deploying elements using polar coordinate system</p>
327-
</div>
328336
</div>
329-
<div style="width: 600px">
330-
<p class="caption">Positioning elements in conventional coordinate system and polar coordinate system</p>
337+
<div style="width: 700px">
338+
<p class="caption">Positioning elements in conventional coordinate system and polar coordinate system</p>
331339
</div>
340+
332341
</div>
333342

334343

@@ -373,7 +382,7 @@ This example shows a way to align elements within the polar coordinate system.
373382
</div>
374383

375384
<p class="issue">
376-
Is new property needed to support for rotating the element itself?
385+
How to rotate the element itself with an axis from the element position to the central point of containing block? Is new property needed to support that at one time in polar coordinate system?
377386
</p>
378387
<p class="issue">
379388
How to position items to the edge of the containing block without overflowing it? (<i>polar-anchor</i> could be suggested)

0 commit comments

Comments
 (0)