You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[css-borders-4] Initial (somewhat scaffoldy) spec for 'border-shape' (#11656)
* [css-borders-4] Initial (somewhat scaffoldy) spec for 'border-shape'
Closes#6997
This defines the 'border-shape' property with a narrow set of details
that we've resolved on, leaving room for discussing some details as we
go along.
Specifically, this adds the two variants of 'border-shape'
(single/double <basic-shape>).
Issues to be opened separately:
* interaction with border-{width|color|style}
* Clipping replaced elements
* Lots of examples
* Expand a bit about overflow
Percentages: relative to the given <<geometry-box>>, or to [=border box=] if not given.
1110
+
Computed value: list, each item a computed color
1111
+
Animation type: by computed value
1112
+
</pre>
1113
+
1114
+
The 'border-shape' property is provided with either a single <<basic-shape>> or two <<basic-shape>>s,
1115
+
resulting in one or two paths, respectively.
1116
+
The single-path border shape varint uses the existing ''border'' properties of the element to stroke the
1117
+
path that the given <<basic-shape>> resolves to,
1118
+
while the double-path border shape variant fills the area between the two paths as if it were the border.
1119
+
1120
+
The 'border-shape' property is not compatible with 'border-radius' and 'corner-shape'.
1121
+
When an element's [=computed value=] of 'border-shape' is not <css>none</css>,
1122
+
its 'border-radius' is ignored, as if it was set to 0.
1123
+
'corner-shape' is implicitly ignored, as it can only work in tandem with 'border-radius'.
1124
+
1125
+
A 'box-shadow' follows both the inner and outer border paths.
1126
+
1127
+
'border-shape' does not affect geometry or layout,
1128
+
which is still computed using the existing 'border-width' properties.
1129
+
1130
+
'border-shape' does not affect the flow of content inside the box.
1131
+
Note: An author can use 'border-shape' in tandem with 'shape-inside' to create effects that decorate the box and control its text flow at the same time.
1132
+
1133
+
The inner 'border-shape' clips the [=overflow=] content of the element, in the same manner as 'border-radius',
1134
+
as described in <a href="https://drafts.csswg.org/css-backgrounds-3/#corner-clipping">corner clipping</a>.
1135
+
1136
+
Issue: how should this affect clipping replaced elements?
1137
+
1138
+
The fill and stroke color, as well as the stroke width, are taken from the respective 'border-color' and 'border-width' properties.
1139
+
1140
+
Issue: define this in detail. Perhaps it should be overridable somehow?
1141
+
1142
+
Issue: what do we do about 'border-style'? It can't exactly work for every arbitrary shape.
0 commit comments