@@ -3243,13 +3243,12 @@ The serialization of the declared value of a relative color is:
3243
3243
followed by a single space,
3244
3244
followed by a space separated list of the non-alpha channel arguments as specified
3245
3245
(identifiers serializing as identifiers,
3246
- numbers serializing as numbers,
3247
- percentages serializing as percentages,
3246
+ numbers and percentages serializing as numbers,
3248
3247
angles serializing as canonicalized angles in degrees,
3249
3248
calc() serializing in its simplified form),
3250
- followed by " / " and the alpha component as specified
3251
- (using the same rules as the color channel arguments)
3252
- if an alpha component is present,
3249
+ followed (if the alpha component is non-unity)
3250
+ by " / " and the alpha component as specified
3251
+ (using the same rules as the color channel arguments, but clamped)
3253
3252
followed by ")".
3254
3253
3255
3254
2. For ''hwb()'' , ''lab()'' , ''lch()'' , ''oklab()'' , ''oklch()''
@@ -3259,7 +3258,7 @@ The serialization of the declared value of a relative color is:
3259
3258
followed by the <a href="#serial-origin-color">serialization of the origin color</a>
3260
3259
using the rules for serializing nested origin colors,
3261
3260
followed by a single space,
3262
- followed by a space separated list of the non-alpha channel arguments as specified
3261
+ <!-- followed by a space separated list of the non-alpha channel arguments as specified
3263
3262
(identifiers serializing as identifiers,
3264
3263
numbers serializing as numbers,
3265
3264
percentages serializing as percentages,
@@ -3268,6 +3267,15 @@ The serialization of the declared value of a relative color is:
3268
3267
followed by " / " and the alpha component as specified
3269
3268
(using the same rules as the color channel arguments)
3270
3269
if an alpha component is present,
3270
+ followed by ")". -->
3271
+ followed by a space separated list of the non-alpha channel arguments as specified
3272
+ (identifiers serializing as identifiers,
3273
+ numbers and percentages serializing as numbers,
3274
+ angles serializing as canonicalized angles in degrees,
3275
+ calc() serializing in its simplified form),
3276
+ followed (if the alpha component is non-unity)
3277
+ by " / " and the alpha component as specified
3278
+ (using the same rules as the color channel arguments, but clamped)
3271
3279
followed by ")".
3272
3280
3273
3281
3. For ''color()''
@@ -3279,15 +3287,14 @@ The serialization of the declared value of a relative color is:
3279
3287
followed by the canonical colorspace ("xyz-d65" for "xyz")
3280
3288
in all-lowercase,
3281
3289
followed by a single space,
3282
- followed by space separated list of the non-alpha channel arguments as specified
3290
+ followed by a space separated list of the non-alpha channel arguments as specified
3283
3291
(identifiers serializing as identifiers,
3284
- numbers serializing as numbers,
3285
- percentages serializing as percentages,
3292
+ numbers and percentages serializing as numbers,
3286
3293
angles serializing as canonicalized angles in degrees,
3287
3294
calc() serializing in its simplified form),
3288
- followed by " / " and the alpha component as specified
3289
- (using the same rules as the color channel arguments)
3290
- if an alpha component is present,
3295
+ followed (if the alpha component is non-unity)
3296
+ by " / " and the alpha component as specified
3297
+ (using the same rules as the color channel arguments, but clamped)
3291
3298
followed by ")".
3292
3299
3293
3300
0 commit comments