.requestFullscreen()`**)
- * When opened, force-closes auto, hint, and (with spec changes) dialog
+ * When opened, force-closes `popup=auto`, and (with spec changes) dialog
* Dismisses on [close signal](https://wicg.github.io/close-watcher/#close-signal)
-### One at a time behavior summary
-
-This table summarizes the interactions between a first top layer element (rows) and a second top layer element (columns), as the second element is shown:
-
-
- | | Second element |
- | | Fullscreen | Modal Dialog | Pop-up | Hint | Manual |
- First Element | Fullscreen | Hide | Leave | Leave | Leave | Leave |
- Modal Dialog | Hide* | Leave | Leave | Leave | Leave |
- Pop-up | Hide | Hide | Hide | Leave | Leave |
- Hint | Hide | Hide | Hide | Hide | Leave |
- Manual | Hide | Hide | Leave | Leave | Leave |
-
-
-*Not current behavior
-
-In the table, "hide" means that when the second element is shown (enters the top layer), the first element is removed from the top layer. In contrast, "leave" means both elements will remain in the top layer together.
-
-### Detailed description of interactions among pop-up types
-
-This section details the interactions between the three pop-up types:
-
-1. If a `popup=hint` is shown, it should hide **any** other open `popup=hint`s, including ancestral `popup=hint`s. (**"You can't nest `popup=hint`s".**)
-2. If a `popup=auto` is shown, it should hide **any** open `popup=hint`s, including if the `popup=hint` is an ancestral pop-up of the `popup=auto`. (**"You can't nest a pop-up inside a `popup=hint`".**)
-3. If you: **a)** show a `popup=auto` (call it D), then **b)** show an **ancestral** `popup=hint` of D (call it T) , then **c)** hide D, the `popup=hint` T should be hidden. (**"A `popup=hint` can be nested inside a pop-up."**)
-4. If you: **a)** show a `popup=auto` (call it D), then **b)** show an **non-ancestral** `popup=hint` (call it T) , then **c)** hide D, the `popup=hint` T should be left showing. (**"Non-nested `popup=hint`s can stay open when unrelated pop-ups are hidden."**)
-5. The `defaultopen` attribute should have no effect on `popup=hint`s. I.e. this attribute cannot be used to cause a `popup=hint` to be shown upon page load.
-6. The `defaultopen` attribute can be used on as many `popup=manual`s as desired, and all of them will be shown upon page load.
-7. Only the first `popup=auto` (in DOM order) containing the `defaultopen` attribute will be shown upon page load.
-
-
## Accessibility / Semantics
Since the `popup` content attribute can be applied to any element, and this only impacts the element's presentation (top layer vs not top layer), this addition does not have any direct semantic or accessibility impact. The element with the `popup` attribute will keep its existing semantics and AOM representation. For example, `
...` will continue to be exposed as an implicit `role=article`, but will be able to be displayed on top of other content. Similarly, ARIA can be used to modify accessibility mappings in [the normal way](https://w3c.github.io/html-aria/), for example `
...
`.
@@ -617,30 +580,6 @@ This section contains several HTML examples, showing how various UI elements mig
-## Hint/Tooltip
-
-
-```html
-
- Hover me
-
-
- Hint text
-
-
-
-```
-
-
-
## Manual
@@ -678,24 +617,24 @@ In any case, it is important to note that this API cannot be used to render cont
## Shadow DOM
-Note that using the API described in this explainer, it is possible for elements contained within a shadow root to be pop-ups. For example, it is possible to construct a custom element that wraps a pop-up type UI element, such as a `
`, with this DOM structure:
+Note that using the API described in this explainer, it is possible for elements contained within a shadow root to be pop-ups. For example, it is possible to construct a custom element that wraps a pop-up type UI element, such as a ``, with this DOM structure:
```html
-
+
- This is a tooltip:
+ This is a pop-up:
- Tooltip text here!
-
+ Pop-up text here!
+
```
-In this case, the (closed) shadow root contains a `` that has `popup=hint` and that element will be shown on the top layer when the custom element calls `div.showPopUp()`.
+In this case, the (closed) shadow root contains a `
` that has `popup=auto` and that element will be shown on the top layer when the custom element calls `div.showPopUp()`.
This is "normal", and the only point of this section is to point out that even shadow dom children can be promoted to the top layer, in the same way that a shadow root can contain a `