Skip to content

Commit 163203a

Browse files
committed
Handle xml:space
1 parent dc6cece commit 163203a

File tree

1 file changed

+27
-29
lines changed

1 file changed

+27
-29
lines changed

source

Lines changed: 27 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -60970,7 +60970,7 @@ interface mixin <dfn interface>CanvasFilters</dfn> {
6097060970

6097160971
typedef record&lt;DOMString, any> <dfn>CanvasFilterInput</dfn>;
6097260972

60973-
[Exposed=(Window,Worker,PaintWorkletGlobalScope)]
60973+
[Exposed=(Window,Worker,PaintWorklet)]
6097460974
interface <dfn interface>CanvasFilter</dfn> {
6097560975
<span data-x="dom-CanvasFilter">constructor</span>(optional (<code>CanvasFilterInput</code> or sequence&lt;<code>CanvasFilterInput</code>>) filters);
6097660976
};
@@ -66015,22 +66015,22 @@ console.log(pixels.data[2]);
6601566015
<code>CanvasFilter</code> object.</p>
6601666016
</dd>
6601766017

66018-
<dt><code data-x=""><var>context</var>.<span data-x="dom-context-2d-filter">filter</span> = new
66019-
<span subdfn data-x="dom-CanvasFilter">CanvasFilter</span>(<var>input</var>)</code></dt>
66018+
<dt><code data-x=""><span data-x="dom-context-2d-filter">filter</span> = new <span subdfn
66019+
data-x="dom-CanvasFilter">CanvasFilter</span>(<var>input</var>)</code></dt>
6602066020

6602166021
<dd>
66022-
<p>Constructs a new <span data-x="dom-CanvasFilter">CanvasFilter</span> from the properties of
66023-
the <var>input</var> object. These properties include a filter property, which is one of the
66024-
supported filter names, and additionally can include properties corresponding to the settings
66025-
for the filter. These latter properties are the same as the XML attribute names when using the
66026-
corresponding SVG filters.</p>
66022+
<p>Constructs a new <code data-x="dom-CanvasFilter">CanvasFilter</code> from the properties of
66023+
the <var>input</var> object. These properties include a <code data-x="">filter</code> property,
66024+
whose value is one of the supported filter names, and additionally can include properties
66025+
corresponding to the settings for the filter. These latter properties are the same as the XML
66026+
attribute names when using the corresponding SVG filters.</p>
6602766027
</dd>
6602866028

66029-
<dt><code data-x=""><var>context</var>.<span data-x="dom-context-2d-filter">filter</span> = new
66030-
<span data-x="dom-CanvasFilter">CanvasFilter</span>(<var>inputs</var>)</code></dt>
66029+
<dt><code data-x=""><span data-x="dom-context-2d-filter">filter</span> = new <span
66030+
data-x="dom-CanvasFilter">CanvasFilter</span>(<var>inputs</var>)</code></dt>
6603166031

6603266032
<dd>
66033-
<p>Constructs a new <span data-x="dom-CanvasFilter">CanvasFilter</span> from the
66033+
<p>Constructs a new <code data-x="dom-CanvasFilter">CanvasFilter</code> from the
6603466034
<var>inputs</var> array. Each element in the array is an input as described for the previous
6603566035
overload. They are composed in sequence to create the final filter.</p>
6603666036
</dd>
@@ -66049,11 +66049,6 @@ console.log(pixels.data[2]);
6604966049
data-x="concept-canvas-current-filter">current filter</span> is the string "<code
6605066050
data-x="">none</code>" filters will be disabled for the context.</p>
6605166051

66052-
<p>A <span>&lt;filter-value-list&gt;</span> consists of a sequence of one or more filter
66053-
functions or references to SVG filters. The input to the filter is used as the input to the first
66054-
item in the list. Subsequent items take the output of the previous item as their input. <ref
66055-
spec=FILTERS></p>
66056-
6605766052
<p>A <code>CanvasFilter</code> is an interface for creating SVG filters using JavaScript. A
6605866053
<code>CanvasFilter</code> has an associated <dfn
6605966054
data-x="concept-concept-canvasfilter-xml-filter-list">XML filter list</dfn>. An <span
@@ -66201,17 +66196,19 @@ console.log(pixels.data[2]);
6620166196
<p>If any of the following is true:</p>
6620266197

6620366198
<ul>
66204-
<li><p><var>key</var> is not listed as an attribute for the filter primitive given by
66205-
<var>xmlName</var></p></li>
66199+
<li><p><var>key</var> is not listed as the local name of attribute for the filter
66200+
primitive given by <var>xmlName</var></p></li>
6620666201

66207-
<li><p><var>key</var> is a <span>core attribute</span></p></li>
66202+
<li><p><var>key</var> is the local name a <span>core attribute</span></p></li>
6620866203

66209-
<li><p><var>key</var> is a <span>presentation attribute</span></p></li>
66204+
<li><p><var>key</var> is the local name a <span>presentation attribute</span></p></li>
6621066205

66211-
<li><p><var>key</var> is a <span>filter primitive attribute</span></p></li>
66206+
<li><p><var>key</var> is the local name a <span>filter primitive attribute</span></p></li>
6621266207

66213-
<li><p><var>key</var> is "<code data-x="">in</code>", or "<code
66208+
<li><p><var>key</var> is the local name "<code data-x="">in</code>", or "<code
6621466209
data-x="">filter</code>"</p></li>
66210+
66211+
<li><p><var>key</var> contains U+003A (:)</p></li>
6621566212
</ul>
6621666213

6621766214
<p>then <span>continue</span>.</p>
@@ -66366,16 +66363,17 @@ console.log(pixels.data[2]);
6636666363
transformation matrix.</p></li>
6636766364

6636866365
<li>
66369-
<p>When the <code data-x="dom-context-2d-filter">filter</code> attribute is set to a value
66370-
other than "<code data-x="">none</code>" and all the externally-defined filters it references,
66371-
if any, are in documents that are currently loaded, then use image <var>A</var> as the input to
66372-
the <span data-x="concept-canvas-current-filter">current filter</span>, creating image
66373-
<var>B</var>. If the <span data-x="concept-canvas-current-filter">current filter</span> is a
66374-
string parseable as a <span>&lt;filter-value-list&gt;</span>, then draw using the <span
66366+
<p>When the <span data-x="concept-canvas-current-filter">current filter</span> is set to a
66367+
value other than "<code data-x="">none</code>" and all the externally-defined filters it
66368+
references, if any, are in documents that are currently loaded, then use image <var>A</var> as
66369+
the input to the <span data-x="concept-canvas-current-filter">current filter</span>, creating
66370+
image <var>B</var>. If the <span data-x="concept-canvas-current-filter">current filter</span>
66371+
is a string parseable as a <span>&lt;filter-value-list&gt;</span>, then draw using the <span
6637566372
data-x="concept-canvas-current-filter">current filter</span> in the same manner as SVG. If the
6637666373
<span data-x="concept-canvas-current-filter">current filter</span> is a
6637766374
<code>CanvasFilter</code>, draw using the equivalent SVG for the XML structure stored in the
66378-
<span data-x="concept-canvas-current-filter">current filter</span>'s by mapping each <span>filter property</span> of the <span
66375+
<span data-x="concept-canvas-current-filter">current filter</span>'s by mapping each
66376+
<span>filter property</span> of the <span
6637966377
data-x="concept-concept-canvasfilter-xml-filter-list">XML filter list</span>.</p>
6638066378

6638166379
<p>Otherwise, let <var>B</var> be an alias for <var>A</var>.</p>

0 commit comments

Comments
 (0)