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

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