Skip to content

Commit d9690b5

Browse files
committed
[css-box-3] Update view-box definition with Amelia's wording in #4662 (comment)
1 parent 706d601 commit d9690b5

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

css-box-3/Overview.bs

+6-5
Original file line numberDiff line numberDiff line change
@@ -235,18 +235,19 @@ Box-edge Keywords {#keywords}
235235

236236
<dt><dfn>view-box</dfn>
237237
<dd>
238-
Refers to the nearest [=SVG viewport=]’s
238+
Refers to the nearest [=SVG viewport=] element’s
239239
<dfn dfn lt="SVG viewport origin box" local-lt="origin box">origin box</dfn>,
240240
which is a rectangle with the width and height
241-
of the [=SVG viewport=],
241+
of the initial SVG <a spec=svg2>user coordinate system</a>
242+
established by the <{svg/viewBox}> attribute for that element,
242243
positioned such that its top left corner is anchored
243244
at the coordinate system origin.
244245
(In a CSS box context, treated as ''<box>/border-box''.)
245246

246-
Note: When the [=SVG viewport=]
247-
is not itself anchored at the origin,
247+
Note: When the <{svg/viewBox}>
248+
includes non-zero <var ignore>min-x</var> or <var ignore>min-y</var> offsets,
248249
this [=origin box=] does not actually correspond
249-
to the [=SVG viewport=]!
250+
to the visible region rectangle defined by the <{svg/viewBox}>!
250251
<!-- This is a legacy compat requirement.
251252
See https://github.com/w3c/csswg-drafts/issues/4662 -->
252253
</dl>

0 commit comments

Comments
 (0)