Oh, well.
A test in Chrome v43 (Mac) showed that the color profile -- even if
tagged -- is not recognized in my background-image, regardless of
whether the image is saved as .png or .jpg (and even if background-color
is disabled).
Rick Gordon
---------------------
On 7/16/15, 1:41 PM, Rick Gordon wrote:
Color management in browsers is a crap shoot. Only Firefox allows the
specific interpretation of CSS/element color as sRGB (and that's with
a non-default setting); so for the most part, CSS/element color on
wide-gamut displays look hideously oversaturated.
This got me wondering about an alternative approach to setting
background-color: that is, to set background colors with an
sRGB-tagged, one-pixel image set to cover.
EXAMPLE:
.myColoredElement {
background-color:rgb(255,0,0); /* redundant, but included; would
not be color-managed in most browsers */
background-image:url(PATH_TO_1_PIXEL_PNG_OF_sRGB-TAGGED_RED.png);
background-size:cover;
}
Any thoughts?
___________________________________________
RICK GORDON
EMERALD VALLEY GRAPHICS AND CONSULTING
___________________________________________
WWW: http://www.shelterpub.com
______________________________________________________________________
css-discuss [css-d@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/