mirror of
https://github.com/danog/sass-site.git
synced 2025-01-21 21:31:34 +01:00
Document forbidden assignment to non-existent global variables
Closes #285
This commit is contained in:
parent
36a1610c62
commit
b8fd618da7
@ -228,6 +228,19 @@ in a mixin), you can use the `!global` flag. A variable declaration flagged as
|
||||
value: $variable
|
||||
<% end %>
|
||||
|
||||
<% heads_up do %>
|
||||
<% impl_status dart: '2.0.0', libsass: false, ruby: false do %>
|
||||
Older Sass versions allowed `!global` to be used for a variable that
|
||||
doesn't exist yet. This behavior was deprecated to make sure each stylesheet
|
||||
declares the same variables no matter how it's executed.
|
||||
<% end %>
|
||||
|
||||
The `!global` flag may only be used to set a variable that has already been
|
||||
declared at the top level of a file. It *may not* be used to declare a new
|
||||
variable.
|
||||
|
||||
<% end %>
|
||||
|
||||
### Flow Control Scope
|
||||
|
||||
Variables declared in [flow control rules][] have special scoping rules: they
|
||||
|
Loading…
x
Reference in New Issue
Block a user