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

Hi!

2015-07-20 15:46 GMT+02:00 anatoly techtonik <techtonik@gmail.com>:
>
> 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:
https://bugzilla.mozilla.org/enter_bug.cgi?format=guided#h=dupes|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:

   -
   https://html.spec.whatwg.org/multipage/embedded-content.html#the-object-element
   - http://drafts.csswg.org/css-backgrounds-3/
   - http://drafts.csswg.org/css-backgrounds-4/



> 3. Are there any official w3.org 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:

   - http://www.w3.org/html/wg/wiki/Testing
   - http://www.w3.org/Graphics/SVG/WG/wiki/Test_Suite_Overview

Hope that help.
Best,
-- 
Jeremie
.............................
Web : http://jeremie.patonnier.net
Twitter : @JeremiePat <http://twitter.com/JeremiePat>

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