Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
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.

borderCollapse.js 541B

1234567891011121314151617181920212223242526
  1. 'use strict';
  2. var parsers = require('../parsers');
  3. var parse = function parse(v) {
  4. if (
  5. parsers.valueType(v) === parsers.TYPES.KEYWORD &&
  6. (v.toLowerCase() === 'collapse' ||
  7. v.toLowerCase() === 'separate' ||
  8. v.toLowerCase() === 'inherit')
  9. ) {
  10. return v;
  11. }
  12. return undefined;
  13. };
  14. module.exports.definition = {
  15. set: function(v) {
  16. this._setProperty('border-collapse', parse(v));
  17. },
  18. get: function() {
  19. return this.getPropertyValue('border-collapse');
  20. },
  21. enumerable: true,
  22. configurable: true,
  23. };