Background and foreground image extended attributes

  1. back/foreground-repeat attributes

    1. no-repeat

    2. Image given by ****ground-image attribute is rendered once and without any scaling. Following attributes describe details of this mode:

    3. repeat

    4. Image given by ****ground-image attribute is rendered repeatedly filling (tiling) area inside border box of the element.

    5. repeat-x

    6. Image is repeated horizontally.

    7. repeat-y

    8. Image is repeated vertically.

    9. expand

    10. Image is drawn with expansion of nine sections of the image:

    11. stretch

    12. Image is stretched inside padding area of the element minus offsets:

  2. back/foreground-image-transformation

  3. back/foreground-image-transformation defines pixel level transformation that enfgine should do before rendering the image. This attribute accepts following values:

img:hover
{
  foreground-image-transformation: contrast-brightness-gamma(0.5,0,0.5,1.2);
}
button
{
  background-image-transformation: color-schema(system);
}