antvis / antvis/X6

Safari浏览器中不兼容自定义节点设置position: relative

Open
#4,962 5 comments 0 reactions 0 assignees View on GitHub
waiting for maintainer
Dominant language
TypeScript
Stars
6.7k
Forks
1.9k
PR merge metrics
No merged PRs in 30d

Description

### 问题描述

在Safari浏览器中使用自定义节点,给自定义节点设置定位position: relative,会出现节点‘飘走’的情况,样式审查的时候节点还在原来位置,但肉眼看节点是移位状态

### 重现链接

https://x6.antv.antgroup.com/examples/node/custom-node#custom-with-react

### 重现步骤

在register自定义节点中设置 position: "relative"

### 预期行为

期望在Safari浏览器中设置自定义节点的position: "relative"定位,节点还能保持正常,而不是飘走

### 平台

- 操作系统: [macOS.]
- 网页浏览器: [ Safari ]
- X6 版本: [2.X,3.X]

### 屏幕截图或视频(可选)

https://github.com/user-attachments/assets/1cc5d76d-dfd6-4722-b495-7cb3759a890f

### 补充说明(可选)

_No response_

Contributor guide

Open the contributing guide

Research direction

Start with the linked custom-node example and reproduce the issue in Safari after setting position: "relative" during custom-node registration. Trace the rendering path responsible for that node and compare it with another browser; done means the node stays in its intended position in Safari, with the existing reproduction still working.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.