File tree Expand file tree Collapse file tree 2 files changed +48
-0
lines changed Expand file tree Collapse file tree 2 files changed +48
-0
lines changed Original file line number Diff line number Diff line change @@ -394,6 +394,8 @@ var Properties = {
394
394
"nav-up" : 1 ,
395
395
396
396
//O
397
+ "object-fit" : "fill | contain | cover | none | scale-down" ,
398
+ "object-position" : "<bg-position>" ,
397
399
"opacity" : "<number> | inherit" ,
398
400
"order" : "<integer>" ,
399
401
"-webkit-order" : "<integer>" ,
Original file line number Diff line number Diff line change 826
826
}
827
827
} ) ) ;
828
828
829
+ suite . add ( new ValidationTestCase ( {
830
+ property : "object-fit" ,
831
+
832
+ valid : [
833
+ "fill" ,
834
+ "contain" ,
835
+ "cover" ,
836
+ "none" ,
837
+ "scale-down"
838
+ ] ,
839
+
840
+ invalid : {
841
+ "foo" : "Expected (fill | contain | cover | none | scale-down) but found 'foo'." ,
842
+ "inherit" : "Expected (fill | contain | cover | none | scale-down) but found 'inherit'."
843
+ }
844
+ } ) ) ;
845
+
846
+ suite . add ( new ValidationTestCase ( {
847
+ property : "object-position" ,
848
+
849
+ valid : [
850
+ "top" ,
851
+ "bottom" ,
852
+ "center" ,
853
+ "100%" ,
854
+ "left center" ,
855
+ "bottom left" ,
856
+ "left 10px" ,
857
+ "center bottom" ,
858
+ "10% top" ,
859
+ "left 10px bottom" ,
860
+ "right top 5%" ,
861
+ "top 3em center" ,
862
+ "center top 3em" ,
863
+ "top 3em right 10%" ,
864
+ ] ,
865
+
866
+ invalid : {
867
+ "foo" : "Expected (<bg-position>) but found 'foo'." ,
868
+ "10% left" : "Expected end of value but found 'left'." ,
869
+ "left center right" : "Expected end of value but found 'center'." ,
870
+ "center 3em right 10%" : "Expected end of value but found '3em'." ,
871
+ "top, bottom" : "Expected end of value but found ','."
872
+ }
873
+ } ) ) ;
874
+
829
875
suite . add ( new ValidationTestCase ( {
830
876
property : "opacity" ,
831
877
You can’t perform that action at this time.
0 commit comments