Skip to content

Commit

Permalink
Push all properties
Browse files Browse the repository at this point in the history
  • Loading branch information
davesnx committed Jul 9, 2024
1 parent 840f481 commit fd65372
Show file tree
Hide file tree
Showing 2 changed files with 724 additions and 178 deletions.
50 changes: 48 additions & 2 deletions packages/css-property-parser/lib/Parser.re
Original file line number Diff line number Diff line change
Expand Up @@ -1002,6 +1002,9 @@ and property_clip_path = [%value.rec
]
and property_clip_rule = [%value.rec "'nonzero' | 'evenodd'"]
and property_color = [%value.rec "<color>"]
and property_color_interpolation_filters = [%value.rec "'auto' | 'sRGB'"]
and property_color_interpolation = [%value.rec "'auto' | 'sRGB'"]

and property_color_adjust = [%value.rec "'economy' | 'exact'"]
and property_column_count = [%value.rec "<integer> | 'auto'"]
and property_column_fill = [%value.rec "'auto' | 'balance' | 'balance-all'"]
Expand All @@ -1023,6 +1026,7 @@ and property_contain = [%value.rec
and property_content = [%value.rec
"'normal' | 'none' | [ <content-replacement> | <content-list> ] [ '/' <string> ]?"
]
and property_content_visibility = [%value.rec "'visible' | 'hidden' | 'collapse'"]
and property_counter_increment = [%value.rec
"[ <custom-ident> [ <integer> ]? ]+ | 'none'"
]
Expand Down Expand Up @@ -1172,6 +1176,12 @@ and property_height = [%value.rec
"'auto' | <extended-length> | <extended-percentage> | 'min-content' | 'max-content' | 'fit-content' | fit-content( <extended-length> | <extended-percentage> )"
]
and property_hyphens = [%value.rec "'none' | 'manual' | 'auto'"]
and property_hyphenate_character = [%value.rec "'auto' | <string-token>'-'"]
and property_hyphenate_limit_chars = [%value.rec "'auto' | <integer>"]
and property_hyphenate_limit_lines = [%value.rec "'no-limit' | <integer>"]
and property_hyphenate_limit_zone = [%value.rec
"<extended-length> | <extended-percentage>"
]
and property_image_orientation = [%value.rec
"'from-image' | <extended-angle> | [ <extended-angle> ]? 'flip'"
]
Expand Down Expand Up @@ -1207,6 +1217,21 @@ and property_justify_self = [%value.rec
"'auto' | 'normal' | 'stretch' | <baseline-position> | [ <overflow-position> ]? [ <self-position> | 'left' | 'right' ]"
]
and property_kerning = [%value.rec "'auto' | <svg-length>"]
and property_layout_grid = [%value.rec
"'auto' | <custom-ident> | <integer> && [ <custom-ident> ]?"
]
and property_layout_grid_char = [%value.rec
"'auto' | <custom-ident> | <string>"
]
and property_layout_grid_line = [%value.rec
"'auto' | <custom-ident> | <string>"
]
and property_layout_grid_mode = [%value.rec
"'auto' | <custom-ident> | <string>"
]
and property_layout_grid_type = [%value.rec
"'auto' | <custom-ident> | <string>"
]
and property_left = [%value.rec
"<extended-length> | <extended-percentage> | 'auto'"
]
Expand Down Expand Up @@ -1553,6 +1578,14 @@ and property_scrollbar_color = [%value.rec
and property_scrollbar_width = [%value.rec
"'auto' | 'thin' | 'none' | <extended-length>"
]
and property_scrollbar_3dlight_color = [%value.rec "<color>"]
and property_scrollbar_arrow_color = [%value.rec "<color>"]
and property_scrollbar_base_color = [%value.rec "<color>"]
and property_scrollbar_darkshadow_color = [%value.rec "<color>"]
and property_scrollbar_face_color = [%value.rec "<color>"]
and property_scrollbar_highlight_color = [%value.rec "<color>"]
and property_scrollbar_shadow_color = [%value.rec "<color>"]
and property_scrollbar_track_color = [%value.rec "<color>"]
and property_shape_image_threshold = [%value.rec "<alpha-value>"]
and property_shape_margin = [%value.rec
"<extended-length> | <extended-percentage>"
Expand Down Expand Up @@ -1580,6 +1613,8 @@ and property_stroke_opacity = [%value.rec "<alpha-value>"]
and property_stroke_width = [%value.rec "<svg-length>"]
and property_tab_size = [%value.rec " <number> | <extended-length>"]
and property_table_layout = [%value.rec "'auto' | 'fixed'"]
and property_text_autospace = [%value.rec "'none' | 'ideograph-alpha' | 'ideograph-numeric' | 'ideograph-parenthesis' | 'ideograph-space'"]
and property_text_blink = [%value.rec "'none' | 'blink' | 'blink-anywhere'"]
and property_text_align = [%value.rec
"'start' | 'end' | 'left' | 'right' | 'center' | 'justify' | 'match-parent' | 'justify-all'"
]
Expand All @@ -1596,6 +1631,9 @@ and property_text_combine_upright = [%value.rec
and property_text_decoration = [%value.rec
"[ <'text-decoration-line'>] [<'text-decoration-style'>]? [<'text-decoration-color'>]?"
]
and property_text_justify_trim = [%value.rec "'none' | 'all' | 'auto'"]
and property_text_kashida = [%value.rec "'none' | 'horizontal' | 'vertical' | 'both'"]
and property_text_kashida_space = [%value.rec "'normal' | 'pre' | 'post'"]
and property_text_decoration_color = [%value.rec "<color>"]
/* Spec doesn't contain spelling-error and grammar-error: https://developer.mozilla.org/en-US/docs/Web/CSS/text-decoration-line but this list used to have them | 'spelling-error' | 'grammar-error'. Leaving this comment here for reference */
/* and this definition has changed from the origianl, it might be a bug on the spec or our Generator,
Expand All @@ -1606,8 +1644,10 @@ and property_text_decoration_line = [%value.rec
and property_text_decoration_skip = [%value.rec
"'none' | 'objects' || [ 'spaces' | 'leading-spaces' || 'trailing-spaces' ] || 'edges' || 'box-decoration'"
]
and property_text_decoration_skip_self = [%value.rec "'none' | 'objects' || [ 'spaces' | 'leading-spaces' || 'trailing-spaces' ] || 'edges' || 'box-decoration'"]
and property_text_decoration_skip_ink = [%value.rec "'auto' | 'all' | 'none'"]
and property_text_decoration_skip_box = [%value.rec "'none' | 'all'"]
and property_text_decoration_skip_spaces = [%value.rec "'none' | 'objects' || [ 'spaces' | 'leading-spaces' || 'trailing-spaces' ] || 'edges' || 'box-decoration'"]
and property_text_decoration_skip_inset = [%value.rec "'none' | 'auto'"]

and property_text_decoration_style = [%value.rec
Expand Down Expand Up @@ -1685,7 +1725,7 @@ and property_unicode_bidi = [%value.rec
]
and property_unicode_range = [%value.rec "[ <urange> ]#"]
and property_user_select = [%value.rec
"'auto' | 'text' | 'none' | 'contain' | 'all'"
"'auto' | 'text' | 'none' | 'contain' | 'all' | <interpolation>"
]
and property_vertical_align = [%value.rec
"'baseline' | 'sub' | 'super' | 'text-top' | 'text-bottom' | 'middle' | 'top' | 'bottom' | <extended-percentage> | <extended-length>"
Expand Down Expand Up @@ -1737,9 +1777,15 @@ and property_z_index = [%value.rec "'auto' | <integer> | <interpolation>"]
and property_zoom = [%value.rec
"'normal' | 'reset' | <number> | <extended-percentage>"
]
and property_container = [%value.rec "<'container-name'> [ '/' <'container-type'> ]?"]
and property_container = [%value.rec
"<'container-name'> [ '/' <'container-type'> ]?"
]
and property_container_name = [%value.rec "<custom-ident>+ | 'none'"]
and property_container_type = [%value.rec "'normal' | 'size' | 'inline-size'"]
and property_nav_down = [%value.rec "'auto' | <integer> | <interpolation>"]
and property_nav_left = [%value.rec "'auto' | <integer> | <interpolation>"]
and property_nav_right = [%value.rec "'auto' | <integer> | <interpolation>"]
and property_nav_up = [%value.rec "'auto' | <integer> | <interpolation>"]
and pseudo_class_selector = [%value.rec
"':' <ident-token> | ':' <function-token> <any-value> ')'"
]
Expand Down
Loading

0 comments on commit fd65372

Please sign in to comment.