W3C home > Mailing lists > Public > www-svg@w3.org > August 2010

CSS styling compliance question

From: Mark <markjord@gmail.com>
Date: Mon, 30 Aug 2010 18:34:41 +0100
Message-ID: <AANLkTikpfziRZx5OdwW1HX4dM0RFSB=TeM-T4k+7+RXk@mail.gmail.com>
To: www-svg@w3.org
Looking at the SVG specification, it says styles can be specified
using CSS external style sheets or inline using SVG style elements
containing CSS in a CDATA section.

However it's not clear to me if these external style sheets are in
fact required to be strictly CSS compliant?

For instance, look at this example in the SVG spec:-

http://www.w3.org/TR/SVG/styling.html#StylingWithCSS

It shows an external style sheet thus:-

mystyle.css
rect {
  fill: red;
  stroke: blue;
  stroke-width: 3
}

However, all of these properites are not CSS properties but in fact
SVG properties. So is this a valid CSS style sheet?  Strictly
speaking, a CSS parser might reject this as having unknown property
names according to CSS2.

Can anybody shed any further light on this issue?  Does the fact the
selector is a 'rect' change anything?


Thanks,

Mark.
Received on Monday, 30 August 2010 17:43:30 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:45 GMT