Re: [csswg-drafts] [cssom-view] Add "sticky" to the features argument to the window.open() method (#12361)

> I think that seems wrong? Shouldn't the shadows and decorations be ignored for the purposes of intersections?

Hi, I think it seems to depend on the usage.
In some scenarios, users may need to use the decorations part, like the buttons on the title bar, the scrollbar(it is part of decorations on some platforms), and so on. To make sure users could hit the buttons directly, it seems good to keep the windows separate. And this behavior is aligned to `window.screenX/screenY`. I think it seems reasonable to keep the outer window rect option.
On the other hand, users may not want to have a gap between windows in some scenarios, like a floating palette. In this case, we'd better use the content rect, align to `window.innerWidth/innerHeight`.
Maybe we could offer an option, something like `stickyAnchor: "outer" | "content"`?
WDYT?


-- 
GitHub Notification of comment by cathiechen
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12361#issuecomment-3000712316 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 24 June 2025 14:22:24 UTC