Skip to content

Commit a250f89

Browse files
dlibby-tabatkins
andauthored
Apply suggested changes from review
Co-authored-by: Tab Atkins Jr. <jackalmage@gmail.com>
1 parent 1e35d45 commit a250f89

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

css-env-1/Overview.bs

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,16 @@ These "global" variables have both benefits and downsides versus cascading varia
5252
can be retrieved via ''env()'',
5353
whereas the element-specific nature of ''var()'' was not an appropriate place to pipe that information in.
5454

55-
[=Environment variables=] can be either be scalar values or array-like values which require the
56-
author to provide 0-based indices into the available dimensions to refer to a specific value.
55+
Most [=environment variables=] will have a single value at a time.
56+
Some, however, are "indexed", representing multiple values at once,
57+
such as the sizes and positions of several distinct panes of content
58+
in the ''viewport-segment-*'' variables.
59+
To refer to these indexed variables, one or more integers must be provided
60+
alongside the variable name,
61+
like ''viewport-segment-width 1 0'',
62+
to select a single value from the list or grid of possibilities,
63+
similar to selecting one element from a list in a traditional programming language
64+
with a syntax like <code>values[0]</code>.
5765

5866
Environment Variables {#environment}
5967
====================================

0 commit comments

Comments
 (0)