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
{{ message }}
Repository navigation
[css-typed-om] Unclear how to get the source string when multiple CSSStyleValues are created from USVString #1156
if the value was constructed from a USVString
the serialization is the USVString from which the value was constructed.
The trouble is, that a single USVString can produce multiple CSSStyleValues. As far as I can tell, all paths go through "parse a CSSStyleValue", which parses the string as a list of CSSStyleValues, optionally returning just the first one. The source string then wouldn't correspond to one CSSStyleValue, but only part of it would.
For example:
// parse() means we only get the first valuevarcool=CSSStringValue.parse("background","url('cool.png'), url('rad.png')");// Source string is "url('cool.png'), url('rad.png')" but this should only log "url('cool.png')".console.log(cool.toString());
changed the title [-][css-typed-om] Unclear how[/-][+][css-typed-om] Unclear how to get the source string when multiple CSSStyleValues are created from USVString[/+]on Sep 19, 2025
Activity
[-][css-typed-om] Unclear how[/-][+][css-typed-om] Unclear how to get the source string when multiple CSSStyleValues are created from USVString[/+]