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
+29-20Lines changed: 29 additions & 20 deletions
Original file line number
Diff line number
Diff line change
@@ -275,7 +275,11 @@ The example below shows how the 'border-boundary' property works on drawing bord
275
275
<h2 id="positioning-content">Positioning content by using the polar coordinate system</h2>
276
276
277
277
<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.
279
283
</p>
280
284
<p class="note">
281
285
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
297
301
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>'.
298
302
</p>
299
303
<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.
301
307
</p>
302
308
<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.
<p>(B) Deploying elements using polar coordinate system</p>
327
-
</div>
328
336
</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>
331
339
</div>
340
+
332
341
</div>
333
342
334
343
@@ -373,7 +382,7 @@ This example shows a way to align elements within the polar coordinate system.
373
382
</div>
374
383
375
384
<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?
377
386
</p>
378
387
<p class="issue">
379
388
How to position items to the edge of the containing block without overflowing it? (<i>polar-anchor</i> could be suggested)
0 commit comments