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 like prefixValue("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.
When calling
prefixValue("position", "sticky"), it returns with"-webkit-sticky, sticky"as a plain string.The
prefixValuefunction 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.