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
+5-10Lines changed: 5 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -103,7 +103,6 @@ The example below shows how a web page looks in the different shape of displays.
103
103
<div style="width: 700px">
104
104
<p class="caption">Devices where the 'device-radius' media feature is not applicable</p>
105
105
</div>
106
-
107
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:
108
107
<pre><!-- index.html -->
109
108
@@ -113,7 +112,6 @@ On the other hand, the example below shows how the 'device-radius' media feature
113
112
</head>
114
113
</pre>
115
114
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
-
117
115
<pre>
118
116
#clockLayer {
119
117
border-radius: 50%;
@@ -140,16 +138,12 @@ If this example code is loaded in a regular round display, '<code>round.css</cod
140
138
<p class="caption">Devices where the 'device-radius' media feature is applicable</p>
141
139
</div>
142
140
</div>
143
-
144
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.
145
142
</p>
146
-
147
143
<p class="issue">
148
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'?
149
145
</p>
150
146
151
-
152
-
153
147
<h2 id="aligning-content">Aligning content along the display border</h2>
Animatable: as specified for <<basic-shape>>, otherwise no
170
164
</pre>
171
165
<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.
173
167
</p>
174
168
<div class='example'>
175
169
<pre><style>
@@ -216,7 +210,6 @@ When the containing block is placed on one end of the display and the block has
216
210
<img style="width: 500px" src="images/ex3.png">
217
211
<p class="caption">Align a part of the content along the display border</p>
218
212
</div>
219
-
220
213
<p class="issue">
221
214
What if content overflows? Clipping or scrolling?
222
215
</p>
@@ -229,7 +222,7 @@ We add the 'border-boundary' property to set a boundary constraint that affects
229
222
<pre class='propdef'>
230
223
Name: border-boundary
231
224
Applies to: all elements
232
-
Value: none | parent | <code>display</code>
225
+
Value: none | parent | display
233
226
Initial: none
234
227
Inherited: no
235
228
Media: visual
@@ -263,7 +256,7 @@ The example below shows how the 'border-boundary' property works on drawing bord
@@ -274,6 +267,8 @@ The example below shows how the 'border-boundary' property works on drawing bord
274
267
<div style="width: 600px">
275
268
<p class="caption">Align the content along the display border</p>
276
269
</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>
277
272
278
273
<h2 id="positioning-content">Positioning content by using the polar coordinate system</h2>
0 commit comments