[Bug] - Hex values auto change to RGB

64 views
Skip to first unread message

Mike

unread,
Jul 8, 2011, 5:07:05 PM7/8/11
to bluegriffon
I ran into an obscure issue that I only noticed because I was creating
an HTML email template and most of my color choices were not showing
up either at all or properly in Outlook, despite looking just fine in
any number of browsers I tested.

I figured out that all of my values that were listed in the Hex format
for color choices were automatically changing to RGB values when I
would flip between the WYSIWYG and Code view. I went back to notepad+
+ in the meantime to preserve my hex values, but in the future it
would be awesome to continuing doing all my edits in Blue Griffon as
it's an awesome product!

I didn't see any option to control this behaviour and am not sure if
it's intentional

Thanks,
-Mike

Daniel Glazman

unread,
Jul 9, 2011, 1:31:39 AM7/9/11
to blueg...@googlegroups.com

You mean your Outlook cannot render rgb() color values ??? WOW.

Computed color values in the CSS Object Model are canonicalized
as rgb() values by Gecko... So even if you specify them by hand
as #rrggbb, changes to your stylesheet through the CSS Properties
Panel will output rgb() values. Sorry, there's nothing I can do
here. CSS OM Canonicalization is a very complex issue we're still
discussing in the W3C CSS Working Group.

The CSS Pro Editor does not rely on the computed values but on
specified values. Theoritically, I _could_ add a switch for hex
values in the colorpicker. But then I would need switches
for rgba() hsl() hsla(). It would rapidly bloat the UI.

Sorry, this appears to be a severe bug of Outlook, not a bug of
BlueGriffon. There is no difference at all between rgb(255,0,0)
and #ff0000.

</Daniel>

Reply all
Reply to author
Forward
0 new messages