W3C home > Mailing lists > Public > www-svg@w3.org > July 2015

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

From: Jeremie Patonnier <jeremie.patonnier@gmail.com>
Date: Mon, 20 Jul 2015 16:38:22 +0200
Message-ID: <CAEi838nBh2fS5bxh2fxOg9T=2ymQ-SYBteVuPqtsdqtNbvOuKA@mail.gmail.com>
To: anatoly techtonik <techtonik@gmail.com>
Cc: www-svg <www-svg@w3.org>

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:

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:

   - 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.
Web : http://jeremie.patonnier.net
Twitter : @JeremiePat <http://twitter.com/JeremiePat>
Received on Monday, 20 July 2015 14:39:30 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:55:02 UTC