[Module System] Clarify that @forward includes the module's CSS

This commit is contained in:
Natalie Weizenbaum 2018-09-24 13:51:48 -07:00
parent e28dfd800c
commit 7c04b5e250
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,7 @@
## Draft 3
* Clarify that `@forward` includes the forwarded module's CSS tree.
## Draft 2.1
* Make sure nested `@import`s preserve the parent selector/at-rule context of

View File

@ -1,4 +1,4 @@
# The Next-Generation Sass Module System: Draft 2.1
# The Next-Generation Sass Module System: Draft 3
*([Issues](https://github.com/sass/sass/issues?utf8=%E2%9C%93&q=is%3Aissue+is%3Aopen+label%3A%22%40use%22), [Changelog](module-system.changes.md))*
@ -901,7 +901,8 @@ The [`@forward`](#forward) rule forwards another [module](#module)'s public API
as though it were part of the current module's.
> Note that `@forward` *does not* make any APIs available to the current module;
> that is purely the domain of `@use`.
> that is purely the domain of `@use`. However, it *does* include the forwarded
> module's CSS tree.
First, we define a general procedure for forwarding a module `module` with a
`@forward` rule `rule`: