From fc67267f6b0e36ad0ff54c913133f3cdbe42bfab Mon Sep 17 00:00:00 2001 From: Westbrook Johnson Date: Sat, 2 Jul 2022 12:24:58 -0400 Subject: [PATCH 1/2] Add reference to OpenUICG Popup API --- cross-root-aria-reflection.md | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/cross-root-aria-reflection.md b/cross-root-aria-reflection.md index 4712247..04bbdc7 100644 --- a/cross-root-aria-reflection.md +++ b/cross-root-aria-reflection.md @@ -140,6 +140,37 @@ The reflection API might also not resolve attributions from multiple shadow root The attributes names such as `shadowrootreflectss*` are very long and some consideration for shorter names by removing the `shadowroot` prefix can be discussed as long the discussion is sync'ed with the stakeholders of the respective Declarative Shadow DOM proposal. This can be further shortened by taking the `reflects` collection as a DOM token list on a single attribue. +## OpenUICG Popup API + +The OpenUICG is developing an API to support content that popsup over a page. In thier example of +[using the new attributes in shadow DOM](https://open-ui.org/components/popup.research.explainer#shadow-dom) +the element owning the `popup` attribute is encapsulated in a shadow root to protect it from the +surrounding application context. This means that the relationship required for a `togglepopup`, +`showpopup`, or `hidepopup` bearing element can no longer be made from that level: + +```html + + + Tooltip text here! + +``` + +This could be addressed by reflecting the `popup` element to the host like so: + +```html + + + + Tooltip text here! + +``` + +Here, the declarative relationship between the `[togglepopup]` element and the `[popup]` elements +can be made without surfacing the `.showPopUp()` method directly on the `` container. ## Public summary from WCCG From 6467c167368b35fec1745060b4fdc71b3846d237 Mon Sep 17 00:00:00 2001 From: Westbrook Johnson Date: Sun, 17 Jul 2022 18:28:59 -0400 Subject: [PATCH 2/2] Additional non-aria attribute reflection examples --- cross-root-aria-reflection.md | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/cross-root-aria-reflection.md b/cross-root-aria-reflection.md index 04bbdc7..47134d6 100644 --- a/cross-root-aria-reflection.md +++ b/cross-root-aria-reflection.md @@ -140,7 +140,34 @@ The reflection API might also not resolve attributions from multiple shadow root The attributes names such as `shadowrootreflectss*` are very long and some consideration for shorter names by removing the `shadowroot` prefix can be discussed as long the discussion is sync'ed with the stakeholders of the respective Declarative Shadow DOM proposal. This can be further shortened by taking the `reflects` collection as a DOM token list on a single attribue. -## OpenUICG Popup API +## Non-"aria" attributes for consideration + +### datalist + +Leveraging the `datalist` attribute on an encapsulated `` element requires that support for this feature is built into the same DOM tree. Support for reflection of this attribute would free this feature to be leveraged more widely: + +```html + + + + + + + + +``` + +### OpenUICG Popup API The OpenUICG is developing an API to support content that popsup over a page. In thier example of [using the new attributes in shadow DOM](https://open-ui.org/components/popup.research.explainer#shadow-dom)