Bug 12994 - CSS2 style=max-width:200px does not work (testcase)
Summary: CSS2 style=max-width:200px does not work (testcase)
Status: CLOSED FIXED
Alias: None
Product: konqueror
Classification: Applications
Component: khtml (show other bugs)
Version: 3.0
Platform: unspecified Linux
: NOR minor
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2000-10-15 22:48 UTC by Moritz Moeller-Herrmann
Modified: 2004-07-26 17:50 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Moritz Moeller-Herrmann 2000-10-15 22:00:07 UTC
(*** This bug was imported into bugs.kde.org ***)

Package: khtml
Version: 3.0 (KDE 2.0 Release Candidate 2)
Severity: normal
Compiler: gcc version 2.95.2 19991024 (release)
OS: Linux 2.4.0-test9 i686 (compiled sources)

Both images are shown in file:/usr/share/doc/packages/selfhtml/tdchh.htm of Selfhtml

<div style="max-width:200px; border:thin solid #772200;">
Auf diesen Textbereich wird die Style-Angabe <tt>max-width:200px</tt> angewendet. Der Text sollte so umgebrochen werden daà er in den Bereich paÃt. Das folgende Bild jedoch hat eine Breite von 267 Pixeln also mehr als die erzwungenen 200 Pixel. Es sollte daher rechts abgeschnitten werden.<br>
<img src="xclipa05.jpg" width=267 height=173 alt="Testbild" border="0">
</div>

<p>Zum Vergleich hier noch mal das Bild ohne Begrenzungen:<br>
<img src="xclipa05.jpg" width=267 height=173 alt="Testbild" border="0"></p>
</body>
Comment 1 Per Ångström 2001-10-19 08:16:15 UTC
I notice that the CSS2 property 'max-width' is still not implemented in 
Konqueror 2.2.1.

Since max-width is a very useful property I beg you to implement it as 
soon as possible. It is already implemented in Mozilla and Opera.

I have set up a test page for detecting whether max-width is 
implemented in a browser:
http://www.autark.se/max_width_centering_test.html .

--
Per Ãngström
Comment 2 Stephan Binner 2002-02-08 16:42:22 UTC
Still missing in HEAD.
Comment 3 Moritz Moeller-Herrmann 2002-09-19 23:39:21 UTC
Still missing in KDE-3.1b1 
Comment 4 Jim Dabell 2002-11-13 18:04:23 UTC
Still missing in KDE 3.1-rc3. 
 
Comment 5 Maksim Orlovich 2003-01-09 22:48:27 UTC
Missing in HEAD, but Safari stuff claims to implement it.Should probably be re-tested after the 
relevant merge 
Comment 6 Moritz Moeller-Herrmann 2003-06-08 15:47:36 UTC
Tested with khtml 2003-06-03: Does not work yet. 
Comment 7 Moritz Moeller-Herrmann 2003-08-26 19:16:37 UTC
Not working yet CVS 2003-08-20 
Comment 8 Roger Larsson 2003-09-12 17:30:45 UTC
Not working yet CVS 2003-09-11 
Comment 9 Per Ångström 2003-10-15 19:14:15 UTC
Not implemented in Konqueror 3.1.4.
Comment 10 Dirk Mueller 2003-10-21 01:48:42 UTC
Fixed for 3.2. 
Comment 11 S. Burmeister 2004-02-19 17:47:32 UTC
In an effort to make Konqueror also render non-standard pages properly, why was this not implemented for table-elements, as it is for IE, Opera and Mozilla, so pretty much every browser in use?
Comment 12 Jim Dabell 2004-02-19 18:00:34 UTC
Internet Explorer doesn't implement max-width at all.  Mozilla 1.6, Firefox 0.8 and Opera 7.23 do not exhibit the behaviour you describe in standards-mode or quirks mode.  The actual usage of max-width is rare due to Internet Explorer not supporting it, so non-standard use of max-width will be even rarer.

If you have actual cases where it would be beneficial to implement this non-standard behaviour, please post them.

Comment 13 Jim Dabell 2004-02-19 18:03:08 UTC
My mistake; I read "table-elements" as "table-cell".  Everything I said still applies, except for Opera, which does exhibit the non-standard behaviour you describe.