@@ -759,6 +759,104 @@ pub const FUNCTION_KEYWORDS: [&str; 671] = [
759
759
"xywh" ,
760
760
] ;
761
761
762
+ // These are the ones that can have single-colon notation
763
+ pub const LEVEL_ONE_AND_TWO_PSEUDO_ELEMENTS : [ & str ; 4 ] =
764
+ [ "before" , "after" , "first-line" , "first-letter" ] ;
765
+
766
+ pub const VENDOR_SPECIFIC_PSEUDO_ELEMENTS : [ & str ; 66 ] = [
767
+ "-moz-focus-inner" ,
768
+ "-moz-focus-outer" ,
769
+ "-moz-list-bullet" ,
770
+ "-moz-meter-bar" ,
771
+ "-moz-placeholder" ,
772
+ "-moz-progress-bar" ,
773
+ "-moz-range-progress" ,
774
+ "-moz-range-thumb" ,
775
+ "-moz-range-track" ,
776
+ "-ms-browse" ,
777
+ "-ms-check" ,
778
+ "-ms-clear" ,
779
+ "-ms-expand" ,
780
+ "-ms-fill" ,
781
+ "-ms-fill-lower" ,
782
+ "-ms-fill-upper" ,
783
+ "-ms-reveal" ,
784
+ "-ms-thumb" ,
785
+ "-ms-ticks-after" ,
786
+ "-ms-ticks-before" ,
787
+ "-ms-tooltip" ,
788
+ "-ms-track" ,
789
+ "-ms-value" ,
790
+ "-webkit-color-swatch" ,
791
+ "-webkit-color-swatch-wrapper" ,
792
+ "-webkit-calendar-picker-indicator" ,
793
+ "-webkit-clear-button" ,
794
+ "-webkit-date-and-time-value" ,
795
+ "-webkit-datetime-edit" ,
796
+ "-webkit-datetime-edit-ampm-field" ,
797
+ "-webkit-datetime-edit-day-field" ,
798
+ "-webkit-datetime-edit-fields-wrapper" ,
799
+ "-webkit-datetime-edit-hour-field" ,
800
+ "-webkit-datetime-edit-millisecond-field" ,
801
+ "-webkit-datetime-edit-minute-field" ,
802
+ "-webkit-datetime-edit-month-field" ,
803
+ "-webkit-datetime-edit-second-field" ,
804
+ "-webkit-datetime-edit-text" ,
805
+ "-webkit-datetime-edit-week-field" ,
806
+ "-webkit-datetime-edit-year-field" ,
807
+ "-webkit-details-marker" ,
808
+ "-webkit-distributed" ,
809
+ "-webkit-file-upload-button" ,
810
+ "-webkit-input-placeholder" ,
811
+ "-webkit-keygen-select" ,
812
+ "-webkit-meter-bar" ,
813
+ "-webkit-meter-even-less-good-value" ,
814
+ "-webkit-meter-inner-element" ,
815
+ "-webkit-meter-optimum-value" ,
816
+ "-webkit-meter-suboptimum-value" ,
817
+ "-webkit-progress-bar" ,
818
+ "-webkit-progress-inner-element" ,
819
+ "-webkit-progress-value" ,
820
+ "-webkit-search-cancel-button" ,
821
+ "-webkit-search-decoration" ,
822
+ "-webkit-search-results-button" ,
823
+ "-webkit-search-results-decoration" ,
824
+ "-webkit-slider-runnable-track" ,
825
+ "-webkit-slider-thumb" ,
826
+ "-webkit-textfield-decoration-container" ,
827
+ "-webkit-validation-bubble" ,
828
+ "-webkit-validation-bubble-arrow" ,
829
+ "-webkit-validation-bubble-arrow-clipper" ,
830
+ "-webkit-validation-bubble-heading" ,
831
+ "-webkit-validation-bubble-message" ,
832
+ "-webkit-validation-bubble-text-block" ,
833
+ ] ;
834
+
835
+ pub const SHADOW_TREE_PSEUDO_ELEMENTS : [ & str ; 1 ] = [ "part" ] ;
836
+
837
+ pub const OTHER_PSEUDO_ELEMENTS : [ & str ; 18 ] = [
838
+ "backdrop" ,
839
+ "content" ,
840
+ "cue" ,
841
+ "file-selector-button" ,
842
+ "grammar-error" ,
843
+ "highlight" ,
844
+ "marker" ,
845
+ "placeholder" ,
846
+ "selection" ,
847
+ "shadow" ,
848
+ "slotted" ,
849
+ "spelling-error" ,
850
+ "target-text" ,
851
+ "view-transition" ,
852
+ "view-transition-group" ,
853
+ "view-transition-image-pair" ,
854
+ "view-transition-new" ,
855
+ "view-transition-old" ,
856
+ ] ;
857
+
858
+ pub const VENDER_PREFIXES : [ & str ; 4 ] = [ "-webkit-" , "-moz-" , "-ms-" , "-o-" ] ;
859
+
762
860
#[ cfg( test) ]
763
861
mod tests {
764
862
use std:: collections:: HashSet ;
0 commit comments