W3C home > Mailing lists > Public > www-style@w3.org > September 2011

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

From: L. David Baron <dbaron@dbaron.org>
Date: Sun, 11 Sep 2011 09:33:05 -0700
To: www-style@w3.org
Message-ID: <20110911163305.GA8221@pickering.dbaron.org>
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?


𝄞   L. David Baron                         http://dbaron.org/   𝄂
𝄢   Mozilla Corporation               http://www.mozilla.com/   𝄂
Received on Sunday, 11 September 2011 16:33:38 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:04 UTC