From ebbe3d993040ede7a07efda2a6949130d21b2370 Mon Sep 17 00:00:00 2001
From: Simon Pieters srcset
Attribute
If the source or img element has a
sizes attribute present, all image candidate strings for that
- element must have the width descriptor specified. If the
- sizes attribute is not present, all image candidate strings for
- that element must not have the width descriptor specified.
+ element must have the width descriptor specified.
+
+ If an image candidate string for an source or img element
+ has the width descriptor specified,
+ all other image candidate strings for that element
+ must also have the width descriptor specified.
Parsing a
@@ -890,8 +893,8 @@ Parsing a sizes
Attributesizes
Attribute
A valid source size list is a string that matches the following grammar: [[!CSS3VAL]]
- <source-size-list> = <
diff --git a/index.html b/index.html
index 60ecf521..0011a931 100644
--- a/index.html
+++ b/index.html
@@ -552,14 +552,14 @@
To the extent possible under law, the editors have waived all copyright and related or neighboring rights to this work. -In addition, as of 8 April 2014, +In addition, as of 9 April 2014, the editors have made this specification available under the Open Web Foundation Agreement Version 1.0, which is available at http://www.openwebfoundation.org/legal/the-owf-1-0-agreements/owfa-1-0. @@ -1366,9 +1366,12 @@
If an image candidate string for an source or img element + has the width descriptor specified, + all other image candidate strings for that element + must also have the width descriptor specified.
sizes
Attribute<source-size-list> = <source-size>#? - <source-size> = <media-condition>? <source-size-value> +<source-size-list> = <source-size>#+ [ , <source-size-value> ]? | <source-size-value> + <source-size> = <media-condition> <source-size-value> <source-size-value> = <length> | <percentage>A <source-size-value> must not be negative.