Re: [css-houdini-drafts] [typed-om] Trim CSSResourceValue and subclasses to opaque objects for this level, punt rest to level 2

@annevk wrote:
> And exposing "original url" doesn't seem super useful if it includes values that cannot even be parsed as a URL.

@tabatkins wrote:
> "original url" is what's actually specified in url() or whatever.

> In the TypedOM I only want to expose absolute URLs normally, which in this case I guess means that it would have a `.url == null` or something, because absolutization will fail. Then `.originalURL == "http://test:test/"` and `.baseURL` will be whatever the correct base url is.

Because the "original url" may not be a URL at all, it sounds like it should rather be called `.originalValue` or `.specifiedValue` or something like that and be part of `CSSStyleValue`, so it's available for all kinds of values.

Sebastian

-- 
GitHub Notification of comment by SebastianZ
Please view or discuss this issue at https://github.com/w3c/css-houdini-drafts/issues/716#issuecomment-402547146 using your GitHub account

Received on Wednesday, 4 July 2018 19:27:42 UTC