Re: Firefox white space between <object> and referenced SVG


2015-07-20 15:46 GMT+02:00 anatoly techtonik <>:
> 1. Where does this white space come from?

Assuming your HTML <object> code is the following:

<object data="my-svg-image.svg" type="image/svg+xml" width="10" height="10"
style="border: 1px solid black"></object>

If you see a space between the border and the image, it's a Firefox bug
that need to be report directly to Mozilla:|Core|

2. Is there a specification that tell if it should it be
> there or not?

I'm not sure there is an explicit mention about this in a spec, but it
worth checking the HTML spec about <object>. In such case it's that spec
that define how the <object> rendering zone and the CSS border are bound
together. It also worth checking the CSS background and border spec:


> 3. Are there any official render tests that
> track such issues (I may be able to add mine)?

I don't think there is such a specific case but it worth checking both the
SVG test suite and the HTML test suite:


Hope that help.
Web :
Twitter : @JeremiePat <>

Received on Monday, 20 July 2015 14:39:30 UTC