-
Hi! I saw that you are using mainly Using Was this trade-off—between layout stability and visual flexibility versus performance and compatibility—part of the design decision to use |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Border cannot have subpixel transition and it being a part of the box model is a downside, rather than upside, since you would have to subtract it from padding. Say buttons have 1rem padding. If in outline appearance we used border then it would affect it and we would need to use |
Beta Was this translation helpful? Give feedback.
Border cannot have subpixel transition and it being a part of the box model is a downside, rather than upside, since you would have to subtract it from padding. Say buttons have 1rem padding. If in outline appearance we used border then it would affect it and we would need to use
calc(1rem - 1px)
. Visual appearance should not leak into layout since it is applied to all kind of elements, from inputs to buttons, to badges and chips. Not sure what you mean byborder-radius
compatibility. Box-shadow is exactly great for border-radius since it properly expands inwards and outwards. For complex border styles like dashed or dotted you can useoutline
, but be aware that damned Safari only started…