@@ -4787,10 +4787,11 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
4787
4787
4788
4788
<h5>Non-zero percentages and lengths</h5>
4789
4789
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>
4794
4795
4795
4796
<ol>
4796
4797
@@ -5264,7 +5265,7 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
5264
5265
<li>Two <span>ASCII digits</span>, representing <var>minute</var>, in the range
5265
5266
0 ≤ <var>minute</var> ≤ 59</li>
5266
5267
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
5268
5269
zero:
5269
5270
5270
5271
<ol>
@@ -34557,7 +34558,7 @@ interface <dfn>MediaError</dfn> {
34557
34558
data-x="dom-media-HAVE_FUTURE_DATA">HAVE_FUTURE_DATA</code> or <code
34558
34559
data-x="dom-media-HAVE_ENOUGH_DATA">HAVE_ENOUGH_DATA</code> and the user agent has suspended
34559
34560
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
34561
34562
temporally anchored to a segment of the <span>media resource</span> but has a length longer than
34562
34563
that segment.</p>
34563
34564
@@ -60255,7 +60256,7 @@ context.fillRect(100,0,50,50); // only this square remains</pre>
60255
60256
algorithm by which to determine if a point is inside or outside a path.</p>
60256
60257
60257
60258
<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
60259
60260
60260
60261
a point is considered to be outside a shape if the number of times a half-infinite straight
60261
60262
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:
60675
60676
then end these substeps for this subpath and start them again for the next subpath; if there
60676
60677
are no more subpaths, then jump to the step labeled <i>convert</i> instead.</p></li>
60677
60678
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
60679
60680
<i>on</i>.</p></li>
60680
60681
60681
60682
<li><p>Increment <var>index</var> by one.</p></li>
@@ -63418,7 +63419,7 @@ v6DVT (also check for '- -' bits in the part above) -->
63418
63419
<span data-x="trace a path">trace</span> the intended path, using this
63419
63420
<code>CanvasPathDrawingStyles</code> object for the line styles, and then fill the resulting path
63420
63421
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>
63422
63423
63423
63424
<p class="note">As a result of how the algorithm to <span>trace a path</span> is defined,
63424
63425
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) -->
63475
63476
passed to the method, when treated as coordinates in the canvas coordinate space unaffected by the
63476
63477
current transformation, is inside the path that results from <span data-x="trace a
63477
63478
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
63479
63480
<code>CanvasPathDrawingStyles</code> interface for the line styles; and must return false
63480
63481
otherwise. Points on the resulting path must be considered to be inside the path. If either of the
63481
63482
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) -->
63933
63934
numeric arguments <var>sw</var> and <var>sh</var>, it must <span>create an <code>ImageData</code>
63934
63935
object</span> with parameter <var>pixelsPerRow</var> set to <var>sw</var>, and <var>rows</var> set
63935
63936
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
63937
63938
return the new <code>ImageData</code> object. If one or both of <var>sw</var> and <var>sh</var>
63938
63939
are zero, then the constructor must throw an <span>"<code>IndexSizeError</code>"</span>
63939
63940
<code>DOMException</code> instead.</p>
@@ -63947,7 +63948,7 @@ v6DVT (also check for '- -' bits in the part above) -->
63947
63948
63948
63949
<li><p>Let <var>length</var> be the number of bytes in <var>source</var>.</p></li>
63949
63950
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
63951
63952
<span>"<code>InvalidStateError</code>"</span> <code>DOMException</code> and abort these
63952
63953
steps.</p></li>
63953
63954
@@ -63989,7 +63990,7 @@ v6DVT (also check for '- -' bits in the part above) -->
63989
63990
<code>ImageData</code> object</span>, with parameter <var>pixelsPerRow</var> set to the
63990
63991
absolute magnitude of <var>sw</var>, and parameter <var>rows</var> set to the absolute magnitude
63991
63992
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
63993
63994
the new <code>ImageData</code> object. If one or both of <var>sw</var> and <var>sh</var> are
63994
63995
zero, then throw an <span>"<code>IndexSizeError</code>"</span> <code>DOMException</code>
63995
63996
instead.</p>
@@ -64485,9 +64486,9 @@ function AddCloud(data, x, y) { ... }</pre>
64485
64486
64486
64487
<p><dfn data-x="when shadows are drawn">Shadows are only drawn if</dfn> the opacity component of
64487
64488
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>
64491
64492
64492
64493
<p><span>When shadows are drawn</span>, they must be rendered as follows:</p>
64493
64494
@@ -91051,7 +91052,7 @@ scheduleWork(); // queues a task to do lots of work</pre>
91051
91052
91052
91053
<ol>
91053
91054
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 ,
91055
91056
optionally abort these steps.</p></li>
91056
91057
91057
91058
<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>
91081
91082
91082
91083
<ol>
91083
91084
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 ,
91085
91086
optionally abort these steps, returning false.</p></li>
91086
91087
91087
91088
<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>
91110
91111
91111
91112
<ol>
91112
91113
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 ,
91114
91115
optionally abort these steps, returning null.</p></li>
91115
91116
91116
91117
<li><p>If the <span>active sandboxing flag set</span> of this <code>Window</code> object's <span
@@ -110051,7 +110052,7 @@ Hello.</pre></pre>
110051
110052
<p>When the text below says that an attribute <var>attribute</var> on an element
110052
110053
<var>element</var> <dfn>maps to the dimension property (ignoring zero)</dfn> (or properties)
110053
110054
<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
110055
110056
values</span> doesn't generate an error, then the user agent is expected to use the parsed
110056
110057
dimension as the value for a <span data-x="presentational hints">presentational hint</span> for
110057
110058
<var>properties</var>, with the value given as a pixel length if the dimension was a length, and
@@ -111038,12 +111039,12 @@ table {
111038
111039
<p>In <span>quirks mode</span>, a <code>td</code> element or a <code>th</code> element that has a
111039
111040
<code data-x="attr-tdth-nowrap">nowrap</code> attribute but also has a <code
111040
111041
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
111042
111043
classified as a percentage), is expected to have a <span data-x="presentational
111043
111044
hints">presentational hint</span> setting the element's <span>'white-space'</span> property to
111044
111045
'normal', overriding the rule in the CSS block above that sets it to 'nowrap'.</p> <!--
111045
111046
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
111047
111048
-->
111048
111049
111049
111050
<h4>Margin collapsing quirks</h4>
@@ -112409,7 +112410,7 @@ details[open] > summary {
112409
112410
under the user's finger on a touch device as the user pans around the screen.</p>
112410
112411
112411
112412
<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
112413
112414
lines up the next glyph with the next tab stop, with tab stops occurring at points that are
112414
112415
multiples of 8 times the width of a U+0020 SPACE character.</p>
112415
112416
0 commit comments