I've just pushed rgba(color, alpha) syntax to master. On Tue, Jan 26, 2010 at 12:19 PM, Chris Eppstein <[email protected]>wrote:
> Damn, Nathan beat me to a reply. I had said basically the same in my draft. > > Additionally, I added: > > I'm sure the w3c folks thought about an extended syntax as well and decided > against it. it'd be interesting to dig up the minutes and/or mailing list > posts on the topic. Extending the hex sequence to add another one or two > bits of data seems the most obvious to me and I'd like to know why they > decided against it. > > AND > > The distinction between syntax and function is arbitrary and is merely > based on a decision about whether the parser should construct an object or > should construction an object that constructs an object. Also, we're > removing the delineation between script mode and css mode in 2.4 so the > syntax for these kind of functions is universal. > > Chris > > > On Tue, Jan 26, 2010 at 11:38 AM, Mislav Marohnić < > [email protected]> wrote: > >> On Tue, Jan 26, 2010 at 18:21, Chris Eppstein <[email protected]>wrote: >> >>> If we want to extend the hex syntax, the extension should be in hex not >>> some other value: >>> >>> #fff7 and #c0c0a07f >>> >>> Thus, the alpha layer is broken into 256 discrete values between 0 and 1. >>> >> >> Ugh... That came to my mind, but I quickly discarded it. When it comes to >> opacity, I think we all think in percentages. Anyway, there's no reason why >> a value couldn't be a vector of two different number systems: complex >> numbers are real on one axis and imaginary on the other. So a color value >> could have a triple hex number as color dimension and a decimal number for >> opacity. >> >> OK, so the dot syntax seems awkward in this case: >> >> #fff.5 >> >> But alternate syntaxes are possible: >> >> #fff^50% >> #...@50% >> #fff~50% >> #fff{.5} >> #fff[.5] >> >> Food for thought. >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Haml" group. >> To post to this group, send email to [email protected]. >> To unsubscribe from this group, send email to >> [email protected] <haml%[email protected]>. >> For more options, visit this group at >> http://groups.google.com/group/haml?hl=en. >> > > -- > You received this message because you are subscribed to the Google Groups > "Haml" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected] <haml%[email protected]>. > For more options, visit this group at > http://groups.google.com/group/haml?hl=en. > -- You received this message because you are subscribed to the Google Groups "Haml" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/haml?hl=en.
