[Module System] Resolve built-in global functions and mixins

This commit is contained in:
Natalie Weizenbaum 2019-06-19 14:51:18 -07:00
parent 74111b4f57
commit 724f34875c
2 changed files with 9 additions and 0 deletions

View File

@ -4,6 +4,8 @@
rather than after. This ensures that the clause with unbounded length comes
last if both are present.
* Describe how to resolve built-in global functions and mixins.
## Draft 5
* Drop the `lighten()`, `darken()`, `saturate()`, `desaturate()`, `opacify()`,

View File

@ -1355,6 +1355,13 @@ type `type`, and an [import context](#import-context) `import`:
* Otherwise, if `member-uses` contains a single module, return the member of
type `type` named `name` in that module.
* Otherwise, if the implementation defines a global member `member` of type
`type` named `name`, return that member.
> This includes the global functions and mixins defined as part of the Sass
> spec, and may also include other members defined through the
> implementation's host language API.
* Otherwise, return null.
### Forwarding Modules