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

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

From: anatoly techtonik <techtonik@gmail.com>
Date: Tue, 21 Jul 2015 20:17:10 +0300
Message-ID: <CAPkN8xJLpwit-wn6DYkcGSYOfoSR65cJ5AGaZ3caTf-SbwGHew@mail.gmail.com>
To: Jeremie Patonnier <jeremie.patonnier@gmail.com>
Cc: www-svg <www-svg@w3.org>
On Mon, Jul 20, 2015 at 5:38 PM, Jeremie Patonnier <
jeremie.patonnier@gmail.com> wrote:

> 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>
>

A bit more complicated than that.
The markup is uploaded here:
http://techtonik.bitbucket.org/svg/

<body>
  <div>
    <h3>Header is important</h3>
    <object style="border: 1px solid black" data="box.svg"/>
  </div>
</body>

Chrome: http://techtonik.bitbucket.org/svg/chrome43.png
Firefox: http://techtonik.bitbucket.org/svg/firefox39.png


> 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>
>



-- 
anatoly t.
Received on Tuesday, 21 July 2015 17:17:57 UTC

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