• Stars
    star
    129
  • Rank 279,262 (Top 6 %)
  • Language SCSS
  • Created almost 10 years ago
  • Updated over 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Sass compatibility issues between different engines.

Sass Compatibility

Sass compatibility issues between different engines.

Building

You'll need a couple things to get started.

Docker

If you don't already have a Docker environment you can download and install boot2docker (OS X, Windows).

boot2docker init
boot2docker up

Ruby

If you don't already have Ruby setup you can download the installer from the Ruby website or use brew on OS X.

Bundler

Once you have Ruby installed you need to install the Bundler gem, and use it to install the required gem dependencies.

gem install bundler
bundle install

Running

Execute the test suit via bundler.

bundle exec rake

The Rakefile will:

  • Clone sass-spec and symlink sass-spec/spec to spec if needed.
  • Load tests from _data/tests.yml.
  • Download docker images of the Ruby Sass and Libsass executables.
  • Compile each test input with all supported engines, and normalize the output CSS (creating output.#{engine}.css files in the test directory).
  • Create a expected_output_clean.css from expected_output.css for each test using the same normalization rules.
  • Compare the output of each engine with the expected output and create a support.yml file in each test directory (containing the results for this test).
  • Aggregate the test data for every feature described in _data/tests.yml, in _data/support.yml.
  • Compute support stats in _data/stats.yml.
  • Create a (summarized) SCSS version of the stats in _sass/utils/_stats.scss.

I/O YAML structure

_data/tests.yml

This file contains a list of features to test, with one or multiple tests (relative to the project root) for each feature.

call_function: spec/basic/60_call

angle_conversion:
  - spec/libsass-clised-issues/issue_666/angle
  - spec/libsass-clised-issues/issue_666/length

A test, according to sass-spec, is a directory with input.scss and expected_output.css files.

_data/support.yml

All the features described in _data/tests.yml are present, but will now contain the test results, for each engine, with details for each individual test.

If support is true for an engine, all the tests passed. If false, all the tests failed. If nil, the results were mixed.

call_function:
  ruby_sass_3_2:
    support: false
    tests:
      spec/basic/60_call: false
  ruby_sass_3_4:
    support: true
    tests:
      spec/basic/60_call: true

angle_conversion:
  ruby_sass_3_2:
    support:
    tests:
      spec/libsass-closed-issues/issue_666/angle: false
      spec/libsass-closed-issues/issue_666/length: true
  ruby_sass_3_4:
    support: true
    tests:
      spec/libsass-closed-issues/issue_666/angle: true
      spec/libsass-closed-issues/issue_666/length: true

Note: I stripped some engines from the example output to keep it lightweight.

Credits

More Repositories

1

sass-boilerplate

A boilerplate for Sass projects using the 7-1 architecture pattern from Sass Guidelines.
SCSS
3,338
star
2

a11y-dialog

A very lightweight and flexible accessible modal dialog script.
TypeScript
2,395
star
3

SJSJ

Simplified JavaScript Jargon
HTML
2,272
star
4

sass-guidelines

Guidelines for writing sane, maintainable and scalable Sass.
HTML
908
star
5

awesome-sass

A curated list of awesome Sass.
751
star
6

selectors-explained

A CSS selector to plain English translator.
JavaScript
211
star
7

react-a11y-dialog

An accessible React component for a11y-dialog
TypeScript
173
star
8

SassyJSON

[UNMAINTAINED] A Sass API for JSON.
SCSS
169
star
9

jekyll-boilerplate

A cleaned up version of the initial Jekyll setup for quick use.
HTML
144
star
10

CRUD.js

A CRUD JavaScript class.
JavaScript
140
star
11

site

Sources for kittygiraudel.com
Liquid
103
star
12

Countdown.js

[UNMAINTAINED] A little JavaScript cutstomizable countdown
JavaScript
103
star
13

focusable-selectors

A micro-lib exporting an array of CSS selectors for focusable HTML elements.
JavaScript
74
star
14

SassyCast

[UNMAINTAINED] Type conversion functions for Sass.
SCSS
72
star
15

SassySort

[UNMAINTAINED] Several ways to sort values in Sass using popular sorting algorithms.
SCSS
61
star
16

ImagePreloader

A lightweight JavaScript implementation of an image preloader relying on Promises.
JavaScript
61
star
17

SassyStrings

[UNMAINTAINED] A collection of Sass functions to manipulate strings.
SCSS
59
star
18

react-menu-button

A React component wrapper around inclusive-menu-button.
JavaScript
50
star
19

ama

Ask me anything!
43
star
20

SassyTester

[UNMAINTAINED] A minimalistic function tester in Sass.
SCSS
42
star
21

dotfiles

My configuration files
Shell
40
star
22

react-a11y-disclosure

A small React hook to build accessible disclosure widgets.
JavaScript
35
star
23

react-a11y-footnotes

A reusable React implementation of accessible footnotes.
JavaScript
35
star
24

jekyll-styleguide

This project is an experiment about how we can create a living styleguide in Jekyll.
HTML
32
star
25

eleventy-plugin-footnotes

An 11ty plugin to render accessible footnotes with Liquid
JavaScript
32
star
26

github-release-search

Tiny CLI to search for terms in GitHub releases
JavaScript
28
star
27

SassyMatrix

[UNMAINTAINED] All you ever wanted to deal with matrices in Sass.
SCSS
28
star
28

node-legofy

Node.js version of Legofy.
JavaScript
25
star
29

SassyGradients

[UNMAINTAINED] Sass helpers to manipulate gradients.
SCSS
24
star
30

inline-styler

A teeny tiny JavaScript library to easily manipulate the style attribute of an element.
JavaScript
22
star
31

SassyBitwise

[UNMAINTAINED] Bitwise operators in Sass.
SCSS
18
star
32

dhand

A React hook to guess the dominant hand of the user.
JavaScript
18
star
33

scrabble-helper

A CLI helper for Scrabble.
JavaScript
15
star
34

sass-semver

[UNMAINTAINED] A Sass implementation of node-semver.
SCSS
13
star
35

SassyIteratorsGenerators

[UNMAINTAINED] Iterators and generators implementation in Sass.
SCSS
13
star
36

map-dater

An interactive command line utility to estimate the age of an undated world map.
JavaScript
13
star
37

SassyLogger

[UNMAINTAINED] A logger for Sass.
SCSS
13
star
38

circularray

A fast circular array implementation in JavaScript
JavaScript
13
star
39

hangman.js

Redux powered hangman game.
JavaScript
11
star
40

advent-of-code

TypeScript
6
star
41

sanity-micro-client

JavaScript
6
star
42

dependency-checker

A simple CLI script to check dependencies from a package.json
JavaScript
6
star
43

css3-pratique

CSS 3, Pratique du Design Web
4
star
44

sudoku-solver

JavaScript
4
star
45

PHP-hangman-game

[UNMAINTAINED] A little OOPHP hangman game.
PHP
3
star
46

cypress-5570

JavaScript
2
star
47

teachable-backup

Node.js script to download all content from a Teachable school
JavaScript
1
star