Re: [csswg-drafts] [css-color-4] fix of dfn-for attribute for named-color values (#9632)

The `for` values on a definition are just opaque strings that serve to namespace the definition; Bikeshed does not infer *anything* about the value used. So if you have `<color> = <named-color> | ...`, and then define a `<dfn value for="<named-color>">red</dfn>`, you can link to it with `''<named-color>/red''` but *not* with `''<color>/red''` - Bikeshed does not know that every `<named-color>` is a `<color>` as well.

This sort of inheritance relationship needs to be handled explicitly, with `for="<color>, <named-color>"` giving it two distinct `for` values.

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


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

Received on Wednesday, 29 November 2023 20:50:59 UTC