Sha256: d09c4817f63f74c6b1379c5f2b33ba69ef02d296edf634484f05ae1b696f80ee

Contents?: true

Size: 586 Bytes

Versions: 25

Compression:

Stored size: 586 Bytes

Contents

#include "../ast.hpp"
#include "../context.hpp"
#include "../parser.hpp"
#include "../to_string.hpp"
#include <string>
#include <iostream>

using namespace std;
using namespace Sass;

Context ctx = Context::Data();
To_String to_string;

Selector* selector(string src)
{ return Parser::from_c_str(src.c_str(), ctx, "", Position()).parse_selector_group(); }

void spec(string sel)
{ cout << sel << "\t::\t" << selector(sel + ";")->specificity() << endl; }

int main()
{
  spec("foo bar hux");
  spec(".foo .bar hux");
  spec("#foo .bar[hux='mux']");
  spec("a b c d e f");

  return 0;
}

Version data entries

25 entries across 25 versions & 2 rubygems

Version Path
gulp_assets-1.0.0.pre.5 template/node_modules/gulp-sass/node_modules/node-sass/src/libsass/test/test_specificity.cpp
gulp_assets-1.0.0.pre.4 template/node_modules/gulp-sass/node_modules/node-sass/src/libsass/test/test_specificity.cpp
gulp_assets-1.0.0.pre.3 template/node_modules/gulp-sass/node_modules/node-sass/src/libsass/test/test_specificity.cpp
sassc-1.7.1 ext/libsass/test/test_specificity.cpp
sassc-1.7.0 ext/libsass/test/test_specificity.cpp
sassc-1.6.0 ext/libsass/test/test_specificity.cpp
sassc-1.5.1 ext/libsass/test/test_specificity.cpp
sassc-1.5.0 ext/libsass/test/test_specificity.cpp
sassc-1.4.0 ext/libsass/test/test_specificity.cpp
sassc-1.3.0 ext/libsass/test/test_specificity.cpp
sassc-1.2.0 ext/libsass/test/test_specificity.cpp
sassc-1.1.2 ext/libsass/test/test_specificity.cpp
sassc-1.1.1 ext/libsass/test/test_specificity.cpp
sassc-1.1.0 ext/libsass/test/test_specificity.cpp
sassc-1.0.0 ext/libsass/test/test_specificity.cpp
sassc-0.0.11 ext/libsass/test/test_specificity.cpp
sassc-0.0.10 ext/libsass/test/test_specificity.cpp
sassc-0.0.9 ext/libsass/test/test_specificity.cpp
sassc-0.0.8 ext/libsass/test/test_specificity.cpp
sassc-0.0.7 ext/libsass/test/test_specificity.cpp