Groups > Browsers > Opera Browser Page display > Re: Very old Opera float bug




Very old Opera float bug

Very old Opera float bug
Wed, 21 Feb 2007 11:04:19 -000
Can anyone with Opera 10 let me know if the bug has been fixed that causes  
multiple floated boxes with side margins to end up being drawn too narrow  
so that a gap appears to their right?

I reported this for Opera 7, 8 and 9 but it still wasn't fixed in 9.1.  
Here is a simple demo:

   http://www.geocities.com/prestocsin/floats.html

Opera always draws them too narrow by about the same amount, no matter how  
many columns are used. In real pages/designs I often find that Opera 5  
Post Reply
Re: Very old Opera float bug
Wed, 21 Feb 2007 15:29:12 +010
On Wed, 21 Feb 2007 12:04:19 +0100, Eik <spam@hotmail.com> wrote:

> Can anyone with Opera 10 let me know if the bug has been fixed that  
> causes multiple floated boxes with side margins to end up being drawn  
> too narrow so that a gap appears to their right?
>
> I reported this for Opera 7, 8 and 9 but it still wasn't fixed in 9.1.  
> Here is a simple demo:
>
>    http://www.geocities.com/prestocsin/floats.html
>
> Opera always draws them too narrow by about the same amount, no matter  
> how many columns are used. In real pages/designs I often find that Opera  
> 5 renders the columns correctly while Opera 7-9 leaves the gap.

Opera 9.20 8713 [1] and Firefox 2.0.0.1:  
http://files.myopera.com/remcolanting/files/boxes.png
IE7: http://files.myopera.com/remcolanting/files/boxes2.png

Are you saying Opera 9.10 renders them like IE7 does? In that case the bug  
has been fixed :D

Remco

[1] http://my.opera.com/desktopteam/blog/

-- 
Post Reply
Re: Very old Opera float bug
Wed, 21 Feb 2007 16:00:10 -000
On Wed, 21 Feb 2007 14:29:12 -0000, Remco Lanting  
<remco.lanting@no.spam.at.gmail.com.please> wrote:

> On Wed, 21 Feb 2007 12:04:19 +0100, Eik <spam@hotmail.com> wrote:
>
>> Can anyone with Opera 10 let me know if the bug has been fixed that  
>> causes multiple floated boxes with side margins to end up being drawn 

>> too narrow so that a gap appears to their right?

> Opera 9.20 8713 [1] and Firefox 2.0.0.1:  
> http://files.myopera.com/remcolanting/files/boxes.png
> IE7: http://files.myopera.com/remcolanting/files/boxes2.png
>
> Are you saying Opera 9.10 renders them like IE7 does? In that case the  
> bug has been fixed :D

Thanks for the screenshots. Sadly Opera 9.2 is still drawing it wrong,  
though Firefox is doing it right (perhaps a pixel or two lost to rounding  
issues but still good enough). IE7 looks quite wrong. I only have IE6 here  
at the moment and it's rendering just like Firefox (1.5 on my system). In  
other 'real' pages where I've used this method on columns, IE7 usually  
gets it right too.

But any way, forget about IE7 for this example :-) Why can't Opera get it  
right for the last 4 years? In some real pages I've seen Opera 5 get the  
widths right but Opera 7-9 always draws their combined width to about 1%  
narrower than the parent element, so why is that last 1% being lost?  
Compare the Firefox and Opera screenshots carefully and see how all the  
black gaps between the boxes along each row are equal (though the gap  
varies from row-to-row because there are a different number of columns and  
it's necessary to use only integers for widths and adjust the margins  
since Opera ignores the float part of width values set in percentages),  
whereas in Opera the black gap at the end of each row is wider than the  
previous gaps on the same row.

The yellow boxes and gaps should add up like this:

   1% + (1%+30%+1%) + 1% + (1%+30%+1%) + 1% + (1%+30%+1%) + 1% = 100%

...but in opera that last number is more than 1%, so either the yellow  
boxes are drawn smaller than 32% or the preceding black gaps are being  
drawn to less than 1% (when the percentages are converted into pixels), or  
both!

Here's an edited screenshot where I've cut out the black gaps from each  
row and stacked them so you can see the last gap is too big:

   http://www.geocities.com/prestocsin/gaps.png

I don't like presto imposing a percentage tax on my columns, albeit a  
Post Reply
Re: Very old Opera float bug
Wed, 21 Feb 2007 16:36:10 +010
On Wed, 21 Feb 2007 15:29:12 +0100, Remco Lanting wrote:

> On Wed, 21 Feb 2007 12:04:19 +0100, Eik <spam@hotmail.com> wrote:
>
>> Can anyone with Opera 10 let me know if the bug has been fixed that  
>> causes multiple floated boxes with side margins to end up being drawn 

>> too narrow so that a gap appears to their right?
>>
>> I reported this for Opera 7, 8 and 9 but it still wasn't fixed in 9.1. 

>> Here is a simple demo:
>>
>>    http://www.geocities.com/prestocsin/floats.html
>>
>> Opera always draws them too narrow by about the same amount, no matter 

>> how many columns are used. In real pages/designs I often find that  
>> Opera 5 renders the columns correctly while Opera 7-9 leaves the gap.

I don't see any difference in rendering between 9.2 and my Peregrine  
build. But the testcase isn't very clear on what the difference should be,  
it looks pretty much the same in FF as well.

> Opera 9.20 8713 [1] and Firefox 2.0.0.1:  
> http://files.myopera.com/remcolanting/files/boxes.png
> IE7: http://files.myopera.com/remcolanting/files/boxes2.png
>
> Are you saying Opera 9.10 renders them like IE7 does? In that case the  
> bug has been fixed :D

-- 

                                                    Rijk van Geijtenbeek
                                  Opera Software ASA, Documentation & QA
Post Reply
Re: Very old Opera float bug
Thu, 22 Feb 2007 18:16:58 -050
On Wed, 21 Feb 2007 16:00:10 -0000, Eik <spam@hotmail.com> wrote:

>On Wed, 21 Feb 2007 14:29:12 -0000, Remco Lanting  
><remco.lanting@no.spam.at.gmail.com.please> wrote:
>
>> On Wed, 21 Feb 2007 12:04:19 +0100, Eik <spam@hotmail.com>
wrote:
>>
>>> Can anyone with Opera 10 let me know if the bug has been fixed that
 
>>> causes multiple floated boxes with side margins to end up being
drawn  
>>> too narrow so that a gap appears to their right?
>
>> Opera 9.20 8713 [1] and Firefox 2.0.0.1:  
>> http://files.myopera.com/remcolanting/files/boxes.png
>> IE7: http://files.myopera.com/remcolanting/files/boxes2.png
>>
>> Are you saying Opera 9.10 renders them like IE7 does? In that case the 

>> bug has been fixed :D
>
>Thanks for the screenshots. Sadly Opera 9.2 is still drawing it wrong,  
>though Firefox is doing it right (perhaps a pixel or two lost to rounding  
>issues but still good enough).

[...]

>But any way, forget about IE7 for this example :-) Why can't Opera get it  
>right for the last 4 years?

My best guess is that:

a) no one has noticed this problem
b) we haven't received a bug report about it

-- 
Tim Altman
Core QA
Opera Software
Post Reply
<< Previous 1 2 Next >>
( Page 1 of 2 )
about | contact