Skip to content

Commit 7fdf87a

Browse files
author
Jihye Hong
committed
[css-round-display] Fix bikeshed errors
1 parent 61ee087 commit 7fdf87a

File tree

1 file changed

+60
-44
lines changed

1 file changed

+60
-44
lines changed

css-round-display/Overview.bs

+60-44
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,9 @@ url: https://svgwg.org/svg2-draft/shapes.html#TermShapeElement; type: dfn; spec:
2121
url: https://www.w3.org/TR/SVG11/struct.html#DefsElement; spec: SVG11; type: element; text: defs
2222
</pre>
2323

24-
<h2 id="introduction">Introduction</h2>
25-
<p>
24+
Introduction {#introduction}
25+
==================================================
26+
2627
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.
2728
<br>
2829
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
3536
In order to facilitate the use of the web especially on a round display, there could be some features to support it.
3637
</p>
3738
<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.
4041
<br><br>
4142
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.
4243
<br><br>
@@ -51,18 +52,18 @@ This module provides features such as:
5152
* Aligning contents in the display’s shape
5253
* Drawing borders along the display’s edge
5354
* Positioning elements in polar coordinates
54-
</p>
5555

56+
Terminology {#terminology}
57+
==================================================
5658

57-
<h2 id="terminology">Terminology</h2>
5859
This specification follows the CSS property definition conventions from [[!CSS21]]. <br/>
5960
The detailed description of Media Queries is defined in [[MEDIAQUERIES-4]]<br/>
6061
The detailed description of CSS Shapes is defined in [[CSS-SHAPES-1]]<br/>
6162
The detailed description of Borders is defined in [[CSS3-BORDER]]<br/>
6263
The detailed description of Positioned Layout is defined in [[CSS3-POSITIONING]]<br/>
6364

64-
65-
<h2 id="extending-media-queries">Extending Media Queries for a round display</h2>
65+
Extending Media Queries for a round display {#extending-media-queries}
66+
==================================================
6667

6768
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.
6869

@@ -77,7 +78,7 @@ To use different style sheets for a rectangle display and for a round display, m
7778
</pre>
7879

7980
<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.
8182
</p>
8283

8384
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
163164
<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.
164165
</p>
165166

166-
<h2 id="extending-viewport-rule">Extending the @viewport rule</h2>
167+
Extending the @viewport rule {#extending-viewport-rule}
168+
==================================================
169+
167170
<h3 id="viewport-fit-descriptor">The 'viewport-fit' descriptor</h3>
168171

169172
'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
192195
Values have the following meanings:
193196

194197
<dl dfn-type=value dfn-for=viewport-fit>
195-
<dt><var>'auto'</var></dt>
198+
<dt><var>auto</var></dt>
196199
<dd>
197200
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.
198201
</dd>
@@ -253,7 +256,9 @@ If it have to be guaranteed that any part of the web page isn’t hidden, avoidi
253256
</div>
254257
</div>
255258

256-
<h2 id="aligning-content">Aligning content along the display border</h2>
259+
Aligning content along the display border {#aligning-content}
260+
==================================================
261+
257262
<h3 id="shape-inside-property">The 'shape-inside' property</h3>
258263

259264
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
328333
What if content overflows? Clipping or scrolling?
329334
</p>
330335

331-
<h2 id="drawing-borders">Drawing borders around the display border</h2>
336+
Drawing borders around the display border {#drawing-borders}
337+
==================================================
338+
332339
<h3 id="border-boundary-property">The 'border-boundary' property</h3>
333340

334341
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
390397
<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.
391398
</p>
392399

393-
<h2 id="positioning-content">Position the element along the path</h2>
400+
Position the element along the path {#positioning-content-along-a-path}
401+
==================================================
402+
394403
This section introduces specifying a path and positioning the element along it.
395404

396405
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:
447456
</dd>
448457
<dt><<url>></dt>
449458
<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]].
451460
</dd>
452461
<dt dfn-type=value><dfn>none</dfn></dt>
453462
<dd>No path gets created.</dd>
454463
</dl>
455464

456465
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.
457466

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.
459468

460469
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>.
461470

@@ -510,7 +519,7 @@ Specifies the initial position of the path.
510519
Values are defined as follows:
511520

512521
<dl dfn-for="offset-position">
513-
<dt><var>'auto'</var></dt>
522+
<dt><var>auto</var></dt>
514523
<dd>
515524
Computes to the current position of the element.
516525
</dd>
@@ -607,7 +616,7 @@ Values are defined as follows:
607616
<dt><dfn>farthest-corner</dfn></dt>
608617
<dd>The distance is measured between the initial position and the farthest corner of the box from it.</dd>
609618
</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>
611620
</dd>
612621
</dl>
613622

@@ -650,7 +659,7 @@ See the section Motion processing for how to process a motion position.
650659
Name: offset-anchor
651660
Applies to: All elements
652661
Value: <<position>>
653-
Initial: 'auto'
662+
Initial: auto
654663
Media: visual
655664
Inherited: no
656665
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
662671
Values have the following meanings:
663672

664673
<dl>
665-
<dt><var>'auto'</var></dt>
674+
<dt><var>auto</var></dt>
666675
<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'.
668677
</dd>
669678

670679
<dt><<position>></dt>
671680
<dd>
672681
<dl>
673682
<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>
675684

676685
<dt><<length>></dt>
677686
<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:
740749
</div>
741750

742751
<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>?
744753
<br>
745754
Which would be a base point for applying it between the upper left corner or center of a containing block?
746755
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
759768
Animatable: yes
760769
</pre>
761770

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>.
763772

764773
Values have the following meanings:
765774

@@ -775,7 +784,7 @@ Values have the following meanings:
775784
<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>
776785

777786
<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?
779788
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.
780789
</p>
781790
</dl>
@@ -905,7 +914,7 @@ To determine the <dfn>computed distance</dfn> for a given <var>path</var> and <v
905914

906915
3.
907916
: 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>.
909918
: Otherwise:
910919
:: Let <a>computed distance</a> be equal to <var>distance</var> clamped by 0 and <var>upper bound</var>.
911920

@@ -937,35 +946,42 @@ To determine the <dfn>computed distance</dfn> for a given <var>path</var> and <v
937946

938947
</div>
939948

940-
<h2 id="usecases">
941-
Use Cases</h2>
949+
Use Cases {#usecases}
950+
==================================================
942951

943952
Use cases are described on
944953
<a href="https://wiki.csswg.org/ideas/round-display">these</a>.
945954

946-
<h2 id="changes">
947-
Changes</h2>
955+
Changes {#changes}
956+
==================================================
948957

949958
<h3 id="changes_from_Sep_22_2015">
950959
Changes from <a href="https://www.w3.org/TR/2015/WD-css-round-display-1-20150922/">September 22<sup>th</sup> 2015</a> version</h3>
951960

952961
<ul>
953-
<li>Added 'polar-anchor'</li>
954-
<li>Added 'contain' for 'polar-distance' for avoiding the overflow issue.</li>
955-
<li>Added 'polar-origin'</li>
962+
<li>Added ''polar-anchor''</li>
963+
<li>Added 'contain' for polar-distance for avoiding the overflow issue.</li>
964+
<li>Added ''polar-origin''</li>
956965
<li>Added extension for 2d rotation function for polar coordinates</li>
957966
<li>Changed naming of keyword values for 2d rotation function</li>
958-
<li>Removed <code>polar</code> value of 'position'. Polar positioning applies to absolute/fixed/sticky/relative positioned elements</li>
959-
<li>Added auto value to 'polar-origin' and make it as initial value</li>
960-
<li>Added &lt;size> keywords to 'polar-distance'</li>
967+
<li>Removed ''polar'' value of 'position'. Polar positioning applies to absolute/fixed/sticky/relative positioned elements</li>
968+
<li>Added ''auto'' value to ''polar-origin'' and make it as initial value</li>
969+
<li>Added &lt;size> keywords to ''polar-distance''</li>
961970
<li>Added the Acknowledgements, Use cases, and Changes</li>
962971
</ul>
963972

964-
<h2 class="no-num" id="acks">
965-
Acknowledgements</h2>
966-
<p>
967-
This specification is made possible by input from Dong-Young Lee, Soonbo Han,
968-
Florian Rivoal, Joone Hur,
969-
Kang-Soo Seo, Sangjo Park, Woojun Jung, Chisoon Jeong, Yunbum Sung,
970-
Alan Stearns, Brad Kemper, and the CSS Working Group members.
971-
Thanks also to Adenilson Cavalcanti for editorial input.</p>
973+
Security Considerations {#security-considerations}
974+
==================================================
975+
976+
There are no known security issues introduced by these features.
977+
978+
Privacy Considerations {#privacy-considerations}
979+
==================================================
980+
981+
There are no known privacy issues introduced by these features.
982+
983+
Acknowledgements {#acks}
984+
==================================================
985+
This specification is made possible by input from Dong-Young Lee, Soonbo Han, Florian Rivoal, Joone Hur,
986+
Kang-Soo Seo, Sangjo Park, Woojun Jung, Chisoon Jeong, Yunbum Sung, Alan Stearns, Brad Kemper, and the CSS Working Group members.
987+
Thanks also to Adenilson Cavalcanti for editorial input.

0 commit comments

Comments
 (0)