RE: How does the svg element handle CSS border and background-color?

On Mon, 23 Aug 2010, Kevin Ar18 wrote:
> > From: ian@hixie.ch
> > > > As far as I can tell, HTML5 does not consider the SVG element to 
> > > > be this kind of replaced content: 
> > > > http://www.whatwg.org/specs/web-apps/current-work/multipage/rendering.html#replaced-elements
> > >
> > > I don't really know what "replaced element" means in HTML
> >
> > It's the CSS term -- that section is the part of HTML that defines how 
> > HTML maps to CSS.
> 
> Could you perhaps clarify why the HTML5 spec doesn't list the svg 
> element (and mathml) as a replaced element?

Because it's the HTML spec, not the HTML+SVG+MathML spec.


> Does it actually mean anything, or is the svg element specifically not 
> supposed to be treated like a CSS replaced element?

That's an SVG spec issue.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'

Received on Tuesday, 24 August 2010 01:14:00 UTC