community-group icon indicating copy to clipboard operation
community-group copied to clipboard

Border type feedback

Open c1rrus opened this issue 3 years ago • 4 comments

Is the border composite type fit for purpose? Does it need more sub-values to account for features like outset, border images, multiple borders, etc. that some platforms an design tools have?

Please share your feedback, thoughts and ideas in this issue.

c1rrus avatar Jan 13 '22 20:01 c1rrus

Hi, what would be the recommended way to store border-radius?

tlouisse avatar Feb 13 '23 22:02 tlouisse

The more I use that, the more I think, "border" is the wrong word, instead "stroke" is more appropriate:

  • A ruler (<hr>) is a stroke
  • A border is a set of strokes (with position/alignment)

Or: A stroke can be a border, but a border cannot be a stroke.

And to add what @tlouisse said: A ruler (= a line) cannot have a radius.


So, there is:

  • stroke style: as already defined
  • stroke: style + color + width
  • border: stroke (+ location) 1
  • border-radius: targeting the border joints (in design tools, there is also joint variants)

1 When location is omitted, border is applied on all sides, then border equals stroke

gossi avatar Feb 21 '23 12:02 gossi

I don't know if this is the correct place to bring this up, but I've seen in a handful of designs (mostly documented in Figma) that some elements use "inside" or "outside" aligned borders, for example to create a focus "border" around a button.

I do know that it most technologies, this effect does not fall into the border property (For example in CSS you would set box-sizing: border-box) and some other technologies may not support it at all.

Is this "alignment" of the border being considered in any place on the standard?

d01000100 avatar Mar 14 '23 16:03 d01000100

@gossi +1

PavelLaptev avatar Jun 25 '23 23:06 PavelLaptev