Bug 240961 - `position: relative` doesn't work as expected on table row
Summary: `position: relative` doesn't work as expected on table row
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tables (show other bugs)
Version: Safari 15
Hardware: All All
: P2 Major
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-05-26 10:29 PDT by Benoît Rouleau
Modified: 2022-06-02 10:30 PDT (History)
3 users (show)

See Also:


Attachments
Example HTML file showcasing the issue (627 bytes, text/html)
2022-05-26 10:29 PDT, Benoît Rouleau
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Benoît Rouleau 2022-05-26 10:29:06 PDT
Created attachment 459789 [details]
Example HTML file showcasing the issue

When trying to absolute-position an element relative to the nearest `position: relative` table row (`tr`), it skips the `tr` and positions it relative to the next ancestor with `position: relative`.

In the example HTML file provided, it positions it relative to the document because there is no other ancestor with `position: relative`. Open this file in Safari, Chrome, and Firefox, and you'll see that Safari is the only one that has this issue.

Thank you!
Comment 1 Radar WebKit Bug Importer 2022-06-02 10:30:14 PDT
<rdar://problem/94294819>