- From: Mustaq Ahmed via GitHub <noreply@w3.org>
- Date: Fri, 12 Sep 2025 20:51:23 +0000
- To: public-css-archive@w3.org
mustaqahmed has just created a new issue for https://github.com/w3c/csswg-drafts: == [cssom-view] What "type" of promises would the scroll methods return? == This is a follow-up issue for resolution #1562 (the scroll methods would return promises): would the promise be resolved differently to mark scroll completion vs interruption? A few important details came up in PR #12355 (for the same resolution). I am summarizing them here for wider discussion, they seem to deserve a separate resolution. - We explored resolving a promise with a true to mark completion and false "otherwise". This raised the question if `let scroll_completed = await elem.scrollBy(10)` is a semantic a developer would really want. - We discussed what the "otherwise" above could possibly mean here. Does one programmatic scroll request interrupt all pending promises? Or only the pending ones for the same or "related" scroller? - We can resolve a Promise with a `ScrollResult` enum instead of a Boolean, which could return the cause of non-completion etc. If so, what could be its possible values? Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12790 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Friday, 12 September 2025 20:51:24 UTC