W3C home > Mailing lists > Public > public-css-archive@w3.org > December 2017

Re: [csswg-drafts] [css-backgrounds] 'border' shorthand resets 'border-image' but can't set it

From: Amelia Bellamy-Royds via GitHub <sysbot+gh@w3.org>
Date: Wed, 20 Dec 2017 23:24:25 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-353212269-1513812264-sysbot+gh@w3.org>
PS, pulling out a comment I made on IRC earlier:

Has anyone made a list of other shorthands that have similar behavior?

> [`font`](https://drafts.csswg.org/css-fonts-4/#font-prop) is one (with respect to new font-variant properties), but I think it should be possible to allow the full font-variant options to be specified without breaking anything.

Another: The [`mask-border` property and its longhands](https://drafts.fxtf.org/css-masking-1/#the-mask-border) are currently spec'd to be reset by the `mask` property. But last I checked, no one had implemented `mask-border`, so there's no compat issue to changing it.

Although really, I don't think _any_ shorthand is as confusing as the `border` shorthand: even separate from `border-image`, there's the way it can be decomposed into two different sets of middlehands (`border-style`/`-width`/`-color` vs `border-top`/`-right`/`-bottom`/`-left`).  So authoring tools are going to need special logic for handling it, regardless.

GitHub Notification of comment by AmeliaBR
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2108#issuecomment-353212269 using your GitHub account
Received on Wednesday, 20 December 2017 23:24:28 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:21 UTC