Project

General

Profile

Actions

Bug #6702

closed

Issue parsing css colors with alpha

Added by Will Johnson over 5 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
11/03/2018
Due date:
% Done:

0%

Estimated time:

Description

In web/ColorUtils.C, when the function parseCssColor() runs into a CSS color string similar to "rgba(15,13,99,0.3)" it fails because it is expecting the alpha channel to range from 0 to 255, instead of 0.0 to 1.0. This bug effects initializing a WColor from a rgba string, such as would be produced by WColor::cssText(true).

Actions #1

Updated by Roel Standaert over 5 years ago

  • Status changed from New to Resolved

Resolved with patch from issue #6802.

Actions #2

Updated by Roel Standaert over 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF