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 800
800
}
801
801
} ) ) ;
802
802
803
+ suite . add ( new ValidationTestCase ( {
804
+ property : "object-fit" ,
805
+
806
+ valid : [
807
+ "fill" ,
808
+ "contain" ,
809
+ "cover" ,
810
+ "none" ,
811
+ "scale-down"
812
+ ] ,
813
+
814
+ invalid : {
815
+ "foo" : "Expected (fill | contain | cover | none | scale-down) but found 'foo'." ,
816
+ "inherit" : "Expected (fill | contain | cover | none | scale-down) but found 'inherit'."
817
+ }
818
+ } ) ) ;
819
+
820
+ suite . add ( new ValidationTestCase ( {
821
+ property : "object-position" ,
822
+
823
+ valid : [
824
+ "top" ,
825
+ "bottom" ,
826
+ "center" ,
827
+ "100%" ,
828
+ "left center" ,
829
+ "bottom left" ,
830
+ "left 10px" ,
831
+ "center bottom" ,
832
+ "10% top" ,
833
+ "left 10px bottom" ,
834
+ "right top 5%" ,
835
+ "top 3em center" ,
836
+ "center top 3em" ,
837
+ "top 3em right 10%" ,
838
+ ] ,
839
+
840
+ invalid : {
841
+ "foo" : "Expected (<bg-position>) but found 'foo'." ,
842
+ "10% left" : "Expected end of value but found 'left'." ,
843
+ "left center right" : "Expected end of value but found 'center'." ,
844
+ "center 3em right 10%" : "Expected end of value but found '3em'." ,
845
+ "top, bottom" : "Expected end of value but found ','."
846
+ }
847
+ } ) ) ;
848
+
803
849
suite . add ( new ValidationTestCase ( {
804
850
property : "opacity" ,
805
851
You can’t perform that action at this time.
0 commit comments