Skip to content

Commit cec5e60

Browse files
committed
[filter-effects-1] Represent invalidity of negative <length> in blur() in grammar
Doing this in the grammar rather than the prose makes it clearer
1 parent f1db79e commit cec5e60

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

filter-effects-1/Overview.bs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -375,12 +375,10 @@ Unless defined otherwise, omitted values default to the <a for=svg>initial value
375375
Note: For some filter functions the default value for omitted values differes from their <a for=svg>initial value</a> for interpolation. For the convenience of content creators, the default value for omitted values for ''grayscale()'', ''sepia()'' and ''invert()'' is ''1'' (apply the effect to 100%) while the <a for=svg>initial value</a> for interpolation is ''0'' (no effect).
376376

377377
<dl id="FilterFunction" dfn-for="filter">
378-
: <pre class=prod><dfn>blur()</dfn> = blur( <<length>>? )</pre>
378+
: <pre class=prod><dfn>blur()</dfn> = blur( <<length [0,∞]>>? )</pre>
379379
::
380380
Applies a Gaussian blur to the input image. The passed parameter defines the value of the standard deviation to the Gaussian function. The parameter is specified a CSS length, but does not accept percentage values. The markup equivalent of this function is <a href="#blurEquivalent">given below</a>.
381381

382-
Negative values are not allowed.
383-
384382
Default value when omitted is ''0px''.
385383

386384
The <a for=svg>initial value</a> for interpolation is ''0px''.

0 commit comments

Comments
 (0)