Skip to content

Commit b8c3b33

Browse files
committed
[css-round-display] Correct overall mistakes
1 parent a45d2d0 commit b8c3b33

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

css-round-display/Overview.bs

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Everything on the web is a rectangle. For example, the window content area in a
2222
In order to facilitate the use of the web on a round display, we need to rethink existing CSS features.
2323
</p>
2424
<p>
25-
Current user agents are not capable of detecting the shape of a display so that authors cannot apply a different layout for a round display. To resolve the issue, we add the 'device-radius' media feature to Media Queries. The feature informs the web page of the property regarding the shape of the display.
25+
Current user agents are not capable of detecting the shape of a display so that authors cannot apply different layouts for a round display. To resolve the issue, we add the 'device-radius' media feature to Media Queries. The feature informs the web page of the property regarding the shape of the display.
2626
</p>
2727
<p>
2828
To apply the shape of a display to content area, we extend the 'shape-inside' property of CSS Shapes. We also add the 'border-boundary' property to CSS Borders and introduce polar positioning for a better web design suitable for a round display.
@@ -51,7 +51,7 @@ This media query indicates that different style sheets will be applied depending
5151
&lt;link media="screen and (device-radius: 50%)" rel="stylesheet" href="round.css" />
5252
</pre>
5353
<p>
54-
By the mechanism of media queries, if the value of the 'device-radius' media feature is less than or equal to 49%, '<code>rectangle.css</code>' is applied. If it is 50%, '<code>round.css</code>' is applied.
54+
By the mechanism of media queries, if the value of the 'device-radius' media feature is less than 50%, '<code>rectangle.css</code>' is applied. If it is 50%, '<code>round.css</code>' is applied.
5555
</p>
5656
</div>
5757
<p>As in the '<code>border-radius</code>' property, the 'device-radius' media feature can describe various round shapes of displays, such as rectangle, regular circle, ellipse, and rectangle with round corners.
@@ -64,14 +64,14 @@ By the mechanism of media queries, if the value of the 'device-radius' media fea
6464
Percentage: Refer to corresponding dimension of the display
6565
</pre>
6666
<p class="note">
67-
Note: To define a '<code>range</code>' type media feature, the feature may be written as a normal media feature, but with a '<code>min-</code>' or '<code>max-</code>' prefix on the feature name. '<code>min-</code>' or '<code>max-</code>' prefixes express 'greater or equal to' or 'smaller or equal to' constriants respectively.
67+
Note: To define a '<code>range</code>' type media feature, the feature may be written as a normal media feature, but with a '<code>min-</code>' or '<code>max-</code>' prefix on the feature name. '<code>min-</code>' or '<code>max-</code>' prefixes express 'greater or equal to' or 'smaller or equal to' constraints respectively.
6868
</p>
6969
<p>
70-
The length or percentage value of the '<code>device-radius</code>' property defines a radius of a quarter ellipse in terms of the shape of the corner of the outer screen edge (This is similar to the '<code>border-radius</code>' properties. see the 'border-radius' description). If the length is zero the shape of screen is a rectangle, otherwise it is a rectangle with rounded corners or a regular circle. A percentage value of the '<code>device-radius</code>' is proportional to the diameter of the screen. If the screen shape is the regular circle, '<code>device-radius</code>': 50% has a true value, because a half of the diameter of the regular circle is the radius of the screen shape. An negative value is not allowed.
70+
The length or percentage value of the '<code>device-radius</code>' property defines a radius of a quarter ellipse in terms of the shape of the corner of the outer screen edge (This is similar to the '<code>border-radius</code>' property. See the 'border-radius' description). If the length is zero, the shape of screen is a rectangle, otherwise it is a rectangle with rounded corners or a regular circle. A percentage value of the '<code>device-radius</code>' is proportional to the diameter of the screen. If the screen shape is the regular circle, '<code>device-radius</code>': 50% has a true value, because a half of the diameter of the regular circle is the radius of the screen shape. A negative value is not allowed.
7171
</p>
7272

7373
<div class='example'>
74-
The example below shows how a web page looks in the different shape of displays. This is a simple clock written in HTML. (without 'device-radius')
74+
The example below shows how a web page looks in the different shapes of displays. This is a simple clock written in HTML. (without 'device-radius')
7575
<pre>&lt;!DOCTYPE html>
7676

7777
&lt;html>
@@ -103,7 +103,7 @@ The example below shows how a web page looks in the different shape of displays.
103103
<div style="width: 700px">
104104
<p class="caption">Devices where the 'device-radius' media feature is not applicable</p>
105105
</div>
106-
On the other hand, the example below shows how the 'device-radius' media feature works in the different shape of displays. This is the same as the code above except of media queries usage. The 'device-radius' media feature can be used as follows:
106+
On the other hand, the example below shows how the 'device-radius' media feature works in the different shapes of displays. This is the same as the code above except of media queries usage. The 'device-radius' media feature can be used as follows:
107107
<pre>&lt;!-- index.html -->
108108

109109
&lt;head>
@@ -138,16 +138,16 @@ If this example code is loaded in a regular round display, '<code>round.css</cod
138138
<p class="caption">Devices where the 'device-radius' media feature is applicable</p>
139139
</div>
140140
</div>
141-
<p class="note">Note: If the shapes of displays are various, such as polygons, we need to extend the media features more with additional parameters. The current features have limitations to support the diversity beyond round shapes. How can we express star-shaped polygons? (E.g., SVG syntax, etc.) Of course, there is a trade-off between simplicity and expressiveness.
141+
<p class="note">Note: If the shapes of displays are various, such as polygons, we need to extend the media features more with additional parameters. The current features have limitations to support the diversity beyond round shapes. How can we express star-shaped polygons? (e.g. SVG syntax, etc.) Of course, there is a trade-off between simplicity and expressiveness.
142142
</p>
143143
<p class="issue">
144-
Using 'device-radius' with just a single value (e.g., device-radius: 50%) is enough (for simplicity)? Otherwise, do we need to support all possible values the same as 'border-radius'?
144+
Using 'device-radius' with just a single value (e.g. device-radius: 50%) is enough (for simplicity)? Otherwise, do we need to support all possible values the same as 'border-radius'?
145145
</p>
146146

147147
<h2 id="aligning-content">Aligning content along the display border</h2>
148148
<h3 id="shape-inside-property">The 'shape-inside' property</h3>
149149
<p>
150-
CSS Shapes [[CSS-SHAPES]] define the 'shape-inside' property that aligns contents along a possibly non-rectangular wrapping area. Web authors may use this feature to fit contents inside a round display. However, it could sometimes be hard to specify the wrapping area identical to the shape of a display. Thus, we add a new value '<code>display</code>' to the 'shape-inside' property to facilitate it. When the 'shape-inside' property on an element is set to '<code>display</code>', its content (or contained element) is aligned along the display border automatically.
150+
CSS Shapes [[CSS-SHAPES]] define the 'shape-inside' property that aligns contents along the edge of a possibly non-rectangular wrapping area. Web authors may use this feature to fit contents inside a round display. However, it could sometimes be hard to specify the wrapping area identical to the shape of a display. Thus, we add a new value '<code>display</code>' to the 'shape-inside' property to facilitate it. When the 'shape-inside' property on an element is set to '<code>display</code>', its content (or contained element) is aligned along the display border automatically.
151151
</p>
152152
<pre class='link-defaults'>
153153
spec:css21; type:type; text:<uri>
@@ -201,10 +201,10 @@ The example below shows how the 'shape-inside' property works when it is set to
201201
</div>
202202
</div>
203203
<p>
204-
Even though the shape of the rounded display could be described by circle() or ellipse() as basic-shape, 'shape-inside: display' is useful that authors make contents to be aligned within the display edge conveniently. In case of complicated shaped displays like curved, stelliform, or polygonal shape, the availability of 'shape-inside: display' is more increased in comparison with a simple shaped display (e.g., regular rounded display).
204+
Even though the shape of the rounded display could be described by circle() or ellipse() as <<basic-shape>>, 'shape-inside: display' is useful that authors make contents to be aligned within the display edge conveniently. In case of complicated shaped displays like curved, stelliform, or polygonal shape, the availability of 'shape-inside: display' is more increased in comparison with a simple shaped display (e.g. regular rounded display).
205205
</p>
206206
<p>
207-
When the containing block is placed on one end of the display and the block has 'shape-inside: display', The descendants of the containing block are basically put on the overlapping region between the containing block and the display area. The overlapping region's shape is mostly complicated shape, so it's difficult to define the shape using previous method like basic-shape. The figure 4 describes these circumstances as follows.
207+
When a containing block is placed on one end of the display and the containing block has 'shape-inside: display', the descendant blocks of the containing block are basically put on the overlapping region between the containing block and the display area. The overlapping region's shape is mostly complicated shape, so it's difficult to define the shape using previous method like basic-shape. The figure 4 describes these circumstances as follows.
208208
</p>
209209
<div style="width: 500px;">
210210
<img style="width: 500px" src="images/ex3.png">
@@ -267,7 +267,7 @@ The example below shows how the 'border-boundary' property works on drawing bord
267267
<div style="width: 600px">
268268
<p class="caption">Align the content along the display border</p>
269269
</div>
270-
<p class="note">Note: If the value of 'border-boundary' is parent or display, the border lines of a element are actually just a visual effect. It triggers a layout for rendering in a general way, but in the above cases(border-boundary: parent|display), the layout doesn't occurs and it only draws inward from the containing block's borders. With this situation, the borders might hide contents around the display edge.
270+
<p class="note">Note: If the value of 'border-boundary' is parent or display, border lines of the element are actually just a visual effect. It triggers a layout for rendering in a general way, but in the above cases (border-boundary: parent|display), the layout doesn't occur and it only draws the border lines inward from the containing block's borders. With this situation, the borders might hide contents around the display edge.
271271
</p>
272272

273273
<h2 id="positioning-content">Positioning content by using the polar coordinate system</h2>
@@ -317,7 +317,7 @@ The 'polar-distance' property specifies the distance from the center of the pare
317317
</pre>
318318

319319
<div class='example'>
320-
This example shows a way to align elements within the polar coordinates system.
320+
This example shows a way to align elements within the polar coordinate system.
321321
<pre>&lt;body>
322322

323323
&lt;div id="circle1" style="position: polar; polar-angle: 0deg; polar-distance: 50%">&lt;/div>
@@ -333,7 +333,7 @@ This example shows a way to align elements within the polar coordinates system.
333333
</div>
334334

335335
<p class="issue">
336-
By default, the 'polar-distance' property specifies the distance from the origin (or the center) of the containing element to that of the contained element. It needs to specify how can the origin of the containing element set.
336+
By default, the 'polar-distance' property specifies the distance from the origin (or the center) of the containing element to that of the contained element. It needs to specify how the origin of the containing element can be set.
337337
</p>
338338
<p class="issue">
339339
What value does the percentage value of the 'polar-distance' property refer to? The width of the containing element, or what? One feasible solution is to use the distance between the origin and the point on the border at the angle given by the 'polar-angle' property from the X-axis.

0 commit comments

Comments
 (0)