| Summary: | CSS "display: table" formats improperly | ||
|---|---|---|---|
| Product: | [Applications] konqueror | Reporter: | Maciej J . Woloszyk <matofesi> |
| Component: | khtml renderer | Assignee: | Konqueror Bugs <konqueror-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | d-frog |
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | unspecified | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Maciej J . Woloszyk
2006-11-30 12:43:23 UTC
Could you make a small test case? Hmmm... I tried to make the smallest test case showing the problem and what I fount is that the problem is probably somewhere in JavaScript. Test case can be seen here: http://www.janussa.pl/138146-testcase/ It should load and look like this: http://www.janussa.pl/138146-testcase/snap1.jpg Then when you move your mouse over the images, links etc. texts suddenly jump to the left and then it looks like this: http://www.janussa.pl/138146-testcase/snap2.jpg Offender seems to be somewhere in the file http://www.janussa.pl/138146-testcase/skrypt2.js (which is the original file cut down to the minimum). m. I get the same problem even without the javascript. Something makes the relayout on mouseover act differently. Ok. Didn't catched that... When cuting down the code I thought that removing scripts solved the problem... Now I can see it is something with styles - it acts the same without script or even with js disabled. Here is the test case without script: http://www.janussa.pl/138146-testcase/index1.html , and here: http://www.janussa.pl/138146-testcase/index2.html is the same without "display: table" in "rightSection" class. m. Very weird --- for me your reduced versions render fine, but the website doesn't.... Problem is that this happens in kin of random fashion - when creating testcase I have a lot of problems to identify what is absolutely necessary to show the problem. Try loading testcase a few times and move mouse pointer over it - it should show up. m. Tommi pointed out a way for me to reproduce it --- clicking on the image... Still, it just happens on the original.... Let's see if VG says anything.. I never see it when first loaded. Only when after hovering a link or opening DOM viewer SVN commit 618830 by ggarand:
table objects always flowAroundFloats
BUG: 138146
M +1 -0 render_table.cpp
--- branches/KDE/3.5/kdelibs/khtml/rendering/render_table.cpp #618829:618830
@@ -84,6 +84,7 @@
ETableLayout oldTableLayout = style() ? style()->tableLayout() : TAUTO;
if ( _style->display() == INLINE ) _style->setDisplay( INLINE_TABLE );
if ( _style->display() != INLINE_TABLE ) _style->setDisplay(TABLE);
+ if ( !_style->flowAroundFloats() ) _style->setFlowAroundFloats(true);
RenderBlock::setStyle(_style);
// init RenderObject attributes
*** Bug 95088 has been marked as a duplicate of this bug. *** |