I suggest color.module should provide a way to grab a pixel color from base.png from the stylesheet. perhaps something like:

div {
  border-bottom:1px solid #f00; /* color.module: pixel(10,225) */
}

Where #f00 would be replaced by the web color from the base.png pixel at x=10 y=225.

Motivation:

I believe I read somewhere that the algorithm used in image color blending is different (more accurate) than the one used in the css stylesheet, so when you need a CSS color to match an image color there is no way to do so.

Temporary Workaround:

Currently, I've had to use the color.module to produce 1x1 pixel images and use those as tiling backgrounds where I can get away with it. This doesn't work very well when you need it for a border color, though.

Comments

tr’s picture

Version: 5.1 » 8.x-dev

Feature requests need to be addressed first in highest development version of Drupal, which is now Drupal 8.x.

markhalliwell’s picture

Version: 8.x-dev » 9.x-dev
Status: Active » Postponed (maintainer needs more info)

I'm postponing this for now. We may try to do this in 9.x. It hasn't gotten much traction either, not sure if it's a necessary "feature". If anyone else wants to weigh in on this, I might be persuaded.

xjm’s picture

Version: 9.x-dev » 8.8.x-dev
Issue summary: View changes
Status: Postponed (maintainer needs more info) » Closed (won't fix)

I think this is probably a wonfix at this point, given it was accidentally resurrected from Drupal 5 and has had no activity since.