Skip to content

Commit dd8e1be

Browse files
Calme1709fantasai
authored andcommitted
[css-text-decor-3] Update text-shadow syntax to disallow negative blur radius
The first two length values for `text-shadow` (x and y offsets) are allowed to be negative but the third value (blur) is not. This behaviour is respected in all major browsers and is tested in WPT, see the second test here: http://wpt.live/css/css-text-decor/text-shadow/parsing/text-shadow-invalid.html
1 parent 458ecc1 commit dd8e1be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

css-text-decor-3/Overview.bs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -861,7 +861,7 @@ Text Shadows: the 'text-shadow' property</h2>
861861

862862
<pre class="propdef">
863863
Name: text-shadow
864-
Value: none | [ <<color>>? && <<length>>{2,3} ]#
864+
Value: none | [ <<color>>? && [ <<length>>{2} <<length [0,&infin;]>>? ] ]#
865865
Initial: none
866866
Applies to: text
867867
Inherited: yes

0 commit comments

Comments
 (0)