'Why was the CSS function clamp written into an Sass unquote function?
In a project I took over, the style was written with SCSS. At one point I wonder why the CSS clamp() function was written with an unquote. If I remove unquote there is no difference.
div {
font-size:unquote("clamp(30px, 10px + 2%, 30px)");
}
And without unquote
div {
font-size:clamp(30px, 10px + 2%, 30px);
}
Question:
Why did you put the clamp function into an unquote function again? If it works without!
Solution 1:[1]
The unquote function was probably used because the text in the function came from a string from an other program or service, so to make sure it will work as CSS they added that during the transfer to CSS.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Amachako |
