Skip to content

Commit 34002f2

Browse files
committed
Nits
1 parent ab66419 commit 34002f2

File tree

2 files changed

+22
-21
lines changed

2 files changed

+22
-21
lines changed

css-cascade-4/Overview.bs

+11-10
Original file line numberDiff line numberDiff line change
@@ -268,15 +268,16 @@ Processing Stylesheet Imports</h3>
268268
1. Let |parentStylesheet| be |rule|'s <a spec=cssom for=CSSRule>parent CSS style sheet</a>.
269269
[[CSSOM]]
270270

271-
1. If |rule| has a <<supports-condition>>,
271+
2. If |rule| has a <<supports-condition>>,
272272
and that condition is not true,
273273
return.
274274

275-
1. Let |parsedUrl| be the result of the [=URL parser=] steps with |relativeUrl| and
276-
|parentStylesheet|'s <a spec=cssom>location</a>. If the algorithm returns an error,
275+
3. Let |parsedUrl| be the result of the [=URL parser=] steps with |rule|'s URL and
276+
|parentStylesheet|'s <a spec=cssom>location</a>.
277+
If the algorithm returns an error,
277278
return. [[CSSOM]]
278279

279-
1. [=Fetch a style resource=] from |parsedUrl|,
280+
4. [=Fetch a style resource=] from |parsedUrl|,
280281
with stylesheet |parentStylesheet|,
281282
destination "style",
282283
CORS mode "no-cors",
@@ -285,24 +286,24 @@ Processing Stylesheet Imports</h3>
285286
1. If |response| is a [=network error=] or its [=response/status=] is not an
286287
[=ok status=], return.
287288

288-
1. If |parentStylesheet| is in [=quirks mode=]
289+
2. If |parentStylesheet| is in [=quirks mode=]
289290
and |response| is [=CORS-same-origin=],
290291
let |content type| be <code>"text/css"</code>.
291292
Otherwise, let |content type| be the Content Type metadata of |response|.
292293

293-
1. If |content type| is not <code>"text/css"</code>,
294+
3. If |content type| is not <code>"text/css"</code>,
294295
return.
295296

296-
1. Let |importedStylesheet| be the result of [=Parse a stylesheet|parsing=] |response|'s
297+
4. Let |importedStylesheet| be the result of [=Parse a stylesheet|parsing=] |response|'s
297298
[=response/body=]'s [=body/stream=] given |parsedUrl|.
298299

299-
1. Set |importedStylesheet|'s <a spec=cssom>origin-clean flag</a> to
300+
5. Set |importedStylesheet|'s <a spec=cssom>origin-clean flag</a> to
300301
|parentStylesheet|'s <a spec=cssom>origin-clean flag</a>.
301302

302-
1. If |response| is not [=CORS-same-origin=], unset |importedStylesheet|'s
303+
6. If |response| is not [=CORS-same-origin=], unset |importedStylesheet|'s
303304
<a spec=cssom>origin-clean flag</a>.
304305

305-
1. Set |rule|'s {{CSSImportRule/styleSheet}} to |importedStylesheet|.
306+
7. Set |rule|'s {{CSSImportRule/styleSheet}} to |importedStylesheet|.
306307
</div>
307308

308309
<h3 id='content-type'>

css-values-4/Overview.bs

+11-11
Original file line numberDiff line numberDiff line change
@@ -1001,36 +1001,36 @@ URL processing model</h4>
10011001

10021002
1. Let |environmentSettings| be |sheet|'s [=relevant settings object=].
10031003

1004-
1. Let |global| be |environmentSettings|'s [=environment settings object/global object=].
1004+
2. Let |global| be |environmentSettings|'s [=environment settings object/global object=].
10051005

1006-
1. Let |documentBase| be |environmentSettings|'s [=API base URL=].
1006+
3. Let |documentBase| be |environmentSettings|'s [=API base URL=].
10071007

1008-
1. Let |base| be |sheet|'s <a spec=cssom>stylesheet base URL</a>. [[CSSOM]]
1008+
4. Let |base| be |sheet|'s <a spec=cssom>stylesheet base URL</a>. [[CSSOM]]
10091009

1010-
1. Let |referrer| be |documentBase|.
1010+
5. Let |referrer| be |documentBase|.
10111011

1012-
1. Let |handleResourceFetchDone| be to do nothing.
1012+
6. Let |handleResourceFetchDone| be to do nothing.
10131013

1014-
1. If |base| is null, set |base| to |documentBase|.
1014+
7. If |base| is null, set |base| to |documentBase|.
10151015

1016-
1. Let |parsedUrl| be the result of the [=URL parser=] steps with |url| and |base|.
1016+
8. Let |parsedUrl| be the result of the [=URL parser=] steps with |url| and |base|.
10171017
If the algorithm returns an error, return.
10181018

1019-
1. If |corsMode| is "cors", set |referrer| to |sheet|'s
1019+
9. If |corsMode| is "cors", set |referrer| to |sheet|'s
10201020
<a spec=cssom>location</a>. [[CSSOM]]
10211021

1022-
1. Let |req| be a new [=/request=] whose [=request/url=] is |parsedUrl|, whose
1022+
10. Let |req| be a new [=/request=] whose [=request/url=] is |parsedUrl|, whose
10231023
[=request/destination=] is |destination|, [=request/mode=] is |mode|, [=request/origin=]
10241024
is |environmentSettings|'s [=environment settings object/origin=],
10251025
[=request/credentials mode=] is "same-origin", [=request/use-url-credentials flag=] is
10261026
set, and whose [=request/header list=] is a [=/header list=] containing a [=header=]
10271027
with its [=header/name=] set to "referrer" and its [=header/value=] set to |referrer|.
10281028

1029-
1. If |sheet|'s <a spec=cssom>origin-clean flag</a> is set, set |handleResourceFetchDone|
1029+
11. If |sheet|'s <a spec=cssom>origin-clean flag</a> is set, set |handleResourceFetchDone|
10301030
given [=/response=] |res| to [=finalize and report timing=] with |res|, |global|, and
10311031
<code>"css"</code>. [[CSSOM]]
10321032

1033-
1. [=/Fetch=] |req|, with |processResponseDone| set to |handleResourceFetchDone|,
1033+
12. [=/Fetch=] |req|, with |processResponseDone| set to |handleResourceFetchDone|,
10341034
|taskDestination| set to |global|, and |processResponse| set to |processResponse|.
10351035
</div>
10361036

0 commit comments

Comments
 (0)