Shorthand issue with text-decoration
See original GitHub issueHi,
I’m using this plugin, and after updating to 1.4.2
(from 1.1.8
) I’m getting the error Expected variable, function or keyword for "underline" of "text-decoration-color" (scale-unlimited/declaration-strict-value)
when using text-decoration: underline
.
I guess it’s because text-decoration
is a shorthand for text-decoration-line text-decoration-color text-decoration-style
and the plugin might extend the value of text-decoration-line
to text-decoration-color
.
For now I can avoid it allowing underline
, overline
, line-through
in /color/
.
Am I doing something wrong? Is there a better way to prevent it?
Thanks
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
When to Avoid the text-decoration Shorthand Property
The reason for this behavior is that text-decoration is a shorthand property and text-decoration-thickness its associated longhand property. ...
Read more >text-decoration - CSS: Cascading Style Sheets - MDN Web Docs
The text-decoration shorthand CSS property sets the appearance of decorative lines on text. It is a shorthand for text-decoration-line, ...
Read more >Parse `text-decoration` shorthand · Issue #142 - GitHub
The text-decoration longhand properties work in browsers these days, so we need to parse this with color tokens.
Read more >Issue with text-decoration shorthand - CodePen
Insecure Resource. The resource you are linking to is using the 'http' protocol, which may not work when the browser is using https....
Read more >text-decoration shorthand is not fully displayed in Selectors & CSS ...
create a text; open Selectors & CSS dialog; write "blue underline" in the value field of text-decoration. What happened? The attribute is correctly...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks for the update @AndyOGo
True, seems quite tricky 🤔