diff --git a/src/css/Properties.js b/src/css/Properties.js index 777ebbf0..410b394b 100644 --- a/src/css/Properties.js +++ b/src/css/Properties.js @@ -246,7 +246,10 @@ var Properties = { //C "caption-side" : "top | bottom | inherit", "clear" : "none | right | left | both | inherit", - "clip" : 1, + "clip" : " | auto | inherit", + "-webkit-clip-path" : " | | none", + "clip-path" : " | | none", + "clip-rule" : "nonzero | evenodd | inherit", "color" : " | inherit", "color-profile" : 1, "column-count" : " | auto", //http://www.w3.org/TR/css3-multicol/ diff --git a/src/css/ValidationTypes.js b/src/css/ValidationTypes.js index a27ab7b6..58700330 100644 --- a/src/css/ValidationTypes.js +++ b/src/css/ValidationTypes.js @@ -184,6 +184,24 @@ var ValidationTypes = { return part.type == "function" && (part.name == "rect" || part.name == "inset-rect"); }, + "": function(part){ + // inset() = inset( {1,4} [round ]? ) + // circle() = circle( []? [at ]? ) + // ellipse() = ellipse( [{2}]? [at ]? ) + // polygon() = polygon( [,]? [ ]# ) + return part.type == "function" && ( + part.name == "inset" || part.name == "circle" || part.name == "ellipse" || part.name == "polygon" + ); + }, + + "": function(part) { + return this[""](part) || ValidationTypes.isLiteral(part, "margin-box"); + }, + + "": function(part) { + return this[""](part) || ValidationTypes.isLiteral(part, "fill-box | stroke-box | view-box"); + }, + "