- From: Xiaocheng Hu via GitHub <sysbot+gh@w3.org>
- Date: Thu, 08 Feb 2024 04:03:46 +0000
- To: public-css-archive@w3.org
I think this issue is highly related to the [Keyboard API](https://developer.mozilla.org/en-US/docs/Web/API/Keyboard_API) and should be discussed together. To prevent privacy issues, the Keyboard API requires a [permission](https://wicg.github.io/keyboard-map/#permissions-policy). For the same reason, a CSS feature that works with the physical keyboard must also require a permission. Does CSS currently work with permissions at all? I'm also wondering if we really need a new CSS feature: - Right now authors can already detect the physical keyboard (+layout) and apply styles conditionally - Since authors may want [various detailed info](https://github.com/w3c/csswg-drafts/issues/3871#issuecomment-1853831099) than just the existence of a physical keyboard, a CSS feature might end up with very complicated syntax, which looks bad to me; while JS seems more appropriate for this task And even if we do need a new CSS feature, I think we should wait until the JS API reaches a more mature status. -- GitHub Notification of comment by xiaochengh Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3871#issuecomment-1933328753 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Thursday, 8 February 2024 04:03:48 UTC