grid-row-align.js 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. (function() {
  2. var Declaration, GridRowAlign,
  3. 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; },
  4. hasProp = {}.hasOwnProperty;
  5. Declaration = require('../declaration');
  6. GridRowAlign = (function(superClass) {
  7. extend(GridRowAlign, superClass);
  8. function GridRowAlign() {
  9. return GridRowAlign.__super__.constructor.apply(this, arguments);
  10. }
  11. GridRowAlign.names = ['grid-row-align'];
  12. GridRowAlign.prototype.check = function(decl) {
  13. return decl.value.indexOf('flex-') === -1 && decl.value !== 'baseline';
  14. };
  15. GridRowAlign.prototype.prefixed = function(prop, prefix) {
  16. return prefix + 'grid-row-align';
  17. };
  18. GridRowAlign.prototype.normalize = function(prop) {
  19. return 'align-self';
  20. };
  21. return GridRowAlign;
  22. })(Declaration);
  23. module.exports = GridRowAlign;
  24. }).call(this);