Skip to content

Commit 502207d

Browse files
committed
Fix vector image sizing to be more precise for border-image slicing.
1 parent c1bc149 commit 502207d

2 files changed

Lines changed: 17 additions & 10 deletions

File tree

css3-background/Overview.html

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@
2222

2323
<h1>CSS Backgrounds and Borders Module Level 3</h1>
2424

25-
<h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 17 January
25+
<h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 18 January
2626
2012</h2>
2727

2828
<dl>
2929
<dt>This version:
3030

31-
<dd><!-- <a href="http://www.w3.org/TR/2012/CR-css3-background-20120117">http://www.w3.org/TR/2012/ED-css3-background-20120117/</a> -->
31+
<dd><!-- <a href="http://www.w3.org/TR/2012/CR-css3-background-20120118">http://www.w3.org/TR/2012/ED-css3-background-20120118/</a> -->
3232
<a
3333
href="http://dev.w3.org/csswg/css3-background">http://dev.w3.org/csswg/css3-background</a>
3434

@@ -3210,10 +3210,7 @@ <h3 id=the-border-image-slice><span class=secno>5.2. </span>The &lsquo;<a
32103210
<dt><var>&lt;number&gt;</var>
32113211

32123212
<dd>Numbers represent pixels in the image (if the image is a raster image)
3213-
or vector coordinates (if the image is a vector image). If the image must
3214-
be sized to determine the slices (for example, for SVG images with no
3215-
intrinsic size), then it is sized to the <a
3216-
href="#border-image-area"><i>border image area</i></a>.
3213+
or vector coordinates (if the image is a vector image).
32173214

32183215
<dt><dfn id=border-image-slice-fill>&lsquo;<code
32193216
class=css>fill</code>&rsquo;</dfn>
@@ -3234,6 +3231,13 @@ <h3 id=the-border-image-slice><span class=secno>5.2. </span>The &lsquo;<a
32343231
transparent image had been specified for those parts. Analogously for the
32353232
top and bottom values.
32363233

3234+
<p>If the image must be sized to determine the slices (for example, for SVG
3235+
images with no intrinsic size), then it is sized as for an auto-sized
3236+
background, using the <a href="#border-image-area"><i>border image
3237+
area</i></a> as the <i>default object size</i> in place of the <a
3238+
href="#background-positioning-area"><i>background positioning
3239+
area</i></a>.
3240+
32373241
<p class=issue><a
32383242
href="http://www.w3.org/Style/CSS/Tracker/issues/208">ISSUE-208</a>
32393243
proposed text: If the image is an SVG image, the aspect ratio is not

css3-background/Overview.src.html

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2328,10 +2328,7 @@ <h3 id="the-border-image-slice">The 'border-image-slice' property</h3>
23282328

23292329
<dt><var>&lt;number&gt;</var>
23302330
<dd>Numbers represent pixels in the image (if the image is a raster
2331-
image) or vector coordinates (if the image is a vector image). If
2332-
the image must be sized to determine the slices (for example, for
2333-
SVG images with no intrinsic size), then it is sized to the
2334-
<i>border image area</i>.
2331+
image) or vector coordinates (if the image is a vector image).
23352332

23362333
<dt><dfn id="border-image-slice-fill">''fill''</dfn>
23372334
<dd>The ''fill'' keyword, if present, causes the middle part of
@@ -2349,6 +2346,12 @@ <h3 id="the-border-image-slice">The 'border-image-slice' property</h3>
23492346
as if a nonempty transparent image had been specified for those
23502347
parts. Analogously for the top and bottom values.
23512348

2349+
<p>If the image must be sized to determine the slices (for example,
2350+
for SVG images with no intrinsic size), then it is sized as for an
2351+
auto-sized background, using the <i>border image area</i> as the
2352+
<i>default object size</i> in place of the <i>background positioning
2353+
area</i>.
2354+
23522355
<p class=issue><a
23532356
href="http://www.w3.org/Style/CSS/Tracker/issues/208" >ISSUE-208</a>
23542357
proposed text: If the image is an SVG image, the aspect ratio is not

0 commit comments

Comments
 (0)