WPIntell

Source evidence

ID reference prefixed

WP-LESS · support · 2021-09-06T10:09:00+00:00

complaintsentiment
mediumseverity
0.8relevance
4replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

2 / 14 rows with source links

14.3% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

12 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
woakley unresolved
Awesome to see an update to this plugin! Entering this in a less file: clip-path: ~"url(#myClip)"; Results in: clip-path: url( https://example.com/wp-content/themes/theme/assets/css/#myClip ); Can this be fixed/changed please? This topic was modified 4 years, 8 months ago by woakley . Hi @woakley What should myClip contain? Since it is in the URL, the ID is automatically pulled. If you want to store certain things in LESS, do you need to use variables or mixins? Greetings Kevin Basically less shouldn’t process this at all, it should keep the value url(#myClip) and not add anything to it It’s not a file reference it’s just an ID. @woakley I have now looked at the parser from wikimedia that is used for parsing LESS. I think it’s because your ID is matched with the following regex: /\\G#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})/ So the value is parsed differently than it should. Have you tried this with an ID longer than 6 characters? WP-Less uses the libraries from wikimedia (since 1.9.0), so this is more a bug from there and not from WP-Less. Greetings Kevin Rel: https://github.com/wikimedia/less.php/blob/main/lib/Less/Parser.php#L1241 Thanks Kevin I will try asking them.

Comments

4 shown
Pixelbart 2021-09-06T10:49:00+00:00

Hi @woakley What should myClip contain? Since it is in the URL, the ID is automatically pulled. If you want to store certain things in LESS, do you need to use variables or mixins? Greetings Kevin

woakley 2021-09-06T11:00:00+00:00

Basically less shouldn’t process this at all, it should keep the value url(#myClip) and not add anything to it It’s not a file reference it’s just an ID.

Pixelbart 2021-09-06T14:20:00+00:00

@woakley I have now looked at the parser from wikimedia that is used for parsing LESS. I think it’s because your ID is matched with the following regex: /\\G#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})/ So the value is parsed differently than it should. Have you tried this with an ID longer than 6 characters? WP-Less uses the libraries from wikimedia (since 1.9.0), so this is more a bug from there and not from WP-Less. Greetings Kevin Rel: https://github.com/wikimedia/less.php/blob/main/lib/Less/Parser.php#L1241

woakley 2021-09-06T15:51:00+00:00

Thanks Kevin I will try asking them.