-
Notifications
You must be signed in to change notification settings - Fork 746
Closed
Labels
Closed Accepted by CSSWG ResolutionClosed as Question AnsweredUsed when the issue is more of a question than a problem, and it's been answered.Used when the issue is more of a question than a problem, and it's been answered.Commenter SatisfiedCommenter has indicated satisfaction with the resolution / edits.Commenter has indicated satisfaction with the resolution / edits.css-color-4Current WorkCurrent Workcssom-1Current WorkCurrent Work
Milestone
Description
CSSOM spec defines the way to serialize resolved <color>
values (to rgb and rgba functions), but nothing defines how specified <color>
values should be specified, and it seems the existing implementations are rather complicated.
It seems to me that all browsers agree on the following things:
#008000
->rgb(0, 128, 0)
RGB(0, 128, 0)
->rgb(0, 128, 0)
green
->green
CURRENTcolor
->currentcolor
/currentColor
Some differences:
rgba(0, 128, 0, 1)
-> Edge:rgba(0, 128, 0, 1)
, Gecko & Blink:rgb(0, 128, 0)
GrEeN
-> Edge & Blink:green
, Gecko:GrEeN
I think for the last case, Gecko is inconsistent to itself, so it's probably wrong. I'm less sure about the first difference, though.
Anyway, there doesn't seem to be any speced serialization algorithm does this. It should probably be put somewhere.
pmaxhogan and Loirooriol
Metadata
Metadata
Assignees
Labels
Closed Accepted by CSSWG ResolutionClosed as Question AnsweredUsed when the issue is more of a question than a problem, and it's been answered.Used when the issue is more of a question than a problem, and it's been answered.Commenter SatisfiedCommenter has indicated satisfaction with the resolution / edits.Commenter has indicated satisfaction with the resolution / edits.css-color-4Current WorkCurrent Workcssom-1Current WorkCurrent Work