Stylus Studio XML Editor

Table of contents

Appendices

7.17 Color-related Properties

Color-related Properties

color[top]

"color"

CSS2 Definition:

0prop-summary lefttoplefttoplefttoplefttoplefttoplefttop
11lefttopValue: 11lefttop<color> | inherit
11lefttopInitial: 11lefttopdepends on user agent
11lefttopApplies to: 11lefttopall elements
11lefttopInherited: 11lefttopyes
11lefttopPercentages: 11lefttopN/A
11lefttopMedia: 11lefttopvisual

CSS2 Reference: [ "color" property ] http://www.w3.org/TR/REC-CSS2/colors.html#propdef-color

<color>

Any valid color specification.

This property describes the foreground color of an element's text content.

XSL modifications to the CSS definition:

XSL adds an "rgb-icc" function (see [expr-color-functions] ) as a valid value of this property.

color-profile-name[top]

"color-profile-name"

XSL Definition:

0prop-summary lefttoplefttoplefttoplefttoplefttoplefttop
11lefttopValue: 11lefttop<name> | inherit
11lefttopInitial: 11lefttopN/A, value is required
11lefttopApplies to: 11lefttopfo:color-profile
11lefttopInherited: 11lefttopno
11lefttopPercentages: 11lefttopN/A
11lefttopMedia: 11lefttopvisual
<name>

Specifies the name of a color-profile for internal references.

rendering-intent[top]

"rendering-intent"

XSL Definition:

0prop-summary lefttoplefttoplefttoplefttoplefttoplefttop
11lefttopValue: 11lefttopauto | perceptual | relative-colorimetric | saturation | absolute-colorimetric | inherit
11lefttopInitial: 11lefttopauto
11lefttopApplies to: 11lefttopfo:color-profile
11lefttopInherited: 11lefttopno
11lefttopPercentages: 11lefttopN/A
11lefttopMedia: 11lefttopvisual

"rendering-intent" permits the specification of a color-profile rendering-intent other than the default. "rendering-intent" is applicable primarily to color-profiles corresponding to CMYK color spaces. The different options cause different methods to be used for translating colors to the color gamut of the target rendering device.

Values have the following meanings:

auto

This is the default behavior. The User Agent determines the best intent based on the content type. For image content containing an embedded profile, it shall be assumed that the intent specified within the profile is the desired intent. Otherwise, the user agent shall use the current profile and force the intent, overriding any intent that might be stored in the profile itself.

perceptual

This method, often the preferred choice for images, preserves the relationship between colors. It attempts to maintain relative color values among the pixels as they are mapped to the target device gamut. Sometimes pixel values that were originally within the target device gamut are changed in order to avoid hue shifts and discontinuities and to preserve as much as possible the overall appearance of the scene.

relative-colorimetric

Leaves colors that fall inside the gamut unchanged. This method usually converts out of gamut colors to colors that have the same lightness but fall just inside the gamut.

saturation

Preserves the relative saturation (chroma) values of the original pixels. Out of gamut colors are converted to colors that have the same saturation but fall just inside the gamut.

absolute-colorimetric

Disables white point matching when converting colors. This option is generally not recommended.