Skip to content

Commit d751591

Browse files
committed
Editorial: non-zero -> nonzero
1 parent 9fda90f commit d751591

File tree

1 file changed

+24
-23
lines changed

1 file changed

+24
-23
lines changed

source

Lines changed: 24 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -4787,10 +4787,11 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
47874787

47884788
<h5>Non-zero percentages and lengths</h5>
47894789

4790-
<p>The <dfn>rules for parsing non-zero dimension values</dfn> are as given in the following
4791-
algorithm. When invoked, the steps must be followed in the order given, aborting at the first step
4792-
that returns a value. This algorithm will return either a number greater than 0.0, or an error; if
4793-
a number is returned, then it is further categorized as either a percentage or a length.</p>
4790+
<p>The <dfn id="rules-for-parsing-non-zero-dimension-values">rules for parsing nonzero dimension
4791+
values</dfn> are as given in the following algorithm. When invoked, the steps must be followed in
4792+
the order given, aborting at the first step that returns a value. This algorithm will return
4793+
either a number greater than 0.0, or an error; if a number is returned, then it is further
4794+
categorized as either a percentage or a length.</p>
47944795

47954796
<ol>
47964797

@@ -5264,7 +5265,7 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
52645265
<li>Two <span>ASCII digits</span>, representing <var>minute</var>, in the range
52655266
0&nbsp;&le;&nbsp;<var>minute</var>&nbsp;&le;&nbsp;59</li>
52665267

5267-
<li>If <var>second</var> is non-zero, or optionally if <var>second</var> is
5268+
<li>If <var>second</var> is nonzero, or optionally if <var>second</var> is
52685269
zero:
52695270

52705271
<ol>
@@ -34557,7 +34558,7 @@ interface <dfn>MediaError</dfn> {
3455734558
data-x="dom-media-HAVE_FUTURE_DATA">HAVE_FUTURE_DATA</code> or <code
3455834559
data-x="dom-media-HAVE_ENOUGH_DATA">HAVE_ENOUGH_DATA</code> and the user agent has suspended
3455934560
playback of the <span>media resource</span> in order to play content that is temporally anchored
34560-
to the <span>media resource</span> and has a non-zero length, or to play content that is
34561+
to the <span>media resource</span> and has a nonzero length, or to play content that is
3456134562
temporally anchored to a segment of the <span>media resource</span> but has a length longer than
3456234563
that segment.</p>
3456334564

@@ -60255,7 +60256,7 @@ context.fillRect(100,0,50,50); // only this square remains</pre>
6025560256
algorithm by which to determine if a point is inside or outside a path.</p>
6025660257

6025760258
<p>The value "<dfn><code data-x="dom-context-2d-fillRule-nonzero">nonzero</code></dfn>" value
60258-
indicates the non-zero winding rule, wherein
60259+
indicates the nonzero winding rule, wherein
6025960260

6026060261
a point is considered to be outside a shape if the number of times a half-infinite straight
6026160262
line drawn from that point crosses the shape's path going in one direction is equal to the
@@ -60675,7 +60676,7 @@ idea from Mihai:
6067560676
then end these substeps for this subpath and start them again for the next subpath; if there
6067660677
are no more subpaths, then jump to the step labeled <i>convert</i> instead.</p></li>
6067760678

60678-
<li><p>If <var>segment length</var> is non-zero, then let <var>current state</var> be
60679+
<li><p>If <var>segment length</var> is nonzero, then let <var>current state</var> be
6067960680
<i>on</i>.</p></li>
6068060681

6068160682
<li><p>Increment <var>index</var> by one.</p></li>
@@ -63418,7 +63419,7 @@ v6DVT (also check for '- -' bits in the part above) -->
6341863419
<span data-x="trace a path">trace</span> the intended path, using this
6341963420
<code>CanvasPathDrawingStyles</code> object for the line styles, and then fill the resulting path
6342063421
using the <code data-x="dom-context-2d-strokeStyle">strokeStyle</code> attribute, using the <span
63421-
data-x="dom-context-2d-fillRule-nonzero">non-zero winding rule</span>.</p>
63422+
data-x="dom-context-2d-fillRule-nonzero">nonzero winding rule</span>.</p>
6342263423

6342363424
<p class="note">As a result of how the algorithm to <span>trace a path</span> is defined,
6342463425
overlapping parts of the paths in one stroke operation are treated as if their union was what was
@@ -63475,7 +63476,7 @@ v6DVT (also check for '- -' bits in the part above) -->
6347563476
passed to the method, when treated as coordinates in the canvas coordinate space unaffected by the
6347663477
current transformation, is inside the path that results from <span data-x="trace a
6347763478
path">tracing</span> the intended path, using the <span
63478-
data-x="dom-context-2d-fillRule-nonzero">non-zero winding rule</span>, and using the
63479+
data-x="dom-context-2d-fillRule-nonzero">nonzero winding rule</span>, and using the
6347963480
<code>CanvasPathDrawingStyles</code> interface for the line styles; and must return false
6348063481
otherwise. Points on the resulting path must be considered to be inside the path. If either of the
6348163482
arguments are infinite or NaN, then the method must return false.</p>
@@ -63933,7 +63934,7 @@ v6DVT (also check for '- -' bits in the part above) -->
6393363934
numeric arguments <var>sw</var> and <var>sh</var>, it must <span>create an <code>ImageData</code>
6393463935
object</span> with parameter <var>pixelsPerRow</var> set to <var>sw</var>, and <var>rows</var> set
6393563936
to <var>sh</var>. The image data of the newly created <code>ImageData</code> object must be
63936-
initialized to transparent black. If both <var>sw</var> and <var>sh</var> are non-zero, then
63937+
initialized to transparent black. If both <var>sw</var> and <var>sh</var> are nonzero, then
6393763938
return the new <code>ImageData</code> object. If one or both of <var>sw</var> and <var>sh</var>
6393863939
are zero, then the constructor must throw an <span>"<code>IndexSizeError</code>"</span>
6393963940
<code>DOMException</code> instead.</p>
@@ -63947,7 +63948,7 @@ v6DVT (also check for '- -' bits in the part above) -->
6394763948

6394863949
<li><p>Let <var>length</var> be the number of bytes in <var>source</var>.</p></li>
6394963950

63950-
<li><p>If <var>length</var> is not a non-zero integral multiple of four, then throw an
63951+
<li><p>If <var>length</var> is not a nonzero integral multiple of four, then throw an
6395163952
<span>"<code>InvalidStateError</code>"</span> <code>DOMException</code> and abort these
6395263953
steps.</p></li>
6395363954

@@ -63989,7 +63990,7 @@ v6DVT (also check for '- -' bits in the part above) -->
6398963990
<code>ImageData</code> object</span>, with parameter <var>pixelsPerRow</var> set to the
6399063991
absolute magnitude of <var>sw</var>, and parameter <var>rows</var> set to the absolute magnitude
6399163992
of <var>sh</var>. Initialize the image data of the new <code>ImageData</code> object to
63992-
transparent black. If both <var>sw</var> and <var>sh</var> are non-zero, then return
63993+
transparent black. If both <var>sw</var> and <var>sh</var> are nonzero, then return
6399363994
the new <code>ImageData</code> object. If one or both of <var>sw</var> and <var>sh</var> are
6399463995
zero, then throw an <span>"<code>IndexSizeError</code>"</span> <code>DOMException</code>
6399563996
instead.</p>
@@ -64485,9 +64486,9 @@ function AddCloud(data, x, y) { ... }</pre>
6448564486

6448664487
<p><dfn data-x="when shadows are drawn">Shadows are only drawn if</dfn> the opacity component of
6448764488
the alpha component of the color of <code data-x="dom-context-2d-shadowColor">shadowColor</code> is
64488-
non-zero and either the <code data-x="dom-context-2d-shadowBlur">shadowBlur</code> is non-zero, or
64489-
the <code data-x="dom-context-2d-shadowOffsetX">shadowOffsetX</code> is non-zero, or the <code
64490-
data-x="dom-context-2d-shadowOffsetY">shadowOffsetY</code> is non-zero.</p>
64489+
nonzero and either the <code data-x="dom-context-2d-shadowBlur">shadowBlur</code> is nonzero, or
64490+
the <code data-x="dom-context-2d-shadowOffsetX">shadowOffsetX</code> is nonzero, or the <code
64491+
data-x="dom-context-2d-shadowOffsetY">shadowOffsetY</code> is nonzero.</p>
6449164492

6449264493
<p><span>When shadows are drawn</span>, they must be rendered as follows:</p>
6449364494

@@ -91051,7 +91052,7 @@ scheduleWork(); // queues a task to do lots of work</pre>
9105191052

9105291053
<ol>
9105391054

91054-
<li><p>If the <span>event loop</span>'s <span>termination nesting level</span> is non-zero,
91055+
<li><p>If the <span>event loop</span>'s <span>termination nesting level</span> is nonzero,
9105591056
optionally abort these steps.</p></li>
9105691057

9105791058
<li><p>If the <span>active sandboxing flag set</span> of this <code>Window</code> object's <span
@@ -91081,7 +91082,7 @@ scheduleWork(); // queues a task to do lots of work</pre>
9108191082

9108291083
<ol>
9108391084

91084-
<li><p>If the <span>event loop</span>'s <span>termination nesting level</span> is non-zero,
91085+
<li><p>If the <span>event loop</span>'s <span>termination nesting level</span> is nonzero,
9108591086
optionally abort these steps, returning false.</p></li>
9108691087

9108791088
<li><p>If the <span>active sandboxing flag set</span> of this <code>Window</code> object's <span
@@ -91110,7 +91111,7 @@ scheduleWork(); // queues a task to do lots of work</pre>
9111091111

9111191112
<ol>
9111291113

91113-
<li><p>If the <span>event loop</span>'s <span>termination nesting level</span> is non-zero,
91114+
<li><p>If the <span>event loop</span>'s <span>termination nesting level</span> is nonzero,
9111491115
optionally abort these steps, returning null.</p></li>
9111591116

9111691117
<li><p>If the <span>active sandboxing flag set</span> of this <code>Window</code> object's <span
@@ -110051,7 +110052,7 @@ Hello.&lt;/pre></pre>
110051110052
<p>When the text below says that an attribute <var>attribute</var> on an element
110052110053
<var>element</var> <dfn>maps to the dimension property (ignoring zero)</dfn> (or properties)
110053110054
<var>properties</var>, it means that if <var>element</var> has an attribute <var>attribute</var>
110054-
set, and parsing that attribute's value using the <span>rules for parsing non-zero dimension
110055+
set, and parsing that attribute's value using the <span>rules for parsing nonzero dimension
110055110056
values</span> doesn't generate an error, then the user agent is expected to use the parsed
110056110057
dimension as the value for a <span data-x="presentational hints">presentational hint</span> for
110057110058
<var>properties</var>, with the value given as a pixel length if the dimension was a length, and
@@ -111038,12 +111039,12 @@ table {
111038111039
<p>In <span>quirks mode</span>, a <code>td</code> element or a <code>th</code> element that has a
111039111040
<code data-x="attr-tdth-nowrap">nowrap</code> attribute but also has a <code
111040111041
data-x="attr-tdth-width">width</code> attribute whose value, when parsed using the <span>rules for
111041-
parsing non-zero dimension values</span>, is found to be a length (not an error or a number
111042+
parsing nonzero dimension values</span>, is found to be a length (not an error or a number
111042111043
classified as a percentage), is expected to have a <span data-x="presentational
111043111044
hints">presentational hint</span> setting the element's <span>'white-space'</span> property to
111044111045
'normal', overriding the rule in the CSS block above that sets it to 'nowrap'.</p> <!--
111045111046
https://software.hixie.ch/utilities/js/live-dom-viewer/?saved=1793 --> <!-- note that the "rules for
111046-
parsing non-zero dimension values" can't return 0, if the value is "0" they treat it as an error
111047+
parsing nonzero dimension values" can't return 0, if the value is "0" they treat it as an error
111047111048
-->
111048111049

111049111050
<h4>Margin collapsing quirks</h4>
@@ -112409,7 +112410,7 @@ details[open] > summary {
112409112410
under the user's finger on a touch device as the user pans around the screen.</p>
112410112411

112411112412
<p>U+000A LINE FEED (LF) characters are expected to cause line breaks in the tooltip; U+0009
112412-
CHARACTER TABULATION (tab) characters are expected to render as a non-zero horizontal shift that
112413+
CHARACTER TABULATION (tab) characters are expected to render as a nonzero horizontal shift that
112413112414
lines up the next glyph with the next tab stop, with tab stops occurring at points that are
112414112415
multiples of 8 times the width of a U+0020 SPACE character.</p>
112415112416

0 commit comments

Comments
 (0)