W3C home > Mailing lists > Public > www-style@w3.org > March 2016

Re: [css-backgrounds] Standardize "background-clip: text"

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Mon, 21 Mar 2016 11:02:46 -0700
Message-ID: <CAAWBYDBrHTJxoAo+BArwr0mS7zV-XQ4U1LS7V=DjK+L-7YoprA@mail.gmail.com>
To: Xidorn Quan <quanxunzhen@gmail.com>
Cc: www-style list <www-style@w3.org>, cku@mozilla.com
On Sun, Mar 20, 2016 at 7:08 PM, Xidorn Quan <quanxunzhen@gmail.com> wrote:
> We are currently implementing "-webkit-background-clip: text" [1] for web
> compatibility. This property (with the "text" value) is specced in the
> Compatibility standard [2] at this moment. We found that, making
> "-webkit-background-clip" a separate property instead of an alias of the
> unprefixed "background-clip" adds complexity to implementation (parsing and
> serialization).
>
> Edge has supported "background-clip: text", and I suppose WebKit does, too.
> Blink does not accept "text" for "background-clip", however, if you set
> "-webkit-background-clip: text", the computed value of "background-clip"
> would be "text" as well (which seems to be rather broken somehow).
>
> Given these, it seems we should probably reconsider the decision about this
> value on background-clip [3]. I agree that the design of the value is
> terrible, but as it has been used widely, and all browser vendors have
> implemented it, I think it makes sense to put it into css-backgrounds spec
> as part of background-clip property.

I agree.  fantasai and I discussed this as part of our work on
speccing fill/stroke, and I think we agree (she can correct me if I'm
overstating her position) that background-clip:text is *highly
unfortunate*, but required at this point for compat.

~TJ
Received on Monday, 21 March 2016 18:03:33 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:09:01 UTC