source: trip-planner-front/node_modules/autoprefixer/lib/hacks/grid-row-align.js@ 6fe77af

Last change on this file since 6fe77af was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 1.5 KB
Line 
1"use strict";
2
3function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
4
5function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
6
7function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
8
9var Declaration = require('../declaration');
10
11var GridRowAlign = /*#__PURE__*/function (_Declaration) {
12 _inheritsLoose(GridRowAlign, _Declaration);
13
14 function GridRowAlign() {
15 return _Declaration.apply(this, arguments) || this;
16 }
17
18 var _proto = GridRowAlign.prototype;
19
20 /**
21 * Do not prefix flexbox values
22 */
23 _proto.check = function check(decl) {
24 return !decl.value.includes('flex-') && decl.value !== 'baseline';
25 }
26 /**
27 * Change property name for IE
28 */
29 ;
30
31 _proto.prefixed = function prefixed(prop, prefix) {
32 return prefix + 'grid-row-align';
33 }
34 /**
35 * Change IE property back
36 */
37 ;
38
39 _proto.normalize = function normalize() {
40 return 'align-self';
41 };
42
43 return GridRowAlign;
44}(Declaration);
45
46_defineProperty(GridRowAlign, "names", ['grid-row-align']);
47
48module.exports = GridRowAlign;
Note: See TracBrowser for help on using the repository browser.