From 48cd78769c757ae182c1c581a6820880044c95e9 Mon Sep 17 00:00:00 2001 From: Sebastian Zartner Date: Sun, 25 Aug 2024 00:50:59 +0200 Subject: [PATCH] [css-images-4] Clarified that total width is length of paint line --- css-images-4/Overview.bs | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/css-images-4/Overview.bs b/css-images-4/Overview.bs index d143e101f08..64cfa326abf 100644 --- a/css-images-4/Overview.bs +++ b/css-images-4/Overview.bs @@ -592,7 +592,7 @@ Combining images: the ''cross-fade()'' notation {#cross-fade-function}
 		cross-fade() = cross-fade( <># )
-		<cf-image> = [ <> | <> ] && <>? 
+		<cf-image> = [ <> | <> ] && <>?
 	
The function represents an image generated by @@ -1961,10 +1961,10 @@ Coloring the Gradient Line gives a missing hue component: oklch(0.6268 0 none) - and thus, in the first gradient segment, - the hue is taken from red, + and thus, in the first gradient segment, + the hue is taken from red, which is oklch(0.628 0.2577 29.234); - while in the second segment + while in the second segment it is taken from green, which is oklch(0.5198 0.1769 142.5) @@ -2156,11 +2156,11 @@ Color Stop “Fixup” <> = stripes( <># ) <> = <> && [ <> | <> ]? - + The stripes() function defines a [=1D image=] as a comma-separated list of colored stripes, each placed end-to-end on the [=paint line=] in the order given. - + Each <> entry defines a solid-color stripe with the specified <> and thickness. If the thickness is omitted, @@ -2189,7 +2189,8 @@ Color Stop “Fixup” before being distributed. - The |total width| is defined by the context in which the ''stripes()'' function is used. + The |total width| refers to the length of the [=paint line=]. + It is defined by the context in which the ''stripes()'' function is used. If the sum of the stripes is smaller than the |total width|, the [=paint line=] is [=transparent black=] for its remaining length, as if a final ''transparent'' argument were given. @@ -2197,7 +2198,7 @@ Color Stop “Fixup” any stripes or portions beyond the |total width| are truncated.
- For example, + For example, ''stripes(red 1fr, green 2fr, blue 100px)'' with a |total width| of ''400px'' will result in a 100px red stripe and 200px green stripe,