Re: [css-houdini-drafts] [css-typed-om] Semantics of CSSURLImageValue constructor?

The CSS Working Group just discussed `https://github.com/w3c/css-houdini-drafts/issues/424`, and agreed to the following resolutions:

* `RESOLVED: CSSURLImageValue that fails to parse as a URL should throw an error`

<details><summary>The full IRC log of that discussion</summary>
&lt;nainar> Topic: https://github.com/w3c/css-houdini-drafts/issues/424<br>
&lt;dbaron> Github: https://github.com/w3c/css-houdini-drafts/issues/424<br>
&lt;fantasai> topic is Semantics of CSSURLImageValue constructor<br>
&lt;fantasai> TabAtkins: Things that construct values based on URLs<br>
&lt;fantasai> TabAtkins: Should we do some early parsing of URL and throw an exception if it fails URL parsing?<br>
&lt;fantasai> TabAtkins: Our opinion is yes<br>
&lt;fantasai> iank_: If you construct a CSSURLImageValue in a PaintWorklet, and invalid, can't use it. what should semantics be?<br>
&lt;fantasai> TabAtkins: Constructed parsers are used in worklets<br>
&lt;fantasai> TabAtkins: Impls doe somehting about this in ServiceWorkers<br>
&lt;fantasai> TabAtkins: Shouldn't be difficult to throw if URL is bad<br>
&lt;fantasai> plinss: This is never synchronouse?<br>
&lt;fantasai> TabAtkins: No resolution<br>
&lt;fantasai> s/synch/async/<br>
&lt;fantasai> Rossen: Any opinions?<br>
&lt;dbaron> I don't really know the current rules for Gecko's URL parser, fwiw.<br>
&lt;fantasai> RESOLVED: CSSURLImageValue that fails to parse as a URL should throw an error<br>
&lt;fantasai> undecided which error?<br>
&lt;fantasai> plinss: Should have a platform-wide error for URL parsing error<br>
&lt;fantasai> iank_: Platform is very inconsistent, some throw TypeError, others throw SyntaxError<br>
&lt;fantasai> dbaron: Sure ServiceWorker relies on this?<br>
&lt;fantasai> iank_ cites stuff<br>
</details>


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

Received on Tuesday, 1 August 2017 09:14:56 UTC