- From: Christoph Päper via GitHub <sysbot+gh@w3.org>
- Date: Wed, 17 Mar 2021 19:47:36 +0000
- To: public-css-archive@w3.org
I didn’t say there would be no changes needed to [css-namespaces]. The use case this would solve is the following: Have pseudo-constant pseudo-custom properties specified by a third party that are usable by many authors who will not want to nor be able to overwrite the values. In `https://example.com/ns`: ~~~~ css :root {--green: #090;} foo {--green: #3F3;} ~~~~ In my stylesheet: ~~~~ css @namespace vnd url("https://example.com/ns"); @namespace svg url("http://www.w3.org/2000/svg"); :root {--green: #2A2;} foo {--green: #1E1;} bar { -vnd-green: #F00; /* invalid property */ -svg-green: #E00; /* invalid property */ -moz-green: #D00; /* invalid property */ } bar { color: var(--green); /* #2A2 */ color: var(-vnd-green); /* #090 */ color: var(-svg-green); /* undefined */ color: var(-moz-green); /* undefined */ } foo { color: var(--green); /* #1E1 */ color: var(-vnd-green); /* #090 */ } ~~~~ -- GitHub Notification of comment by Crissov Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6099#issuecomment-801374981 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 17 March 2021 19:47:38 UTC