Re: [csswg-drafts] [css-ui] Standardize tooltip styling and expose as `::tooltip` (#8930)

I’ve been ranting about this for years now. I don’t want popover hint, or manual popovers, or positioning for that matter (the browser should take care of that).

Just make the tooltip stylable (in another layer if necessary), make it pop up when the native tooltip would (or sooner, preferably) and make it support the content of the title attribute (Unicode?). No nested stuff etc (we have popover for that) but also no new dom elements or javascript to fix what isn’t broken. (We have popover / dialog for that)

I don’t think we need an always-available pseudo element for this. Just a `[title]:hover::tooltip {}` kind of style (generated content  seems overkill when `content: attr(title)` is what we want and maybe nothing else).

A simple 

```
::tooltip {
 appearance: base-tooltip;
 border: 1px solid ButtonBorder; /* or a default value */
 border-radius: 0.25em;
 background: Canvas; /* or a default value */
 color: CanvasText; /* or a default value */
 transition-delay: 0.3s; /* maybe */
}

```

Would do in most cases 

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


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

Received on Wednesday, 6 August 2025 11:09:11 UTC