Sha256: a8e6203036ac1489287f7ef33d95b20cd7779ba7223f86898835fdedfcaff55c

Contents?: true

Size: 1.39 KB

Versions: 15

Compression:

Stored size: 1.39 KB

Contents

(function() {
  var Declaration, GridEnd,
    extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
    hasProp = {}.hasOwnProperty;

  Declaration = require('../declaration');

  GridEnd = (function(superClass) {
    extend(GridEnd, superClass);

    function GridEnd() {
      return GridEnd.__super__.constructor.apply(this, arguments);
    }

    GridEnd.names = ['grid-row-end', 'grid-column-end', 'grid-row-span', 'grid-column-span'];

    GridEnd.prototype.check = function(decl) {
      return decl.value.indexOf('span') !== -1;
    };

    GridEnd.prototype.normalize = function(prop) {
      return prop.replace(/(-span|-end)/, '');
    };

    GridEnd.prototype.prefixed = function(prop, prefix) {
      if (prefix === '-ms-') {
        return prefix + prop.replace('-end', '-span');
      } else {
        return GridEnd.__super__.prefixed.call(this, prop, prefix);
      }
    };

    GridEnd.prototype.set = function(decl, prefix) {
      if (prefix === '-ms-') {
        decl.value = decl.value.replace(/span\s/i, '');
      }
      return GridEnd.__super__.set.call(this, decl, prefix);
    };

    return GridEnd;

  })(Declaration);

  module.exports = GridEnd;

}).call(this);

Version data entries

15 entries across 15 versions & 7 rubygems

Version Path
ilog-0.4.1 node_modules/autoprefixer/lib/hacks/grid-end.js
ilog-0.4.0 node_modules/autoprefixer/lib/hacks/grid-end.js
ilog-0.3.3 node_modules/autoprefixer/lib/hacks/grid-end.js
optimacms-0.4.3 spec/dummy/node_modules/autoprefixer/lib/hacks/grid-end.js
optimacms-0.4.2 spec/dummy/node_modules/autoprefixer/lib/hacks/grid-end.js
locomotivecms-4.0.0.alpha1 app/javascript/node_modules/autoprefixer/lib/hacks/grid-end.js
lux_assets-0.2.11 ./node_modules/autoprefixer/lib/hacks/grid-end.js
lux_assets-0.2.9 ./node_modules/autoprefixer/lib/hacks/grid-end.js
lux_assets-0.2.4 ./node_modules/autoprefixer/lib/hacks/grid-end.js
lux_assets-0.2.2 ./node_modules/autoprefixer/lib/hacks/grid-end.js
lux_assets-0.2.1 ./node_modules/autoprefixer/lib/hacks/grid-end.js
locomotivecms-3.4.0 app/javascript/node_modules/autoprefixer/lib/hacks/grid-end.js
cortex-0.1.3 spec/dummy/node_modules/cssnano/node_modules/autoprefixer/lib/hacks/grid-end.js
lanes-0.8.0 node_modules/autoprefixer/lib/hacks/grid-end.js
blackboard-3.1.9 lib/site_template/node_modules/autoprefixer/lib/hacks/grid-end.js