Skip to content

Commit 3f75ba7

Browse files
committed
[css-navigation-1] Reorganize spec structure a little in preparation for adding pseudo-classes too.
(This is part of importing the history from WICG/declarative-partial-updates.)
1 parent 109b5b0 commit 3f75ba7

File tree

1 file changed

+27
-25
lines changed

1 file changed

+27
-25
lines changed

css-navigation-1/Overview.bs

Lines changed: 27 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ url: https://html.spec.whatwg.org/multipage/browsing-the-web.html#has-been-revea
3636
type: dfn; spec: html; text: has been revealed;
3737
</pre>
3838

39-
<h2 id="at-route">Route queries: the ''@route'' rule</h2>
39+
<h2 id="condional-route-queries">Conditional rules for route queries</h2>
40+
41+
<h3 id="at-route">Route queries: the ''@route'' rule</h3>
4042

4143
The <dfn at-rule id="at-ruledef-route">@route</dfn> rule
4244
is a conditional group rule
@@ -218,6 +220,30 @@ the result of the following steps on <var>document</var>:
218220
The condition of the ''@route'' rule
219221
is the result of the <<route-condition>> in its prelude.
220222

223+
<h3 id="route-when-function">The ''@when/route()'' function for ''@when''</h3>
224+
225+
This specification defines an additional function for the ''@when'' rule:
226+
227+
<pre class="prod">
228+
<dfn for="@when" function>route()</dfn> = route( <<route-condition>> )
229+
</pre>
230+
231+
The ''@when/route()'' function is associated with the boolean result that
232+
its contained condition is associated with.
233+
234+
<h3 id="route-if-function">The ''if()/route()'' function for ''if()''</h3>
235+
236+
This specification defines an additional function for the ''if()'' function's
237+
<<if-test>> production:
238+
239+
<pre class="prod">
240+
<dfn for="if()" function>route()</dfn> = route( <<route-condition>> )
241+
</pre>
242+
243+
ISSUE: This should probably have a more formal definition of the function,
244+
but I can't find the formal definitions of the existing ''if()'' functions
245+
to model it after.
246+
221247
<h2 id="urlpattern-function">The ''urlpattern()'' function</h2>
222248

223249
<!--
@@ -270,27 +296,3 @@ using the steps of the <dfn>create a URL pattern for urlpattern()</dfn> algorith
270296
NOTE: This function requires that its argument is quoted.
271297
This differs from the ''url()'' function,
272298
which allows its argument to be quoted or unquoted.
273-
274-
<h2 id="route-when-function">The ''@when/route()'' function for ''@when''</h2>
275-
276-
This specification defines an additional function for the ''@when'' rule:
277-
278-
<pre class="prod">
279-
<dfn for="@when" function>route()</dfn> = route( <<route-condition>> )
280-
</pre>
281-
282-
The ''@when/route()'' function is associated with the boolean result that
283-
its contained condition is associated with.
284-
285-
<h2 id="route-if-function">The ''if()/route()'' function for ''if()''</h2>
286-
287-
This specification defines an additional function for the ''if()'' function's
288-
<<if-test>> production:
289-
290-
<pre class="prod">
291-
<dfn for="if()" function>route()</dfn> = route( <<route-condition>> )
292-
</pre>
293-
294-
ISSUE: This should probably have a more formal definition of the function,
295-
but I can't find the formal definitions of the existing ''if()'' functions
296-
to model it after.

0 commit comments

Comments
 (0)