1515
1616 < h1 > CSS Image Values and Replaced Content Module Level 3</ h1 >
1717
18- < h2 class ="no-num no-toc " id =longstatus-date > Editor's Draft 5 May 2011</ h2 >
18+ < h2 class ="no-num no-toc " id =longstatus-date > Editor's Draft 6 May 2011</ h2 >
1919
2020 < dl >
2121 < dt > Latest Version:
@@ -566,12 +566,16 @@ <h3 id=cross-fade-function><span class=secno>4.4. </span> Combining images:
566566 images. This is accomplished with the ‘< code
567567 class =css > cross-fade()</ code > ’ function, which indicates the two
568568 images to be combined and how far along in the transition the combination
569- is. Authors may also use the ‘< code
569+ is.
570+
571+ < p class =note > Authors can also use the ‘< code
570572 class =css > cross-fade()</ code > ’ function for many simple image
571573 manipulations, such as tinting an image with a solid color or highlighting
572574 a particular area of the page by combining an image with a radial
573- gradient. The syntax for ‘< code class =css > cross-fade()</ code > ’
574- is defined as:
575+ gradient.
576+
577+ < p > The syntax for ‘< code class =css > cross-fade()</ code > ’ is
578+ defined as:
575579
576580 < pre
577581 class =prod > < dfn id =ltimage-combination > <image-combination> </ dfn > = cross-fade( <image> , <image> , <percentage> )</ pre >
@@ -581,19 +585,20 @@ <h3 id=cross-fade-function><span class=secno>4.4. </span> Combining images:
581585 respectively). The percentage represents how far along the transformation
582586 is, with 0% representing the start image, 100% representing the end image,
583587 and percentages between that representing corresponding combinations of
584- the two images. The <percentage> must be between 0% and 100% inclusive;
585- any other value is a syntax error .
588+ the two images. The < code > <percentage> </ code > must be between 0% and
589+ 100% inclusive; any other value is invalid .
586590
587- < p > Given the < percentage> p , the combined image represented by the
591+ < p > Given the percentage < var > p </ var > , the combined image represented by the
588592 ‘< code class =css > cross-fade()</ code > ’ function has a width
589- equal to < code > start image width * (1-p) + end image width * p</ code > and
590- a height equal to < code > start image height * (1-p) + end image height *
591- p</ code > . The image itself is generated by first scaling both the start
592- and end images to the size of the combined image. Then, the start image
593- has a global alpha applied to it equal to (1-p), the end image has a
594- global alpha applied to it equal to p, and the end image is then
595- composited over the start image with the source-over operation.
596- [[PORTERDUFF]]</ p >
593+ equal to < code > < var > start image width</ var > × (1-< var > p</ var > ) +
594+ < var > end image width</ var > × < var > p</ var > </ code > and a height equal
595+ to < code > < var > start image height</ var > × (1-< var > p</ var > ) + < var > end
596+ image height</ var > × < var > p</ var > </ code > . The image itself is
597+ generated by first scaling both the start and end images to the size of
598+ the combined image. Then, the start image has a global alpha applied to it
599+ equal to < code > (1-< var > p</ var > )</ code > , the end image has a global alpha
600+ applied to it equal to < var > p</ var > , and the end image is then composited
601+ over the start image with the plus operation. [[PORTERDUFF]]</ p >
597602 <!-- ====================================================================== -->
598603
599604 < h2 id =gradients > < span class =secno > 5. </ span > Gradients</ h2 >
0 commit comments