Update namespace extend per sass/sass#2229. (#106)

This commit is contained in:
Natalie Weizenbaum 2017-01-26 20:12:22 -08:00 committed by GitHub
parent 5b1754a262
commit 35d1af51d1
3 changed files with 10 additions and 3 deletions

View File

@ -1,3 +1,10 @@
## 1.0.0-alpha.10
* Elements without a namespace (such as `div`) are no longer unified with
elements with the empty namespace (such as `|div`). This unification didn't
match the results returned by `is-superselector()`, and was not guaranteed to
be valid.
## 1.0.0-alpha.9
* Support `&` within `@at-root`.

View File

@ -93,9 +93,9 @@ SimpleSelector unifyUniversalAndElement(
}
String namespace;
if (namespace1 == namespace2 || namespace2 == null || namespace2 == '*') {
if (namespace1 == namespace2 || namespace2 == '*') {
namespace = namespace1;
} else if (namespace1 == null || namespace1 == '*') {
} else if (namespace1 == '*') {
namespace = namespace2;
} else {
return null;

View File

@ -1,5 +1,5 @@
name: sass
version: 1.0.0-alpha.8
version: 1.0.0-dev
description: A Sass implementation in Dart.
author: Dart Team <misc@dartlang.org>
homepage: https://github.com/sass/dart-sass