Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Color keywords are replaced when prefixed with -- #1677

Closed
seamusleahy opened this issue Aug 24, 2016 · 2 comments
Closed

Color keywords are replaced when prefixed with -- #1677

seamusleahy opened this issue Aug 24, 2016 · 2 comments

Comments

@seamusleahy
Copy link

When a color keyword is prefixed with --, the value is replaced with the hex value. Other uses of the keyword are not replaces with the hex value.

Input: body{background: magenta; color: var(--magenta); border-color: var(--color-magenta);}

Output: body{background:magenta;color:var(--#ff00ff);border-color:var(--color-magenta)}

@nschonni
Copy link
Contributor

nschonni commented Sep 1, 2016

Although the title may be different this is a dupe of #1624. You can track the issue/upstream issue there.

@nschonni nschonni closed this as completed Sep 1, 2016
@xzyfer
Copy link
Contributor

xzyfer commented Sep 1, 2016

This issue elaborates on the issue with colour names further: sass/sass#2128 (comment)

You should never use a colour name unquoted in Sass. However Sass 3.5 will have better support for custom properties (--red) http://blog.sass-lang.com/posts/809572-sass-35-release-candidate. This feature has not landed yet in node-sass.

jiongle1 pushed a commit to scantist-ossops-m2/node-sass that referenced this issue Apr 7, 2024
Bind context as a pointer to function calls
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants