Skip to content

Commit 0e2cd7f

Browse files
committed
Update 'shape-inside: display' description
1 parent 14b7ae3 commit 0e2cd7f

1 file changed

Lines changed: 15 additions & 13 deletions

File tree

css-round-display/Overview.bs

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ 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' constriants respectively.
6868
</p>
6969
<p>
7070
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.
@@ -141,7 +141,7 @@ If this example code is loaded in a regular round display, '<code>round.css</cod
141141
</div>
142142
</div>
143143

144-
<p class="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.
144+
<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.
145145
</p>
146146

147147
<p class="issue">
@@ -189,20 +189,22 @@ The example below shows how the 'shape-inside' property works when it is set to
189189
&lt;/p>
190190
&lt;/div>
191191
</pre>
192-
</div>
193-
<div style="width: 500px; height: 380px; text-align:center">
194-
<div style="float: left; width: 250px;">
195-
<img style="width: 250px" src="images/watch_b.png">
196-
<p>(A) Without '<code>shape-inside</code>'</p>
192+
<div style="width: 500px; height: 380px; text-align:center">
193+
<div style="float: left; width: 230px;">
194+
<img style="width: 230px" src="images/watch_b.png">
195+
<p>(A) Without '<code>shape-inside</code>'</p>
196+
</div>
197+
<div style="float: left; width: 230px;">
198+
<img style="width: 230px" src="images/watch_c.png">
199+
<p>(B) With '<code>shape-inside: display</code>'</p>
200+
</div>
197201
</div>
198-
<div style="float: left; width: 250px;">
199-
<img style="width: 250px" src="images/watch_c.png">
200-
<p>(B) With '<code>shape-inside: display</code>'</p>
202+
<div style="width: 500px">
203+
<p class="caption">Align the content along the display border</p>
201204
</div>
202205
</div>
203-
<div style="width: 500px">
204-
<p class="caption">Align the content along the display border</p>
205-
</div>
206+
Even though the shape of a rounded display could be described by circle() or ellipse() in <basic-shape>, 'shape-inside: display' is useful that authors make contents to be aligned within the display edge conveniently. In case complicated shaped display like curved, stelliform, or polygonal shape, The availability of 'shape-inside: display' is more increased in comparison with a simple shaped display.
207+
When the containing block is placed on one end of the display and the block has 'shape-inside: display', The descendants of 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 follow.
206208
<div style="width: 500px;">
207209
<img style="width: 500px" src="images/ex3.png">
208210
<p class="caption">Align a part of the content along the display border</p>

0 commit comments

Comments
 (0)