You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
360 B

4 years ago
  1. var sameVendorPrefixes = require('./vendor-prefixes').same;
  2. function understandable(validator, value1, value2, _position, isPaired) {
  3. if (!sameVendorPrefixes(value1, value2)) {
  4. return false;
  5. }
  6. if (isPaired && validator.isVariable(value1) !== validator.isVariable(value2)) {
  7. return false;
  8. }
  9. return true;
  10. }
  11. module.exports = understandable;