W3C home > Mailing lists > Public > www-style@w3.org > September 2011

Re: One more feature: text color gradient

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Mon, 5 Sep 2011 12:45:50 -0700
Message-ID: <CAAWBYDDQvJqkY06w8uniGePzb9HTvYaHHVgE8cJLcaJNdQGjew@mail.gmail.com>
To: Robert Rachlewicz <visjusz@gmail.com>
Cc: www-style@w3.org
On Mon, Sep 5, 2011 at 6:07 AM, Robert Rachlewicz <visjusz@gmail.com> wrote:
> Hello,
> I am write this letter becouse i have suggestion about new feature in CSS3.
> Is possible to add gradient text colors? Javascirpt solution is too bad,
> becouse it is create same text 10 time's with others colors. In my opinion
> it will be better to create some functions in css to do this, than leaving
> this JQ or Dojo toolkit's.

I assume you mean the ability to have a paragraph of text that, for
example, is yellow on the left side and gradually transitions to red
text on the right side?

If so, then yes, this is something we'll address at some point, so
that you can "fill" text with an arbitrary image (such as a gradient)
instead of just a color.  Webkit already exposes a proprietary method
for this ("background-clip:-webkit-text", iirc), though that is likely
not the exact solution we'll eventually go with.

~TJ
Received on Monday, 5 September 2011 19:46:46 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:44 GMT