Bug 146844 - Extra border space in table after a row has position: absolute
Summary: Extra border space in table after a row has position: absolute
Status: RESOLVED CONFIGURATION CHANGED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tables (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac (Intel) OS X 10.9
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-10 11:32 PDT by akrawitz
Modified: 2023-03-21 09:12 PDT (History)
4 users (show)

See Also:


Attachments
Example of the table before hand. (13.70 KB, image/png)
2015-07-10 11:32 PDT, akrawitz
no flags Details
Table after toggling the second row to "position: absolute" and then back to the default "position: static" (13.73 KB, image/png)
2015-07-10 11:33 PDT, akrawitz
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description akrawitz 2015-07-10 11:32:02 PDT
Created attachment 256596 [details]
Example of the table before hand.

In a table with 'border-collapse: separate', if a row has its style changed to include 'position: absolute', then extra border space is added to the table. This extra space then remains even if the row is switched back to the default 'position: static' or is removed from the table.

In this fiddle (which uses pure JavaScript, no jQuery or jQuery UI), you can add and remove rows and toggle a row between it's default of 'position: static' and an applied 'position: absolute'. When you toggle the position, I also change the color to a transparent red, so you can see what is going on a bit better. Once a row has been toggled to 'position: absolute', extra border space appears in the table. The extra space sticks around, even if you then toggle the row back to 'position: static' or remove it:  http://jsfiddle.net/3hffrur9/2/

This problem is occuring in Safari 7.1.7. It has been reported to me that it is also occurring in Safari 8.0.7 and Safari 9.0. And I have also now observed it in the current nightly build of WebKit (601.1.39).
Comment 1 akrawitz 2015-07-10 11:33:12 PDT
Created attachment 256597 [details]
Table after toggling the second row to "position: absolute" and then back to the default "position: static"
Comment 2 Ahmad Saleem 2023-03-20 18:32:51 PDT
I am not able to reproduce this bug in Safari Technology Preview 165, where clicking on 2nd row toggle and back does not lead to increase border width between first and second row and matches with the reference image of “Example of the table before hand”. Thanks!

This also does not reproduce in Safari 16.3, so it might be fixed long time back. Thanks!
Comment 3 akrawitz 2023-03-21 09:07:54 PDT
As you might imagine, I had long ago forgotten about ever posting this bug.

In any case, I just tried this, and I agree that the problem no longer seems to exist.

Presumably, it has been fixed sometime in the last 8 years.

I've marked it RESOLVED FIXED - I'm not sure if WORKSFORME would be more appropriate, since I can't point to a specific fix - let me know.

Thanks,
Adam
Comment 4 Alexey Proskuryakov 2023-03-21 09:12:42 PDT
We use Configuration Changed for issues that went away without a known fix. Thank you for confirming!