li********@yandex.ru wrote:
i want to embed an svg image in a xhtml element
using css
Not sure what you mean by that: an SVG document is not a stylesheet, it
has its own set of elements and respectively its own set tags.
it does not work in firefox 2 and other
modern browsers.
However great Opera would be it is not of royal family to talk of it in
plural :-)
Currently UAs with native SVG support are Firefox 1.5.x, Firefox 2.x
and Opera 8.2 or higher. Though if we count all Gecko-based browsers
then the number gets higher (Camino 1.x , SeaMonkey and Co)
a) because these browsers don't support the newest standards yet,
or is it>
b) because the standards forbid to do so at all?
Neither. It is because namespaces as such and respectively mixed
namespaces by W3C exist only in XHTML. HTML by W3C doesn't have
namespace: nor default nor null - it simply doesn't have such entity
just like emptyness doesn't have color.
And XHTML exists only if document served with proper Content-Type
where the recommended is application/xhtml+xml
If it is served with Content-Type text/html then for any browser it is
a HTML document no matter how many "powerful" pragma spells you have
placed before and in <htmltag
So make your server send it as application/xhtml+xml and enjoy wherever
supported.