Skip to content

Commit a5da964

Browse files
authored
[css-values-4] Fetching: use declaration block instead of declaration (#12286)
* [css-values-4] Fetching: use declaration block instead of declaration * nit
1 parent 5c78136 commit a5da964

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

css-values-4/Overview.bs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ spec: css-shapes-1; type: function; text: rect();
3333
spec: css-sizing-3; type: property;
3434
text: min-width
3535
text: box-sizing
36-
spec: cssom-1; type:dfn; text:owner node; for:CSSStyleSheet;
36+
spec: cssom-1; type:dfn;text:owner node; for:CSSStyleSheet;
3737
spec: selectors-4; type: type; text: <q-name>
3838
spec: infra; type: dfn; text: string;
3939
spec: css-2023; type: dfn; text: ua
@@ -1147,13 +1147,13 @@ URL Modifiers</h4>
11471147
URL Processing Model</h4>
11481148

11491149
<div algorithm="style resource base URL">
1150-
To compute the <dfn>style resource base URL</dfn> for a [=CSS rule=] or a [=CSS declaration=] |cssRuleOrDeclaration|:
1150+
To compute the <dfn>style resource base URL</dfn> for a [=CSS rule=] or a [=CSS declaration block=] |cssRuleOrDeclaration|:
11511151
1. Let |sheet| be null.
11521152

1153-
1. If |cssRuleOrDeclaration| is a {{CSSStyleDeclaration}} whose {{CSSStyleDeclaration/parentRule}} is not null,
1154-
set |cssRuleOrDeclaration| to |cssRuleOrDeclaration|'s {{CSSStyleDeclaration/parentRule}}.
1153+
1. If |cssRuleOrDeclaration| is a [=CSS declaration block=] whose [=parent CSS rule=] is not null,
1154+
set |cssRuleOrDeclaration| to |cssRuleOrDeclaration|'s [=parent CSS rule=].
11551155

1156-
1. If |cssRuleOrDeclaration| is a {{CSSRule}}, set |sheet| to |cssRuleOrDeclaration|'s {{CSSRule/parentStyleSheet}}.
1156+
1. If |cssRuleOrDeclaration| is a [=CSS rule=], set |sheet| to |cssRuleOrDeclaration|'s {{CSSRule/parentStyleSheet|parent style sheet}}</a>.
11571157

11581158
1. If |sheet| is not null:
11591159
1. If |sheet|'s <a spec=cssom>stylesheet base URL</a> is not null,
@@ -1167,14 +1167,14 @@ URL Processing Model</h4>
11671167

11681168
<div algorithm="resolve a style resource URL">
11691169
To <dfn>resolve a style resource URL</dfn> from a [=/url=] or <<url>> |urlValue|,
1170-
and a a [=CSS rule=] or a [=CSS declaration=] |cssRuleOrDeclaration|:
1170+
and a [=CSS rule=] or a [=CSS declaration block=] |cssRuleOrDeclaration|:
11711171
1. Let |base| be the [=style resource base URL=] given |cssRuleOrDeclaration|.
11721172
1. Return the result of the [=URL parser=] steps with |urlValue|'s [=/url=] and |base|.
11731173
</div>
11741174

11751175
<div algorithm="fetch a style resource">
11761176
To <dfn export>fetch a style resource</dfn> from a [=/url=] or <<url>> |urlValue|,
1177-
given an [=CSS rule=] or a [=css declaration=] |cssRuleOrDeclaration|,
1177+
given an [=CSS rule=] or a [=css declaration block=] |cssRuleOrDeclaration|,
11781178
a string |destination| matching a {{RequestDestination}},
11791179
a "no-cors" or "cors" |corsMode|,
11801180
and an algorithm |processResponse| accepting a [=/response=]

0 commit comments

Comments
 (0)