You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here the function url-encode() (name TBD) takes a string and returns the URL-encoded version of it. The resulting string can be then safely concatenated to the data URL. For concat(), see #542.
So, should we define a new CSS function that URL-encodes a string? Are there any other use cases?
The text was updated successfully, but these errors were encountered:
valtlai
changed the title
[css-values] URL encoding strings
[css-values] URL-encoding strings
Aug 3, 2023
Spec: https://www.w3.org/TR/css-values/
When inlining SVG, some characters need to be URL-encoded. For example, the
#
(%23
) in the following:We could avoid that manual escaping if there was a sufficient function in CSS:
Here the function
url-encode()
(name TBD) takes a string and returns the URL-encoded version of it. The resulting string can be then safely concatenated to the data URL. Forconcat()
, see #542.So, should we define a new CSS function that URL-encodes a string? Are there any other use cases?
The text was updated successfully, but these errors were encountered: