Closed
Bug 1289682
Opened 8 years ago
Closed 2 years ago
Relatively-positioned table-row behaves as absolute containing block in Firefox (unlike other engines)
Categories
(Core :: Layout: Positioned, defect)
Core
Layout: Positioned
Tracking
()
RESOLVED
WORKSFORME
Tracking | Status | |
---|---|---|
firefox50 | --- | affected |
People
(Reporter: dholbert, Unassigned)
References
Details
(Whiteboard: [webcompat])
Attachments
(2 files)
Spinning this off of https://github.com/webcompat/web-bugs/issues/2905
STR:
1. Load attached testcase.
EXPECTED RESULTS ("expected" = what other engines do):
"snapToRight" should be at the bottom-right edge of the black-bordered area.
ACTUAL RESULTS (in Firefox):
"snapToRight" is at the bottom-right edge of the lightblue area ("tableRow").
ANALYSIS:
It seems other browsers don't allow the lightblue element (with "display:table-row; position:relative) to form an abspos containing block, whereas we do. Not sure offhand who's correct or what the reason is for this difference.
Reporter | ||
Updated•8 years ago
|
Reporter | ||
Comment 1•8 years ago
|
||
Note that this bug seems to be involved in a LinkedIn page mis-rendering in Firefox, per https://github.com/webcompat/web-bugs/issues/2905
Reporter | ||
Comment 2•8 years ago
|
||
Actually, it looks like "position:relative" simply has no effect on the table-row in Chrome. (If I add "left: 5px" to that element, Firefox will shift it 5px away from its left edge like you'd expect for a relatively-positioned element -- but that has no effect in Chrome.)
It looks like this interaction (between relative positioning & table-row) is simply undefined in CSS2. :-/ The spec says:
> The effect of 'position:relative' on table-row-group, table-header-group,
> table-footer-group, table-row, table-column-group, table-column, table-cell,
> and table-caption elements is undefined.
https://drafts.csswg.org/css2/visuren.html#propdef-position
Reporter | ||
Comment 3•8 years ago
|
||
Comment 4•8 years ago
|
||
Updated•8 years ago
|
Updated•8 years ago
|
Updated•8 years ago
|
Whiteboard: [webcompat]
Comment 5•6 years ago
|
||
Migrating Webcompat whiteboard priorities to project flags. See bug 1547409.
Webcompat Priority: --- → ?
Comment 6•6 years ago
|
||
See bug 1547409. Migrating whiteboard priority tags to program flags.
Updated•5 years ago
|
Webcompat Priority: ? → revisit
Updated•5 years ago
|
Comment 7•2 years ago
|
||
Chrome now agrees with us, LayoutNG fixed it!
Status: NEW → RESOLVED
Closed: 2 years ago
Webcompat Priority: revisit → ---
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•