Sha256: 2c42031d95add04d9b388f8f53a74522a95d225fe6f868d0bb2fcdd992ce23df

Contents?: true

Size: 1.14 KB

Versions: 15

Compression:

Stored size: 1.14 KB

Contents

(function() {
  var Declaration, TextEmphasisPosition,
    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');

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

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

    TextEmphasisPosition.names = ['text-emphasis-position'];

    TextEmphasisPosition.prototype.set = function(decl, prefix) {
      if (prefix === '-webkit-') {
        decl.value = decl.value.replace(/\s*(right|left)\s*/i, '');
        return TextEmphasisPosition.__super__.set.call(this, decl, prefix);
      } else {
        return TextEmphasisPosition.__super__.set.apply(this, arguments);
      }
    };

    return TextEmphasisPosition;

  })(Declaration);

  module.exports = TextEmphasisPosition;

}).call(this);

Version data entries

15 entries across 15 versions & 7 rubygems

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