W3C home > Mailing lists > Public > www-style@w3.org > December 2017

Re: Shorthands resetting properties they cannot set

From: Philippe Wittenbergh <ph.wittenbergh@l-c-n.com>
Date: Fri, 15 Dec 2017 17:34:54 +0900
Cc: Daniel Glazman <daniel.glazman@disruptive-innovations.com>
Message-Id: <471FB93E-484B-43B0-8C45-82618D70A59C@l-c-n.com>
To: W3C www-style mailing list <www-style@w3.org>

> On Dec 15, 2017, at 5:11 PM, Daniel Glazman <daniel.glazman@disruptive-innovations.com> wrote:
>> It doesn't make his job any easier.  But on the priority of
>> constituencies, keeping things logical for stylesheet authors should
>> probably rank above keeping things simple and straightforward for
>> graphical editor developers. (Sorry, Daniel.)
> Sorry Amelia, but that's precisely the point: web authors tell me it's
> not logical.

This. Fully agree with Daniel here. I don’t find anything logical about a shorthand property that resets longhands that it can not set itself.  And I say this with about 15years of experience creating / editing / managing stylesheets and good knowledge of specs.

(I was “bitten” by this an hour ago… I was editing an element where `background-clip` was necessary. Easy right? After editing, reload my page to check this and other things, only to see that my `background-clip` was not applied. Right-click on the element… yeah, right, it had of course the `background` shorthand applied due to an other selector (I knew that). I burst out laughing, this discussion in mind, my cat was angry as I disturbed his nap).

Philippe Wittenbergh
Received on Friday, 15 December 2017 08:36:16 UTC

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