Skip to content

Commit cdc9a4a

Browse files
nainarshans
authored andcommitted
Add description for CSSURLImageValue constructor. (w3c#440)
1 parent b6ffe2b commit cdc9a4a

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

css-typed-om/Overview.bs

+13
Original file line numberDiff line numberDiff line change
@@ -2220,6 +2220,19 @@ Issue: Does the loading lifecycle need to be described here?
22202220
{{CSSURLImageValue}} objects represent {{CSSImageValue}}s that match the <<url>> production. For these
22212221
objects, the {{CSSURLImageValue/url}} attribute contains the URL that references the image.
22222222

2223+
<div algorithm>
2224+
The <dfn constructor for=CSSURLImageValue>CSSURLImageValue(|url|)</dfn> constructor must,
2225+
when called,
2226+
perform the following steps:
2227+
2228+
1. If the |url| passed into the constructor doesn't correctly
2229+
parse as a <<url>>, throw a {{TypeError}} and exit this algorithm.
2230+
2. Else, return a new {{CSSURLImageValue}}
2231+
with its {{CSSURLImageValue/url}} internal slot
2232+
set to |url|.
2233+
</div>
2234+
2235+
22232236
<!--
22242237
████████ ███████ ██ ██ ████████ ████████ ███ ██████ ████████
22252238
██ ██ ██ ███ ██ ██ ██ ██ ██ ██ ██ ██

0 commit comments

Comments
 (0)