Skip to content

Commit 58674c2

Browse files
committed
[css-navigation-1] Drop routemap integration for now, replacing it with an issue.
(This is part of importing the history from WICG/declarative-partial-updates.)
1 parent d3237b2 commit 58674c2

File tree

1 file changed

+9
-16
lines changed

1 file changed

+9
-16
lines changed

css-navigation-1/Overview.bs

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,7 @@ with <<route-condition>> defined as:
8282
<dfn><<route-in-parens>></dfn> = ( <<route-condition>> ) | ( <<route-test>> ) | <<general-enclosed>>
8383
<dfn><<route-test>></dfn> = <<route-location>> | <<route-keyword>> : <<route-location>>
8484
<dfn><<route-keyword>></dfn> = at | from | to
85-
<dfn><<route-location>></dfn> = <<route-name>> | <<urlpattern()>>
86-
<!-- TODO(dbaron): Should this be <<ident>> or <<custom-ident>> ? -->
87-
<dfn><<route-name>></dfn> = <<custom-ident>>
85+
<dfn><<route-location>></dfn> = <<urlpattern()>>
8886
</pre>
8987

9088
The above grammar is purposely very loose for forwards-compatibility reasons,
@@ -97,11 +95,6 @@ is invalid.
9795
Style sheets <strong>must not</strong> use such a rule and
9896
processors <strong>must</strong> ignore such a rule (including all of its contents).
9997

100-
A <<route-name>> is a reference to a route
101-
named in a <code highlight=html>&lt;script type=routemap></code>
102-
in the document.
103-
<span class="issue">This should be defined more formally once routemaps are.</span>
104-
10598
Many of these grammar terms are associated with a boolean result,
10699
as follows:
107100

@@ -203,18 +196,18 @@ as follows:
203196
The <dfn>route location URL pattern</dfn> of a <<route-location>>
204197
depends on the type of <<route-location>>:
205198

206-
: <<route-name>>
207-
:: the URL pattern of a route named <<route-name>>
208-
declared in a <code highlight=html>&lt;script type=routemap></code>.
209-
210-
ISSUE: Once routemaps are defined more formally,
211-
this should be defined in terms of the routemap definition
212-
instead of referring directly to URLPattern.
213-
214199
: <<urlpattern()>>
215200
:: The [=URL pattern=] represented by the function; see
216201
[=create a URL pattern for urlpattern()=].
217202

203+
ISSUE: There is currently only one type of <<route-location>>
204+
but we should consider adding another,
205+
which would be just a name that references
206+
a name defined in a routemap.
207+
See the
208+
<a href="https://github.com/WICG/declarative-partial-updates/blob/main/route-matching-explainer.md">route matching explainer</a>
209+
for details.
210+
218211
A <dfn>document's navigation API</dfn> is
219212
the result of the following steps on <var>document</var>:
220213

0 commit comments

Comments
 (0)