Skip to content

Commit

Permalink
Merge branch 'stable' into next
Browse files Browse the repository at this point in the history
  • Loading branch information
nex3 committed Jun 16, 2017
2 parents ec18762 + 2e20c35 commit d7d4949
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions doc-src/SASS_CHANGELOG.md
Expand Up @@ -75,6 +75,8 @@

## 3.4.25 (Unreleased)

* Fix a bug where `*` wouldn't always be eliminated during selector unification.

### Deprecations -- Must Read!

* Extending compound selectors such as `.a.b` is deprecated. This never followed
Expand Down
1 change: 1 addition & 0 deletions lib/sass/selector/simple.rb
Expand Up @@ -80,6 +80,7 @@ def eql?(other)
# by the time extension and unification happen,
# this exception will only ever be raised as a result of programmer error
def unify(sels)
return sels.first.unify([self]) if sels.length == 1 && sels.first.is_a?(Universal)
return sels if sels.any? {|sel2| eql?(sel2)}
if !is_a?(Pseudo) || (sels.last.is_a?(Pseudo) && sels.last.type == :element)
_, i = sels.each_with_index.find {|sel, _| sel.is_a?(Pseudo)}
Expand Down

0 comments on commit d7d4949

Please sign in to comment.