Skip to content

Commit 981db8d

Browse files
committed
Update border-boundary's note
1 parent 6fda9cc commit 981db8d

1 file changed

Lines changed: 5 additions & 10 deletions

File tree

css-round-display/Overview.bs

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,6 @@ 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-
107106
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:
108107
<pre>&lt;!-- index.html -->
109108

@@ -113,7 +112,6 @@ On the other hand, the example below shows how the 'device-radius' media feature
113112
&lt;/head>
114113
</pre>
115114
If this example code is loaded in a regular round display, '<code>round.css</code>' will be applied by the media queries mechanism. To render the clock properly, '<code>round.css</code>' could be written as follows.
116-
117115
<pre>
118116
#clockLayer {
119117
border-radius: 50%;
@@ -140,16 +138,12 @@ If this example code is loaded in a regular round display, '<code>round.css</cod
140138
<p class="caption">Devices where the 'device-radius' media feature is applicable</p>
141139
</div>
142140
</div>
143-
144141
<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.
145142
</p>
146-
147143
<p class="issue">
148144
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'?
149145
</p>
150146

151-
152-
153147
<h2 id="aligning-content">Aligning content along the display border</h2>
154148
<h3 id="shape-inside-property">The 'shape-inside' property</h3>
155149
<p>
@@ -169,7 +163,7 @@ spec:css21; type:type; text:<uri>
169163
Animatable: as specified for <<basic-shape>>, otherwise no
170164
</pre>
171165
<p>
172-
The example below shows how the 'shape-inside' property works when it is set to '<code>display</code>'. Without using Mediaqueries, contents can be aligned within the display edge.
166+
The example below shows how the 'shape-inside' property works when it is set to '<code>display</code>'. Without using Media Queries, contents can be aligned within the display edge automatically.
173167
</p>
174168
<div class='example'>
175169
<pre>&lt;style>
@@ -216,7 +210,6 @@ When the containing block is placed on one end of the display and the block has
216210
<img style="width: 500px" src="images/ex3.png">
217211
<p class="caption">Align a part of the content along the display border</p>
218212
</div>
219-
220213
<p class="issue">
221214
What if content overflows? Clipping or scrolling?
222215
</p>
@@ -229,7 +222,7 @@ We add the 'border-boundary' property to set a boundary constraint that affects
229222
<pre class='propdef'>
230223
Name: border-boundary
231224
Applies to: all elements
232-
Value: none | parent | <code>display</code>
225+
Value: none | parent | display
233226
Initial: none
234227
Inherited: no
235228
Media: visual
@@ -263,7 +256,7 @@ The example below shows how the 'border-boundary' property works on drawing bord
263256
</div>
264257
<div style="width: 600px; text-align:center">
265258
<div style="float: left; width: 300px;">
266-
<img style="width: 200px"src="images/border_b.png">
259+
<img style="width: 200px" src="images/border_b.png">
267260
<p>(A) Without '<code>border-boundary</code>'</p>
268261
</div>
269262
<div style="float: left; width: 300px; ">
@@ -274,6 +267,8 @@ The example below shows how the 'border-boundary' property works on drawing bord
274267
<div style="width: 600px">
275268
<p class="caption">Align the content along the display border</p>
276269
</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.
271+
</p>
277272

278273
<h2 id="positioning-content">Positioning content by using the polar coordinate system</h2>
279274
<p>

0 commit comments

Comments
 (0)