Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions css-values-4/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ spec: css-shapes-1; type: function; text: rect();
spec: css-sizing-3; type: property;
text: min-width
text: box-sizing
spec: cssom-1; type:dfn; text:owner node; for:CSSStyleSheet;
spec: cssom-1; type:dfn;text:owner node; for:CSSStyleSheet;
spec: selectors-4; type: type; text: <q-name>
spec: infra; type: dfn; text: string;
spec: css-2023; type: dfn; text: ua
Expand Down Expand Up @@ -1147,13 +1147,13 @@ URL Modifiers</h4>
URL Processing Model</h4>

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

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

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

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

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

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