Bug 121710

Summary: khtml truncates decimal numbers in CSS dimensions (like width)
Product: [Applications] konqueror Reporter: Geert Hendrickx <ghen>
Component: khtmlAssignee: Konqueror Developers <konq-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: NetBSD pkgsrc   
OS: NetBSD   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Geert Hendrickx 2006-02-10 15:46:00 UTC
Version:            (using KDE KDE 3.5.0)
Installed from:    NetBSD pkgsrc
Compiler:          gcc version 3.3.3 (NetBSD nb3 20040520) Configured with: /home/nick/work/netbsd/src/tools/gcc/../../gnu/dist/gcc/configure --enable-long-long --disable-multilib --enable-threads --disable-symvers --build=i386-unknown-netbsdelf2.0. --host=i386--netbsdelf --target=i386--netbsdelf
OS:                NetBSD

CSS properties like "width" apparently are truncated to integer values in KHTML.  I have a website with three items with widths of 33.333% (relative to a parent div), and Konqueror seems to use 33% instead -> I can clearly see the remaining 1% not being filled.  Opera has the same problem, Mozilla and IE6 do it right (i.e. fill the div completely with 3 times 33.333%).  

Example: http://www.epidauros.be/ .  There are three <li>'s on the top: "De Nacht", "Historiek" and "Gastenboek", each having "width: 33.333%" (in default.css, under "ul#menu li"), but if you hover over "Gastenboek", you can see the remaining 1% not turning grey.
Comment 1 Tommi Tervo 2006-02-11 17:41:15 UTC

*** This bug has been marked as a duplicate of 113630 ***