Re: [csswg-drafts] [css-pseudo] Custom properties on :root (#6641)

In a [later comment](/w3c/csswg-drafts/issues/6099#issuecomment-803938346) in #6099, I suggested something that perhaps could solve this use case, although I did not consider it at the time:

~~~~ css
@prefix ns {
  /* global final namespaced custom properties */
  --global: val;
}

:root {
  --miss: var(--global); /* no value */
  --tree: var(-ns-global); /* value: val */
}

::selection {
  --fail: var(--tree); /* no value */
  --miss: var(--global); /* no value */
  --okay: var(-ns-global); /* value: val */
}
~~~~

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


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

Received on Saturday, 8 January 2022 08:53:13 UTC