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

> CSS doesn't have any special indicator between the two in the string syntax, so I don't think Typed OM particularly needs to do anything special here.

So you would suggest having to use `value.url.startsWith("#")` or some such? It seems nice to expose this difference. I'd actually argue that in the type system you'd expose these as two different types so when can explicitly create a URL-fragment-value or a URL-value.

That way for the URL-value we could also expose normal URL manipulation down the road while not having to special case dealing with it actually being a URL-fragment-value.

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

Received on Thursday, 1 March 2018 06:49:51 UTC