File tree Expand file tree Collapse file tree 3 files changed +33
-0
lines changed Expand file tree Collapse file tree 3 files changed +33
-0
lines changed Original file line number Diff line number Diff line change @@ -330,6 +330,7 @@ var Properties = module.exports = {
330
330
"max-width" : "<length> | <percentage> | <content-sizing> | none" ,
331
331
"min-height" : "<length> | <percentage> | <content-sizing> | contain-floats | -moz-contain-floats | -webkit-contain-floats" ,
332
332
"min-width" : "<length> | <percentage> | <content-sizing> | contain-floats | -moz-contain-floats | -webkit-contain-floats" ,
333
+ "mix-blend-mode" : "<blend-mode>" ,
333
334
"move-to" : 1 ,
334
335
335
336
// N
Original file line number Diff line number Diff line change @@ -329,6 +329,11 @@ copy(ValidationTypes, {
329
329
"<bg-size>" :
330
330
"[ <length> | <percentage> | auto ]{1,2} | cover | contain" ,
331
331
332
+ "<blend-mode>" :
333
+ "normal | multiply | screen | overlay | darken | lighten | color-dodge | " +
334
+ "color-burn | hard-light | soft-light | difference | exclusion | hue | " +
335
+ "saturation | color | luminosity" ,
336
+
332
337
"<border-image-slice>" :
333
338
// [<number> | <percentage>]{1,4} && fill?
334
339
// *but* fill can appear between any of the numbers
Original file line number Diff line number Diff line change @@ -1114,6 +1114,33 @@ var YUITest = require("yuitest"),
1114
1114
}
1115
1115
} ) ) ;
1116
1116
1117
+ suite . add ( new ValidationTestCase ( {
1118
+ property : "mix-blend-mode" ,
1119
+
1120
+ valid : [
1121
+ "normal" ,
1122
+ "multiply" ,
1123
+ "screen" ,
1124
+ "overlay" ,
1125
+ "darken" ,
1126
+ "lighten" ,
1127
+ "color-dodge" ,
1128
+ "color-burn" ,
1129
+ "hard-light" ,
1130
+ "soft-light" ,
1131
+ "difference" ,
1132
+ "exclusion" ,
1133
+ "hue" ,
1134
+ "saturation" ,
1135
+ "color" ,
1136
+ "luminosity"
1137
+ ] ,
1138
+
1139
+ invalid : {
1140
+ "foo" : "Expected (normal | multiply | screen | overlay | darken | lighten | color-dodge | color-burn | hard-light | soft-light | difference | exclusion | hue | saturation | color | luminosity) but found 'foo'."
1141
+ }
1142
+ } ) ) ;
1143
+
1117
1144
// test <paint>
1118
1145
suite . add ( new ValidationTestCase ( {
1119
1146
property : "fill" ,
You can’t perform that action at this time.
0 commit comments