This commit is contained in:
Rafael Caricio 2014-09-07 15:50:31 +02:00
parent cae89479ff
commit 2d149e2266

View file

@ -29,6 +29,8 @@ module.exports = (function() {
radialGradient: /^radial\-gradient/i,
repeatingRadialGradient: /^repeating\-radial\-gradient/i,
sideOrCorner: /^to (left (top|bottom)|right (top|bottom)|left|right|top|bottom)/i,
extentKeywords: /^(closest\-side|closest\-corner|farthest\-side|farthest\-corner|contain|cover)/,
positionKeywords: /^(left|center|right|top|bottom)/i,
pixelValue: /^([0-9]+)px/,
percentageValue: /^([0-9]+)\%/,
emValue: /^([0-9]+)em/,
@ -199,7 +201,7 @@ module.exports = (function() {
}
function matchExtentKeyword() {
return match('extent-keyword', /^(closest\-side|closest\-corner|farthest\-side|farthest\-corner|contain|cover)/, 1);
return match('extent-keyword', tokens.extentKeywords, 1);
}
function matchAtPosition() {
@ -306,7 +308,7 @@ module.exports = (function() {
}
function matchPositionKeyword() {
return match('positionKeyword', /^(left|center|right|top|bottom)/i, 1);
return match('positionKeyword', tokens.positionKeywords, 1);
}
function matchLength() {