Sha256: d954b85179db3942d55de8a83a1c2ba6b11fc4f9e21c1bed3ada6f8176de6a47

Contents?: true

Size: 401 Bytes

Versions: 24

Compression:

Stored size: 401 Bytes

Contents

opposite-position(pos) {
  return bottom if pos == top;
  return top if pos == bottom;
  return right if pos == left;
  return left if pos == right;
  error('Invalid position ' + pos)
}
 
opposite(positions) {
  for pos in positions {
    pos = opposite-position(pos);
    ret = ret is defined ? ret pos : pos;
  }
}
 
body {
  foo: opposite(top);
  foo: opposite(left);
  foo: opposite(top left);
}

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
stylus-source-0.23.0 vendor/test/cases/regression.139.styl
stylus-source-0.22.6 vendor/test/cases/regression.139.styl
stylus-source-0.22.5 vendor/test/cases/regression.139.styl
stylus-source-0.22.4 vendor/test/cases/regression.139.styl
stylus-source-0.22.3 vendor/test/cases/regression.139.styl
stylus-source-0.22.2 vendor/test/cases/regression.139.styl
stylus-source-0.22.1 vendor/test/cases/regression.139.styl
stylus-source-0.22.0 vendor/test/cases/regression.139.styl
stylus-source-0.21.2 vendor/test/cases/regression.139.styl
stylus-source-0.21.1 vendor/test/cases/regression.139.styl
stylus-source-0.21.0 vendor/test/cases/regression.139.styl
stylus-source-0.20.1 vendor/test/cases/regression.139.styl
stylus-source-0.20.0 vendor/test/cases/regression.139.styl
stylus-source-0.19.8 vendor/test/cases/regression.139.styl
stylus-source-0.19.7 vendor/test/cases/regression.139.styl
stylus-source-0.19.6 vendor/test/cases/regression.139.styl
stylus-source-0.19.5 vendor/test/cases/regression.139.styl
stylus-source-0.19.4 vendor/test/cases/regression.139.styl
stylus-source-0.19.3 vendor/test/cases/regression.139.styl
stylus-source-0.19.2 vendor/test/cases/regression.139.styl