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
Conventionally, web pages have been shown through a rectangular screen such as PC, tablet, and smart phone. The window content area in a web browser is a rectangle. Each HTML element follows the W3C box model and thus is also a rectangle.
27
28
<br>
28
29
Nowadays, devices come in varied shapes of the displays.
@@ -35,8 +36,8 @@ However, current web standards lack some features to support the devices as foll
35
36
In order to facilitate the use of the web especially on a round display, there could be some features to support it.
36
37
</p>
37
38
<p>
38
-
The 'device-radius' media feature is added to Media Queries.
39
-
Current user agents are not capable of detecting the shape of a display so that authors cannot apply various layouts for a round display. To resolve the issue, 'device-radius' informs the web page of the property regarding the shape of the display.
39
+
The 'shape' media feature is added to Media Queries.
40
+
Current user agents are not capable of detecting the shape of a display so that authors cannot apply various layouts for a round display. To resolve the issue, 'shape' informs the web page of the property regarding the shape of the display.
40
41
<br><br>
41
42
To apply the shape of a display to content area, we extend the 'shape-inside' property of CSS Shapes. The position of the element which is overflowed from the display is adjusted inside the display when using this property even if the authors don’t know the exact shape of the display.
42
43
<br><br>
@@ -51,18 +52,18 @@ This module provides features such as:
Media Queries [[MEDIAQUERIES-4]] define mechanisms to support media-dependent style sheets, tailored for different environments. We propose to extend Media Queries by adding the shape media feature to support various types of displays. This will allow web authors to apply different styles to a web page on the rounded display.
68
69
@@ -77,7 +78,7 @@ To use different style sheets for a rectangle display and for a round display, m
77
78
</pre>
78
79
79
80
<p class="note">
80
-
Note: To define a 'discrete' type media feature, the feature is evaluated in a boolean context.
81
+
Note: To define a "discrete" type media feature, the feature is evaluated in a boolean context.
81
82
</p>
82
83
83
84
The 'shape' media feature describes the general shape of the targeted display area of the output device. It accepts the following values:
@@ -163,7 +164,9 @@ The 'shape' media feature describes the general shape of the targeted display ar
163
164
<p class="note">Note: For other shapes, such as polygons, we need to extend the media features 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.
164
165
</p>
165
166
166
-
<h2 id="extending-viewport-rule">Extending the @viewport rule</h2>
167
+
Extending the @viewport rule {#extending-viewport-rule}
'viewport-fit' can set the size of the initial viewport [[css-device-adapt]].
@@ -192,7 +195,7 @@ The initial viewport is seen through the physical screen of the device. On round
192
195
Values have the following meanings:
193
196
194
197
<dl dfn-type=value dfn-for=viewport-fit>
195
-
<dt><var>'auto'</var></dt>
198
+
<dt><var>auto</var></dt>
196
199
<dd>
197
200
This value doesn’t affect the initial viewport, and the whole web page is viewable. UA can do anything it wants for the reader to view the web page easily.
198
201
</dd>
@@ -253,7 +256,9 @@ If it have to be guaranteed that any part of the web page isn’t hidden, avoidi
253
256
</div>
254
257
</div>
255
258
256
-
<h2 id="aligning-content">Aligning content along the display border</h2>
259
+
Aligning content along the display border {#aligning-content}
CSS Shapes [[CSS-SHAPES-1]] 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 can be challenging to specify the wrapping area to be identical to the shape of a display. To address such cases, 'shape-inside' is extended with a new value named '<code>display</code>', such an element having this value will have its content (or contained elements) aligned along the display border automatically.
@@ -328,7 +333,9 @@ When a containing block is placed on one end of the display and the containing b
328
333
What if content overflows? Clipping or scrolling?
329
334
</p>
330
335
331
-
<h2 id="drawing-borders">Drawing borders around the display border</h2>
336
+
Drawing borders around the display border {#drawing-borders}
We add the 'border-boundary' property to set a boundary constraint that affects the borders of an element.
@@ -390,7 +397,9 @@ The example below shows how the 'border-boundary' property works on drawing bord
390
397
<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.
391
398
</p>
392
399
393
-
<h2 id="positioning-content">Position the element along the path</h2>
400
+
Position the element along the path {#positioning-content-along-a-path}
This section introduces specifying a path and positioning the element along it.
395
404
396
405
A path can be defined with 'offset-path' and 'offset-position'. The position of the element on the path is computed by the value of 'offset-distance' and 'offset-anchor'.
@@ -447,15 +456,15 @@ Values have the following meanings:
447
456
</dd>
448
457
<dt><<url>></dt>
449
458
<dd>
450
-
References an SVG <a>shape element</a> and uses its geometry as motion path. See SVG 1.1 for more information about the initial position and initial direction [[!SVG11]].
459
+
References an SVG <a>shape element</a> and uses its geometry as path. See SVG 1.1 for more information about the initial position and initial direction [[!SVG11]].
451
460
</dd>
452
461
<dt dfn-type=value><dfn>none</dfn></dt>
453
462
<dd>No path gets created.</dd>
454
463
</dl>
455
464
456
465
A computed value of other than ''none'' results in the creation of a <a spec="css21">stacking context</a>[[!CSS21]] the same way that CSS 'opacity'[[CSS3COLOR]] does for values other than ''1'', unless the element is an SVG element with out an associated CSS layout box.
457
466
458
-
A reference that fails to download, is not a reference to an SVG <a>shape element</a> element, or is non-existent is ignored. No motion path and no stacking context are created.
467
+
A reference that fails to download, is not a reference to an SVG <a>shape element</a> element, or is non-existent is ignored. No path and no stacking context are created.
459
468
460
469
For SVG elements without associated CSS layout box, the <a>used value</a> for <a value for=mask-clip>content-box</a>, <a value for=mask-clip>padding-box</a>, <a value for=mask-clip>border-box</a> and <a value for=mask-clip>margin-box</a> is <a value for=clip-path>fill-box</a>.
461
470
@@ -510,7 +519,7 @@ Specifies the initial position of the path.
510
519
Values are defined as follows:
511
520
512
521
<dl dfn-for="offset-position">
513
-
<dt><var>'auto'</var></dt>
522
+
<dt><var>auto</var></dt>
514
523
<dd>
515
524
Computes to the current position of the element.
516
525
</dd>
@@ -607,7 +616,7 @@ Values are defined as follows:
607
616
<dt><dfn>farthest-corner</dfn></dt>
608
617
<dd>The distance is measured between the initial position and the farthest corner of the box from it.</dd>
609
618
</dl>
610
-
<p class='note'>Note: When the initial position is at one of the corners of the containing block, the closest side takes the edge where the initial position is on. Even if the offset given by <<length>> or <<percentage>> changes, the position of the element specified with closest-side is the same.</p>
619
+
<p class='note'>Note: When the initial position is at one of the corners of the containing block, the closest side takes the edge where the initial position is on. Even if the offset given by <<length>> or <<percentage>> changes, the position of the element specified with <var>closest-side</var> is the same.</p>
611
620
</dd>
612
621
</dl>
613
622
@@ -650,7 +659,7 @@ See the section Motion processing for how to process a motion position.
650
659
Name: offset-anchor
651
660
Applies to: All elements
652
661
Value: <<position>>
653
-
Initial: 'auto'
662
+
Initial: auto
654
663
Media: visual
655
664
Inherited: no
656
665
Percentages: Relative to width and height of an element
@@ -662,16 +671,16 @@ Defines an origin of the element in the path. The origin specifies a position wh
662
671
Values have the following meanings:
663
672
664
673
<dl>
665
-
<dt><var>'auto'</var></dt>
674
+
<dt><var>auto</var></dt>
666
675
<dd>
667
-
Computes to the value from 'offset-position'. When 'auto' is given to 'offset-anchor', 'offset-position' behaves similar to 'background-position'.
676
+
Computes to the value from 'offset-position'. When ''auto'' is given to 'offset-anchor', 'offset-position' behaves similar to 'background-position'.
668
677
</dd>
669
678
670
679
<dt><<position>></dt>
671
680
<dd>
672
681
<dl>
673
682
<dt><<percentage>></dt>
674
-
<dd>A percentage for the horizontal offset is relative to width of content box area of the element. A percentage for the vertical offset is relative to height of content box area of the element. For example, with a value pair of '100%, 0%', an anchor point is on the upper right corner of the element.</dd>
683
+
<dd>A percentage for the horizontal offset is relative to width of content box area of the element. A percentage for the vertical offset is relative to height of content box area of the element. For example, with a value pair of ''100%, 0%'', an anchor point is on the upper right corner of the element.</dd>
675
684
676
685
<dt><<length>></dt>
677
686
<dd>A length value gives a length offset from the upper left corner of the element's content area.</dd>
@@ -740,7 +749,7 @@ Values have the following meanings:
740
749
</div>
741
750
742
751
<p class="issue">
743
-
How can the margin be applied to an element when <code>polar-origin: 50% 50%</code> and <code>polar-anchor: 50% 50%</code>?
752
+
How can the margin be applied to an element when <code>offset-position: 50% 50%</code> and <code>offset-anchor: 50% 50%</code>?
744
753
<br>
745
754
Which would be a base point for applying it between the upper left corner or center of a containing block?
746
755
With the former, the position of the element changes when the value of the margin changes, while with the latter, the margin value doesn't affect the position of the element.
@@ -759,7 +768,7 @@ With the former, the position of the element changes when the value of the margi
759
768
Animatable: yes
760
769
</pre>
761
770
762
-
Defines the direction of the element while positioning along the <a>motion path</a>.
771
+
Defines the direction of the element while positioning along the <a>path</a>.
763
772
764
773
Values have the following meanings:
765
774
@@ -775,7 +784,7 @@ Values have the following meanings:
775
784
<dd>Indicates that the element has a constant rotation transformation applied to it by the specified rotation angle. See definitions of ''auto'' or ''reverse'' if specified in combination with either one of the keywords. For the purpose of this argument, ''0deg'' points to the direction of the positive y-axis, and positive angles represent clockwise rotation, so ''90deg'' point toward the direction of the positive x-axis.</dd>
776
785
777
786
<p class="issue">
778
-
Between the direction of the positive y-axis and that of the positive x-axis, which '0deg'' indicates?
787
+
Between the direction of the positive y-axis and that of the positive x-axis, which ''0deg'' indicates?
779
788
In mathematical theory, ''0deg'' is commonly defined as the positive direction of the x-axis, but <<angle>> value in [[CSS3VAL]] specifies it as upper or north side on the screen.
780
789
</p>
781
790
</dl>
@@ -905,7 +914,7 @@ To determine the <dfn>computed distance</dfn> for a given <var>path</var> and <v
905
914
906
915
3.
907
916
: If <var>path</var> is a closed path:
908
-
:: Let <a>computed distance</a> be equal to <var>distance</var> modulus <var>upper bound</bar>.
917
+
:: Let <a>computed distance</a> be equal to <var>distance</var> modulus <var>upper bound</var>.
909
918
: Otherwise:
910
919
:: Let <a>computed distance</a> be equal to <var>distance</var> clamped by 0 and <var>upper bound</var>.
911
920
@@ -937,35 +946,42 @@ To determine the <dfn>computed distance</dfn> for a given <var>path</var> and <v
0 commit comments