Skip to content

Commit 312d131

Browse files
committed
[css-env-1] Per WG resolution, the set of supported UA-defined variables is *not* open-ended, and they should all be listed in the spec.
1 parent 2183247 commit 312d131

File tree

1 file changed

+15
-24
lines changed

1 file changed

+15
-24
lines changed

css-env-1/Overview.bs

+15-24
Original file line numberDiff line numberDiff line change
@@ -72,40 +72,31 @@ and via CSS.
7272
Note that mixing CSS rules and JS-defined stuff can easily get messy,
7373
as demonstrated by CSSFontFaceRule vs FontFace...
7474

75-
The following UA-defined [=environment variables=] are officially defined and must be supported,
76-
tho user agents may define additional undocumented [=environment variables=]:
75+
The following UA-defined [=environment variables=] are officially defined and must be supported.
76+
Additional UA-defined [=environment variables=] *must not* be supported
77+
unless/until they are added to this list.
7778

78-
* Issue: define list of predefined vars
79+
<index type=value for=env()></index>
7980

8081
Safe area inset variables {#safe-area-insets}
8182
------------------------------------------------------------------
8283

83-
<table>
84+
<table dfn-type=value dfn-for="env()">
8485
<tr>
85-
<th>Name</th>
86-
<th>Value</th>
87-
<th>Media</th>
88-
</tr>
86+
<th>Name
87+
<th>Value
8988
<tr>
90-
<td>safe-area-inset-top</td>
91-
<td><<length>></td>
92-
<td>visual</td>
93-
</tr>
89+
<td><dfn>safe-area-inset-top</dfn>
90+
<td><<length>>
9491
<tr>
95-
<td>safe-area-inset-right</td>
96-
<td><<length>></td>
97-
<td>visual</td>
98-
</tr>
92+
<td><dfn>safe-area-inset-right</dfn>
93+
<td><<length>>
9994
<tr>
100-
<td>safe-area-inset-bottom</td>
101-
<td><<length>></td>
102-
<td>visual</td>
103-
</tr>
95+
<td><dfn>safe-area-inset-bottom</dfn>
96+
<td><<length>>
10497
<tr>
105-
<td>safe-area-inset-left</td>
106-
<td><<length>></td>
107-
<td>visual</td>
108-
</tr>
98+
<td><dfn>safe-area-inset-left</dfn>
99+
<td><<length>>
109100
</table>
110101

111102
The safe area insets are four [=environment variables=] that define a rectangle by

0 commit comments

Comments
 (0)