From 0ab906bc61ecc6a7d09a9dbf8cff8d83cfb7fa55 Mon Sep 17 00:00:00 2001 From: Naina Raisinghani Date: Thu, 3 Aug 2017 17:38:16 +0200 Subject: [PATCH] Add description for CSSURLImageValue constructor. --- css-typed-om/Overview.bs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/css-typed-om/Overview.bs b/css-typed-om/Overview.bs index 429bd190..9e1d38b1 100644 --- a/css-typed-om/Overview.bs +++ b/css-typed-om/Overview.bs @@ -2220,6 +2220,19 @@ Issue: Does the loading lifecycle need to be described here? {{CSSURLImageValue}} objects represent {{CSSImageValue}}s that match the <> production. For these objects, the {{CSSURLImageValue/url}} attribute contains the URL that references the image. +
+ The CSSURLImageValue(|url|) constructor must, + when called, + perform the following steps: + + 1. If the |url| passed into the constructor doesn't correctly + parse as a <>, throw a {{TypeError}} and exit this algorithm. + 2. Else, return a new {{CSSURLImageValue}} + with its {{CSSURLImageValue/url}} internal slot + set to |url|. +
+ +