source: frontend/node_modules/cssstyle/lib/properties/fontVariant.js

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago

Fix frontend appearance

  • Property mode set to 100644
File size: 400 bytes
Line 
1'use strict';
2
3var valid_variants = ['normal', 'small-caps', 'inherit'];
4
5module.exports.isValid = function isValid(v) {
6 return valid_variants.indexOf(v.toLowerCase()) !== -1;
7};
8
9module.exports.definition = {
10 set: function(v) {
11 this._setProperty('font-variant', v);
12 },
13 get: function() {
14 return this.getPropertyValue('font-variant');
15 },
16 enumerable: true,
17 configurable: true,
18};
Note: See TracBrowser for help on using the repository browser.