Bug 62654 - hangs up when stylesheet display table-cell for body is used
Summary: hangs up when stylesheet display table-cell for body is used
Status: RESOLVED FIXED
Alias: None
Product: konqueror
Classification: Applications
Component: khtml renderer (show other bugs)
Version: 4.0
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-08-14 10:40 UTC by bernhardberger
Modified: 2005-07-29 10:58 UTC (History)
0 users

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 bernhardberger 2003-08-14 10:40:26 UTC
Version:           4.0 (using KDE 3.0.4)
Compiler:          gcc version 2.96 20000731 (Red Hat Linux 7.3 2.96-112)
OS:          Linux (i686) release 2.4.18-3

Konqueror hangs up, when I use the stylesheet "display: table-cell" for the body tag. When I use "display: table-cell" for other elements (f.ex. <p>) it works okay.

Example:
<html>
  <head>
    <title>Testseite</title>
    <style type="text/css">
      <!--
     body {
       display : table-cell;
      }
      -->
    </style>
  </head>

  <body>Just a test</body>
</html>
Comment 1 Pablo Pita Leira 2003-11-23 02:26:13 UTC
I can confirm the bug: konqueror hangs on the given page (KDE CVS 3.1.93). 

Well, there is no problem with the tag body having a property display with a value table-cell. The CSS2 spec concerning the display property is here: http://www.w3.org/TR/CSS2/visuren.html#propdef-display. I read:
 
<em>These values cause an element to behave like a table element (subject to restrictions described in the chapter on tables)</em>

When considering the restrictions on tables I find in the spec :

<em>User agents may ignore these 'display' property values for HTML documents, since authors should not alter an element's expected behavior.</em> 

Thus, I believe Konqueror could ignore this display value in the body tag (and all display values giving a bizarre behaviour in the body tag).
Comment 2 Stephan Kulow 2003-11-28 23:01:19 UTC
Is there any real life web page that would do that beside evil tests like:
http://www.bath.ac.uk/%7Epy8ieh/internet/eviltests/htmlbodyheadrendering2.html

Webcore got a special hack for that in RenderContainer::addChild - for those interested.
Comment 3 Tommi Tervo 2005-07-29 10:58:44 UTC
Konqueror 3.4.1 (and 3.5-devel) won't hang on test case. (and evil test case works fine too).