Skip to content

Commit 3277728

Browse files
author
Jihye Hong
committed
[css-round-display] Add issue about positioning elements in conventional coordinate system and polar coordinate system
1 parent 307de68 commit 3277728

3 files changed

Lines changed: 35 additions & 0 deletions

File tree

css-round-display/Overview.bs

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,41 @@ When the 'position' property on an element is set to '<code>polar</code>', the e
294294
<p class="note">
295295
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>'.
296296
</p>
297+
<p class="issue">
298+
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.
299+
</p>
300+
<div class='example'>
301+
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.
302+
<pre>
303+
&lt;body>
304+
&lt;div id="rect1" style="position: absolute; width: 100px; height: 100px; background-color: blue;">&lt;/div>
305+
&lt;div id="rect2" style="position: absolute; width: 50px; height: 50px; background-color: green;">&lt;/div>
306+
&lt;/body>
307+
</pre>
308+
And another example bellow shows the result in Figure 6B.
309+
<pre>
310+
&lt;body>
311+
&lt;div id="rect1" style="position: polar; width: 100px; height: 100px; background-color: blue;">&lt;/div>
312+
&lt;div id="rect2" style="position: polar; width: 50px; height: 50px; background-color: gr een;">&lt;/div>
313+
&lt;/body>
314+
</pre>
315+
</div>
316+
317+
<div style="width: 800px; text-align:center">
318+
<div style="float: left; width: 400px;">
319+
<img style="width: 300px" src="images/polar_positioning_a.png">
320+
<p>(A) Deploying elements using the conventional coordinate system used in the web</p>
321+
</div>
322+
<div style="float: left; width: 400px;">
323+
<img style="width: 300px" src="images/polar_positioning_b.png">
324+
<p>(B) Deploying elements using polar coordinate system</p>
325+
</div>
326+
</div>
327+
328+
<div style="width: 800px">
329+
<p class="caption">Positioning elements in conventional coordinate system and polar coordinate system</p>
330+
</div>
331+
297332
<h3 id="polar-angle-property">The 'polar-angle' property</h3>
298333
The 'polar-angle' property specifies the angle from the Y-axis. This property is activated on condition of position: polar.
299334
<pre class='propdef'>
9.75 KB
Loading
8.32 KB
Loading

0 commit comments

Comments
 (0)