Re: [css3-background] What does 'border-image-slice: <number>' mean for SVG?

On 09/11/2011 09:33 AM, L. David Baron wrote:
> http://dev.w3.org/csswg/css3-background/#border-image-slice says:
>    #<number>
>    #     Numbers represent pixels in the image (if the image is a
>    #     raster image) or vector coordinates (if the image is a
>    #     vector image).
>
> I'm not sure what "vector coordinates" are, for example in the case
> of SVG.  I'm guessing that for SVG with a viewBox or with an
> intrinsic size, this means that the image is drawn at its intrinsic
> size and these "vector coordinates" are coordinates in the viewport
> coordinate system.  (But if it has both a viewBox and height/width
> attributes on the root, which win?  Is it CSS pixels on the root's
> container, or the viewport coordinate system?)  It might be good to
> clarify that, though.
>
> But what happens if the SVG doesn't have an intrinsic size or
> doesn't have a viewBox?  What size is the SVG drawn at in order to
> determine the slices?

I've added the following text:

  | If the image must be sized to determine the slices (for example,
  | for SVG images with no intrinsic size), then it is sized as for an
  | auto-sized background, using the border image area as the default
  | object size in place of the background positioning area.

Does that seem all right to you?

~fantasai

Received on Wednesday, 18 January 2012 04:11:53 UTC