-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Broken value prefixing #10
Comments
Oh I think my mistake is simply that the check for property being "position" is missing there. I'll add that in |
Thank you! Also, please return the result in an other format (e.g. an array), as I cannot split strings at |
@kripod What's the interest in splitting here? In fact, it's a tiny function so you could in theory even just copy and modify it since it doesn't handle any other case than |
The interest comes from the fact that we cannot split the returned value safely, as seen in my example in the issue’s description. As a user of the library, I wouldn’t like to check if |
@kripod What I mean though is that these are enhancement functions, hence the bitmap signals from |
When calling
prefixValue("position", "sticky")
, it returns with"-webkit-sticky, sticky"
as a plain string.The
prefixValue
function would return a false positive on parameters likeprefixValue("content", "'Look, I am sticky like glue!'")
, resulting in strings like'Look, I am -webkit-sticky, sticky like glue!'
.As a solution, I would like to propose checking for trimmed values and requiring an exact match. An array should be returned as a result, instead of just a plain string, so that library authors can transform it as desired.
The text was updated successfully, but these errors were encountered: