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

[css-backgrounds] border-position

From: Benjamin De Cock <ben@stripe.com>
Date: Tue, 7 Mar 2017 11:31:09 +0100
Message-ID: <CAP=W7Y8C2Pw981AwOxPNZNC4Xfca7JTtijSi6pOT6rLd4gnLhw@mail.gmail.com>
To: www-style@w3.org

Has a `border-position` property (or similar) ever been considered? I
couldn't find any discussion about it so, please let me know if I'm missing

Plausible use cases out of my head:

1. Centering the border. With tools like Illustrator and Sketch displaying
the border by default at the center (presumably for SVG), it's often
necessary to redraw/resize/realign the layers aimed at being implemented in
CSS in order to account for the different border positioning method.
Additionally, some border effects are simply not possible today in CSS
because of the lack of proper centering (as in, border + outline isn't a
reasonable hack).

2. While `box-sizing` can emulate a potential `border-position: inside`,
the mental model of these properties are radically different, and I tend to
think designers would find the latter much more natural.

Received on Tuesday, 7 March 2017 10:33:20 UTC

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