Skip to content

Commit d6854d0

Browse files
committed
[css-values] Specify that direction <angle>s are always bearing angles in CSS.
1 parent 0aa13e5 commit d6854d0

File tree

2 files changed

+131
-94
lines changed

2 files changed

+131
-94
lines changed

css-values/Overview.bs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -929,6 +929,16 @@ Angle Units: the <<angle>> type and ''deg'', ''grad'', ''rad'', ''turn'' units</
929929
For example, a right angle is ''90deg'' or ''100grad'' or ''0.25turn'' or
930930
approximately ''1.57rad''.
931931

932+
When an angle denotes a direction,
933+
it must always be interpreted as a <dfn export>bearing angle</dfn>,
934+
where 0deg is "up" or "north" on the screen,
935+
and larger angles are more clockwise
936+
(so 90deg is "right" or "east").
937+
938+
For example, in the ''linear-gradient()'' function,
939+
the <<angle>> that determines the direction of the gradient
940+
is interpreted as a bearing angle.
941+
932942
<h3 id="time">
933943
Duration Units: the <<time>> type and ''s'', ''ms'' units</h3>
934944

0 commit comments

Comments
 (0)