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
Editor: Hyojin Song, LG Electronics, hyojin22.song@lge.com
9
9
Editor: Soonbo Han, LG Electronics, soonbo.han@lge.com
10
-
Abstract: This document proposes CSS extensions to support a round display. It extends existing CSS features including Media Queries[[MEDIAQ]], CSS Shapes[[CSS-SHAPES-1]], Borders[[CSS3-BORDER]], and Positioned Layout[[CSS3-POSITIONING]]. The extensions will help web authors to build a web page suitable for a round display.
10
+
Abstract: This document describes CSS extensions to support a round display. It extends existing CSS features including Media Queries[[MEDIAQUERIES]], CSS Shapes[[CSS-SHAPES-1]], Borders[[CSS3-BORDER]], and Positioned Layout[[CSS3-POSITIONING]]. The extensions will help web authors to build a web page suitable for a round display.
11
11
</pre>
12
12
13
13
@@ -21,24 +21,24 @@ Everything on the web is a rectangle. For example, the window content area in a
21
21
In order to facilitate the use of the web on a round display, we need to rethink existing CSS features.
22
22
</p>
23
23
<p>
24
-
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 propose to add the 'device-radius' media feature to Media Queries. The feature informs the web page of the property regarding the shape of the display.
24
+
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
25
</p>
26
26
<p>
27
-
To apply the shape of a display to content area, we propose to extend the 'shape-inside' property of CSS Shapes. We also propose to add the 'border-boundary' property to CSS Borders and introduce polar positioning for a better web design suitable for a round display.
27
+
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.
28
28
</p>
29
29
30
30
31
31
<h2 id="terminology">Terminology</h2>
32
32
This specification follows the CSS property definition conventions from [[!CSS21]]. <br />
33
-
The detailed description of Media Queries is defined in [[!MEDIAQ]]<br />
33
+
The detailed description of Media Queries is defined in [[!MEDIAQUERIES]]<br />
34
34
The detailed description of CSS Shapes is defined in [[CSS-SHAPES-1]]<br />
35
35
The detailed description of Borders is defined in [[CSS3-BORDER]]<br />
36
36
The detailed description of Positioned Layout is defined in [[CSS3-POSITIONING]]<br />
37
37
38
38
39
39
<h2 id="extending-media-queries">Extending Media Queries for a round display</h2>
40
40
<p>
41
-
Media Queries [[!MEDIAQ]] define mechanisms to support media-dependent style sheets, tailored for different media types. We propose to extend Media Queries by adding the 'device-radius' media feature to support a round display. This will allow web authors to apply different styles to a web page on the rounded display.
41
+
Media Queries [[!MEDIAQUERIES]] define mechanisms to support media-dependent style sheets, tailored for different environments. We propose to extend Media Queries by adding the 'device-radius' media feature to support a round display. This will allow web authors to apply different styles to a web page on the rounded display.
42
42
</p>
43
43
<section>
44
44
<h3 id="device-radius-media-feature">The 'device-radius' media feature</h3>
@@ -47,21 +47,24 @@ To use different style sheets for a rectangle display and for a round display, m
47
47
This media query indicates that different style sheets will be applied depending on the display shape.
48
48
<pre>
49
49
<link media="screen and (max-device-radius: 49%)" rel="stylesheet" href="rectangle.css" />
50
-
<link media="screen and (min-device-radius: 50%)" rel="stylesheet" href="round.css" /></pre>
51
-
</div>
50
+
<link media="screen and (min-device-radius: 50%)" rel="stylesheet" href="round.css" />
51
+
</pre>
52
52
<p>
53
-
This media feature accepts optional '<code>min-</code>' or '<code>max-</code>' prefixes to express 'greater or equal to' and 'smaller or equal to' contstriants. By the mechanism of media queries, if the value of the 'device-radius' media feature is less than or equal to 49%, '<code>rectangle-clock.css</code>' is applied. If it is 50%, '<code>round-clock.css</code>' is applied.
53
+
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
54
</p>
55
+
</div>
55
56
<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.
56
57
</p>
57
58
<pre class='descdef'>
58
59
Name: device-radius
59
60
Type: range
60
61
For: @media
61
62
Value: [ <<length>> | <<percentage>> ]
62
-
Initial: 0
63
63
Percentage: Refer to corresponding dimension of the display
64
64
</pre>
65
+
<p class="note">
66
+
This media feature accepts optional '<code>min-</code>' or '<code>max-</code>' prefixes to express 'greater or equal to' and 'smaller or equal to' contstriants.
67
+
</p>
65
68
<p>
66
69
The example below shows how a web page looks in the different shape of displays.
67
70
</p>
@@ -151,7 +154,7 @@ Using 'device-radius' with just a single value (e.g., device-radius: 50%) is eno
151
154
<h2 id="aligning-content">Aligning content along the display border</h2>
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 propose to 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.
157
+
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.
155
158
</p>
156
159
<pre class='link-defaults'>
157
160
spec:css21; type:type; text:<uri>
@@ -213,7 +216,7 @@ What if content overflows? Clipping or scrolling?
213
216
<h2 id="drawing-borders">Drawing borders around the display border</h2>
We propose the 'border-boundary' property to set a boundary constraint that affects the borders of an element.
219
+
We add the 'border-boundary' property to set a boundary constraint that affects the borders of an element.
217
220
</p>
218
221
<pre class='propdef'>
219
222
Name: border-boundary
@@ -266,7 +269,7 @@ The example below shows how the 'border-boundary' property works on drawing bord
266
269
267
270
<h2 id="positioning-content">Positioning content by using the polar coordinate system</h2>
268
271
<p>
269
-
Elements are often placed along a circle or concentric circles, and polar coordinates are useful to handle such cases. This section introduces polar positioning to support layout of elements in the polar coordinate system where the position of an element is determined by a distance from a fixed point within the containing element and an angle from a fixed direction. We propose to add '<code>polar</code>' to the value of the 'position' property to support the polar coordinates of the children of an element. The 'polar-angle' and 'polar-distance' properties specify the position of an element (or a child).
272
+
Elements are often placed along a circle or concentric circles, and polar coordinates are useful to handle such cases. This section introduces polar positioning to support layout of elements in the polar coordinate system where the position of an element is determined by a distance from a fixed point within the containing element and an angle from a fixed direction. We add '<code>polar</code>' to the value of the 'position' property to support the polar coordinates of the children of an element. The 'polar-angle' and 'polar-distance' properties specify the position of an element (or a child).
0 commit comments