@@ -184,6 +184,74 @@ Scrolling and Clipping Overflow</h2>
184
184
185
185
Issue: Copy [[css-overflow-3#overflow-properties|Level 3 content]] when final.
186
186
187
+ <h3 id="overflow-clip-margin">
188
+ Expanding Clipping Bounds: the 'overflow-clip-margin-*' properties</h3>
189
+
190
+ <pre class="propdef shorthand">
191
+ Name : overflow-clip-margin-top, overflow-clip-margin-right, overflow-clip-margin-bottom, overflow-clip-margin-left, overflow-clip-margin-block-start, overflow-clip-margin-inline-start, overflow-clip-margin-block-end, overflow-clip-margin-inline-end
192
+ Value : <<visual-box>> || <<length [0,∞]>>
193
+ Initial : ''0px''
194
+ Inherited : no
195
+ Applies to : boxes to which 'overflow' applies
196
+ Computed value : the computed <<length>> and a <<visual-box>> keyword
197
+ Animation type : per computed value if the <<visual-box>> values match; otherwise discrete
198
+ </pre>
199
+
200
+ <pre class="propdef shorthand">
201
+ Name : overflow-clip-margin, overflow-clip-margin-inline, overflow-clip-margin-block
202
+ Value : <<visual-box>> || <<length [0,∞]>>
203
+ Initial : ''0px''
204
+ Inherited : no
205
+ Applies to : boxes to which 'overflow' applies
206
+ </pre>
207
+
208
+ These properties and their shorthands
209
+ define the <dfn export>overflow clip edge</dfn> of the box,
210
+ i.e. precisely <em> how far</em> outside its bounds
211
+ the box’s content is allowed to paint
212
+ before being clipped
213
+ by effects (such as ''overflow: clip'' , above)
214
+ that are defined to clip to the box’s [=overflow clip edge=] .
215
+ The [=shorthand=] /[=longhand=] relationships are as for 'margin' ,
216
+ but note that the [=shorthands=] have a restricted syntax.
217
+
218
+ Values are defined as follows:
219
+
220
+ <dl dfn-type=value dfn-for=overflow-clip-margin>
221
+ : <dfn><<visual-box>></dfn>
222
+ ::
223
+ Specifies the box edge to use as the [=overflow clip edge=] origin,
224
+ i.e. when the specified offset is zero.
225
+
226
+ If omitted,
227
+ defaults to ''overflow-clip-margin/padding-box'' on non-[=replaced=] elements,
228
+ or ''overflow-clip/content-box'' on [=replaced=] elements.
229
+
230
+ ISSUE(7144): Application of 'overflow-clip-margin' to [=replaced elements=]
231
+ is still being worked out.
232
+
233
+ : <dfn><<length [0,∞]>></dfn>
234
+ ::
235
+ The specified offset dictates
236
+ how much the [=overflow clip edge=] is expanded from
237
+ the specified box edge
238
+ Negative values are invalid.
239
+ Defaults to zero if omitted.
240
+ </dl>
241
+
242
+ The [=overflow clip edge=] is shaped in the corners
243
+ exactly the same way as an <a spec=css-backgrounds-3>outer box-shadow</a>
244
+ with a spread radius of the same cumulative offset
245
+ from the box’s [=border edge=] .
246
+ See [[css-backgrounds-3#corner-shaping]]
247
+ and [[css-backgrounds-3#shadow-shape]] ,
248
+ noting in particular the formula for outsets beyond the [=border edge=] .
249
+
250
+ Note: This property has no effect on boxes
251
+ with ''overflow: hidden'' or ''overflow: scroll'' ,
252
+ which are not defined to use the [=overflow clip edge=] .
253
+
254
+
187
255
<h2 id="auto-ellipsis">
188
256
Automatic Ellipses</h2>
189
257
0 commit comments