Bug 15268 - display:table-row always shows as the first row irrespective of where its defined.
Summary: display:table-row always shows as the first row irrespective of where its def...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: 523.x (Safari 3)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL: http://www.wow-europe.com/es/index.xml
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2007-09-24 08:00 PDT by Anantha Keesara
Modified: 2022-07-26 19:52 PDT (History)
9 users (show)

See Also:


Attachments
display:table-row always shows as the first row irrespective of where its defined. (263 bytes, text/html)
2007-09-24 08:01 PDT, Anantha Keesara
no flags Details
Safari 15.6 matches with Chrome but differs from Firefox (400.21 KB, image/png)
2022-07-25 16:49 PDT, Ahmad Saleem
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Anantha Keesara 2007-09-24 08:00:31 PDT
Please see the attached testcase.

All three browsers(IE,FF,Safari) render different.
Comment 1 Anantha Keesara 2007-09-24 08:01:14 PDT
Created attachment 16368 [details]
display:table-row always shows as the first row irrespective of where its defined.
Comment 2 Robert Blaut 2008-03-09 13:56:59 PDT
In my opinion element with display:table-row shouldn't have influence on calculating parent element height like normal <tr> element so the case exposes bug in Webkit. Only Firefox displays it correctly. Opera also fails but differently.
Comment 3 Dave Hyatt 2008-03-09 14:01:49 PDT
The table is before the first div.  This is clearly some kind of ordering bug.

In addition in quirks mode we allow a table with no cells to have height (either from the row or the table specifying a height).  However for CSS-anonymous tables we really should not support the quirk.

So I see two bugs here.
Comment 4 Robert Blaut 2008-03-09 14:13:40 PDT
(In reply to comment #3)
> In addition in quirks mode we allow a table with no cells to have height
> (either from the row or the table specifying a height).  However for
> CSS-anonymous tables we really should not support the quirk.

Dave, in strict mode the test case looks identical as in quirks mode: http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C!DOCTYPE%20html%3E%0A%3Cdiv%20%20style%3D%22border%3A2px%20solid%20black%3B%20%20width%3A%20100px%22%3E%0A%20%20%20%20%20%3Cdiv%20%20style%3D%22border%3A2px%20solid%20red%3Bheight%3A%2060px%3B%20width%3A%2080px%3B%22%3E%3C%2Fdiv%3E%0A%20%20%20%20%20%3Cdiv%20style%3D%22border%3A2px%20solid%20green%3B%20display%3A%20table-row%3B%20width%3A%2080px%3B%20height%3A%2020px%3B%22%3E%3C%2Fdiv%3E%0A%3C%2Fdiv%3E
Comment 5 Ahmad Saleem 2022-07-25 16:49:17 PDT
Created attachment 461205 [details]
Safari 15.6 matches with Chrome but differs from Firefox

I am not sure on web-spec nor on expected result but as can be seen from attached screenshot - Safari matches with Chrome but differ from Firefox. Thanks!
Comment 6 Radar WebKit Bug Importer 2022-07-26 19:52:49 PDT
<rdar://problem/97642125>