Skip to content

Commit cbf2d87

Browse files
committed
[css-box] Define box-edge keywords with appropriate namespaces
1 parent 253b28e commit cbf2d87

File tree

2 files changed

+22
-22
lines changed

2 files changed

+22
-22
lines changed

css-box-3/Overview.bs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -215,38 +215,38 @@ Box-edge Keywords {#keywords}
215215
in properties (such as 'transform-box' and 'background-clip')
216216
that need to refer to various box edges:
217217

218-
<dl dfn-for="<box>,<shape-box>,<geometry-box>" dfn-type=value>
219-
<dt><dfn>content-box</dfn>
218+
<dl dfn-type=value>
219+
<dt><dfn dfn-for="<box>,<visual-box>,<shape-box>,<geometry-box>">content-box</dfn>
220220
<dd>
221221
Refers to the [=content box=] or [=content edge=].
222222
(In an SVG context, treated as ''<box>/fill-box''.)
223223

224-
<dt><dfn>padding-box</dfn>
224+
<dt><dfn dfn-for="<box>,<visual-box>,<shape-box>,<geometry-box>">padding-box</dfn>
225225
<dd>
226226
Refers to the [=padding box=] or [=padding edge=].
227227
(In an SVG context, treated as ''<box>/fill-box''.)
228228

229-
<dt><dfn>border-box</dfn>
229+
<dt><dfn dfn-for="<box>,<visual-box>,<shape-box>,<geometry-box>">border-box</dfn>
230230
<dd>
231231
Refers to the [=border box=] or [=border edge=].
232232
(In an SVG context, treated as ''<box>/stroke-box''.)
233233

234-
<dt><dfn>margin-box</dfn>
234+
<dt><dfn dfn-for="<box>,<visual-box>,<shape-box>,<geometry-box>">margin-box</dfn>
235235
<dd>
236236
Refers to the [=margin box=] or [=margin edge=].
237237
(In an SVG context, treated as ''<box>/stroke-box''.)
238238

239-
<dt><dfn>fill-box</dfn>
239+
<dt><dfn dfn-for="<box>,<paint-box>">fill-box</dfn>
240240
<dd>
241241
Refers to the [=object bounding box=] or its edges.
242242
(In a CSS box context, treated as ''<box>/content-box''.)
243243

244-
<dt><dfn>stroke-box</dfn>
244+
<dt><dfn dfn-for="<box>,<paint-box>">stroke-box</dfn>
245245
<dd>
246246
Refers to the [=stroke bounding box=] or its edges.
247247
(In a CSS box context, treated as ''<box>/border-box''.)
248248

249-
<dt><dfn>view-box</dfn>
249+
<dt><dfn dfn-for="<box>,<coord-box>">view-box</dfn>
250250
<dd>
251251
Refers to the nearest [=SVG viewport=] element’s
252252
<dfn dfn lt="SVG viewport origin box" local-lt="origin box">origin box</dfn>,
@@ -268,9 +268,9 @@ Box-edge Keywords {#keywords}
268268
For convenience, the following value types are defined:
269269
<pre class="prod">
270270
<dfn><<visual-box>></dfn> = content-box | padding-box | border-box
271-
<dfn><<layout-box>></dfn> = content-box | padding-box | border-box | margin-box
272-
<dfn><<paint-box>></dfn> = content-box | padding-box | border-box | fill-box | stroke-box
273-
<dfn><<coord-box>></dfn> = content-box | padding-box | border-box | fill-box | stroke-box | view-box
271+
<dfn><<layout-box>></dfn> = <<visual-box>> | margin-box
272+
<dfn><<paint-box>></dfn> = <<visual-box>> | fill-box | stroke-box
273+
<dfn><<coord-box>></dfn> = <<paint-box>> | view-box
274274
</pre>
275275

276276
Margins {#margins}

css-box-4/Overview.bs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -201,38 +201,38 @@ Box-edge Keywords {#keywords}
201201
in properties (such as 'transform-box' and 'background-clip')
202202
that need to refer to various box edges:
203203

204-
<dl dfn-for="<box>,<shape-box>,<geometry-box>" dfn-type=value>
205-
<dt><dfn>content-box</dfn>
204+
<dl dfn-type=value>
205+
<dt><dfn dfn-for="<box>,<visual-box>,<shape-box>,<geometry-box>">content-box</dfn>
206206
<dd>
207207
Refers to the [=content box=] or [=content edge=].
208208
(In an SVG context, treated as ''<box>/fill-box''.)
209209

210-
<dt><dfn>padding-box</dfn>
210+
<dt><dfn dfn-for="<box>,<visual-box>,<shape-box>,<geometry-box>">padding-box</dfn>
211211
<dd>
212212
Refers to the [=padding box=] or [=padding edge=].
213213
(In an SVG context, treated as ''<box>/fill-box''.)
214214

215-
<dt><dfn>border-box</dfn>
215+
<dt><dfn dfn-for="<box>,<visual-box>,<shape-box>,<geometry-box>">border-box</dfn>
216216
<dd>
217217
Refers to the [=border box=] or [=border edge=].
218218
(In an SVG context, treated as ''<box>/stroke-box''.)
219219

220-
<dt><dfn>margin-box</dfn>
220+
<dt><dfn dfn-for="<box>,<visual-box>,<shape-box>,<geometry-box>">margin-box</dfn>
221221
<dd>
222222
Refers to the [=margin box=] or [=margin edge=].
223223
(In an SVG context, treated as ''<box>/stroke-box''.)
224224

225-
<dt><dfn>fill-box</dfn>
225+
<dt><dfn dfn-for="<box>,<paint-box>">fill-box</dfn>
226226
<dd>
227227
Refers to the [=object bounding box=] or its edges.
228228
(In a CSS box context, treated as ''<box>/content-box''.)
229229

230-
<dt><dfn>stroke-box</dfn>
230+
<dt><dfn dfn-for="<box>,<paint-box>">stroke-box</dfn>
231231
<dd>
232232
Refers to the [=stroke bounding box=] or its edges.
233233
(In a CSS box context, treated as ''<box>/border-box''.)
234234

235-
<dt><dfn>view-box</dfn>
235+
<dt><dfn dfn-for="<box>,<coord-box>">view-box</dfn>
236236
<dd>
237237
Refers to the nearest [=SVG viewport=]’s
238238
<dfn dfn lt="SVG viewport origin box" local-lt="origin box">origin box</dfn>,
@@ -253,9 +253,9 @@ Box-edge Keywords {#keywords}
253253
For convenience, the following value types are defined:
254254
<pre class="prod">
255255
<dfn><<visual-box>></dfn> = content-box | padding-box | border-box
256-
<dfn><<layout-box>></dfn> = content-box | padding-box | border-box | margin-box
257-
<dfn><<paint-box>></dfn> = content-box | padding-box | border-box | fill-box | stroke-box
258-
<dfn><<coord-box>></dfn> = content-box | padding-box | border-box | fill-box | stroke-box | view-box
256+
<dfn><<layout-box>></dfn> = <<visual-box>> | margin-box
257+
<dfn><<paint-box>></dfn> = <<visual-box>> | fill-box | stroke-box
258+
<dfn><<coord-box>></dfn> = <<paint-box>> | view-box
259259
</pre>
260260

261261
Margins {#margins}

0 commit comments

Comments
 (0)