On 5 Aug 2009, at 06:31, Bruno Fassino wrote:

ピエール・アンリ・ラヴィン wrote:

I don't understand the following issue with Opera:

Let's set a container to 4000px, and children elements to 12.5%
4000px / 12.5 = 320px.
But for Opera,
* 12.5px => 12px : I can understand
* 12.5% => 12% : I don't understand


I can only say that this is an old issue with Opera, still present in
beta versions of Opera 10: it simply ignores the fractional part in
percentages used as width.
In the past Opera had even worse "approximation" problems, see [1].
Now most of these are fixed, but percentage widths are still "stepped"
[2], and borders expressed in em still have a crazy behavior [3].

Yes, we have had and do have a number of rounding issues in Presto. The worst issues that were causing the biggest problems have been fixed but there are some left. They are something we are looking into fixing but they need to be put into priority with other bug fixes and new capabilities.

I'd be careful with pixel perfect layouts in general as it is difficult getting them consistent across browsers, and especially platforms. Just the different anti-aliasing can change things, or is often the case in our bug reports, developers line things up pixel perfect and don't take into account platforms like Linux have different fonts with different x heights and the whole layout falls down like a stack of cards as the linux font takes up more space.



Best regards,
Bruno


[1] http://brunildo.org/test/emarg.pl
[2] http://brunildo.org/test/percwidth2.pl
[3] http://brunildo.org/test/embord.pl

--
Bruno Fassino http://www.brunildo.org/test


*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [email protected]
*******************************************************************

David Storey

Chief Web Opener / Product Manager, Opera Dragonfly
W3C WG:  Mobile Web Best Practices / SVG Interest Group

Opera Software ASA, Oslo, Norway
Mobile: +47 94 22 02 32



*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [email protected]
*******************************************************************

Reply via email to