Skip to content

Commit a27f132

Browse files
committed
[css-values-3] Drop unitless <<angle>> per WG resolution. https://lists.w3.org/Archives/Public/www-style/2017Apr/0027.html
1 parent 92b483b commit a27f132

3 files changed

Lines changed: 20 additions & 3 deletions

File tree

css-values-3/Overview.bs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1194,8 +1194,6 @@ Other Quantities</h2>
11941194
Angle Units: the <<angle>> type and ''deg'', ''grad'', ''rad'', ''turn'' units</h3>
11951195

11961196
Angle values are <<dimension>>s denoted by <dfn id="angle-value">&lt;angle></dfn>.
1197-
However, for zero angles the unit identifier is optional
1198-
(i.e. can be syntactically represented as the <a>number</a> ''0'').
11991197
The angle unit identifiers are:
12001198

12011199
<dl export dfn-type=value dfn-for="<angle>">
@@ -1236,6 +1234,11 @@ Angle Units: the <<angle>> type and ''deg'', ''grad'', ''rad'', ''turn'' units</
12361234
is interpreted as a bearing angle.
12371235
</div>
12381236

1237+
Note: For legacy reasons,
1238+
some uses of <<angle>> allow a bare ''0'' to mean ''0deg''.
1239+
This is not true in general, however,
1240+
and will not occur in future uses of the <<angle>> type.
1241+
12391242
<!--
12401243
████████ ████ ██ ██ ████████
12411244
██ ██ ███ ███ ██
@@ -1594,7 +1597,7 @@ Type Checking</h4>
15941597
An ''attr()'' expression's type is given by its <<type-or-unit>> argument.
15951598

15961599
Note: Because <<number-token>>s are always interpreted as <<number>>s or <<integer>>s,
1597-
"unitless 0" <<length>>s or <<angle>>s aren't supported in ''calc()''.
1600+
"unitless 0" <<length>>s aren't supported in ''calc()''.
15981601
That is, ''width: calc(0 + 5px);'' is invalid,
15991602
even though both ''width: 0;''
16001603
and ''width: 5px;''

css-values-3/issues-cr-2016.bsi

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,3 +98,10 @@ From: fantasai
9898
Comment: https://github.com/w3c/csswg-drafts/issues/708#issuecomment-302240095
9999
Open: =WG= Discuss.
100100
-----
101+
Issue 14.
102+
Summary: Restrict unitless 0 for angles to specific functions that need it
103+
From: Tab Atkins
104+
Comment: https://lists.w3.org/Archives/Public/www-style/2017Apr/0027.html
105+
Closed: Accepted
106+
Resolved: https://lists.w3.org/Archives/Public/www-style/2017Apr/0027.html
107+
----

css-values-3/issues-cr-2016.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,13 @@ <h1>CSS Values and Units Level 3 Disposition of Comments for 2016-09-29 CR</h1>
133133
<span>Comment: <a href='https://github.com/w3c/csswg-drafts/issues/708#issuecomment-302240095'>https://github.com/w3c/csswg-drafts/issues/708#issuecomment-302240095</a></span>
134134
<span class="">Open: =WG= Discuss.</span>
135135
<span>-</span></pre>
136+
<pre class=' a' id='issue-14'>
137+
<span>Issue 14. <a href='#issue-14'>#</a></span>
138+
<span>Summary: Restrict unitless 0 for angles to specific functions that need it</span>
139+
<span>From: Tab Atkins</span>
140+
<span>Comment: <a href='https://lists.w3.org/Archives/Public/www-style/2017Apr/0027.html'>https://lists.w3.org/Archives/Public/www-style/2017Apr/0027.html</a> <a href="https://www.w3.org/Mail/flatten/index?subject=https%3A%2F%2Flists.w3.org%2FArchives%2FPublic%2Fwww-style/2017Apr/0027.html"><abbr title="Thread">&#x2208;</abbr></a></span>
141+
<span class="a">Closed: Accepted</span>
142+
<span>Resolved: <a href='https://lists.w3.org/Archives/Public/www-style/2017Apr/0027.html'>https://lists.w3.org/Archives/Public/www-style/2017Apr/0027.html</a> <a href="https://www.w3.org/Mail/flatten/index?subject=https%3A%2F%2Flists.w3.org%2FArchives%2FPublic%2Fwww-style/2017Apr/0027.html"><abbr title="Thread">&#x2208;</abbr></a></span></pre>
136143
<script>
137144
(function () {
138145
var sheet = document.styleSheets[0];

0 commit comments

Comments
 (0)