michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: /* michael@0: * a list of the CSS properties that are exposed on nsComputedDOMStyle michael@0: * objects, for preprocessing michael@0: */ michael@0: michael@0: /****** michael@0: michael@0: This file contains the list of CSS properties that are exposed michael@0: on nsComputedDOMStyle objects. It is designed to be included in michael@0: nsComputedDOMStyle.cpp to generate the "computed style map", a michael@0: table of property IDs and corresponding functions on nsComputedDOMStyle michael@0: that return the CSSValue representing that property's computed value. michael@0: michael@0: The COMPUTED_STYLE_PROP macro is defined for each such property. michael@0: Its arguments are: michael@0: michael@0: -. 'id' the nsCSSProperty ID, without the leading "nsCSSProperty_". michael@0: michael@0: -. 'method' the nsComputedDOMStyle method name that returns the michael@0: CSSValue representing that property's computed value, without the leading michael@0: "Do". michael@0: michael@0: ******/ michael@0: michael@0: /* ******************************************************************* *\ michael@0: * Properties below are listed in alphabetical order. * michael@0: * Please keep them that way. * michael@0: * * michael@0: * Properties commented out with // are not yet implemented * michael@0: * Properties commented out with //// are shorthands and not queryable * michael@0: \* ******************************************************************* */ michael@0: michael@0: /* ***************************** *\ michael@0: * Implementations of CSS styles * michael@0: \* ***************************** */ michael@0: michael@0: COMPUTED_STYLE_PROP(align_content, AlignContent) michael@0: COMPUTED_STYLE_PROP(align_items, AlignItems) michael@0: COMPUTED_STYLE_PROP(align_self, AlignSelf) michael@0: //// COMPUTED_STYLE_PROP(animation, Animation) michael@0: COMPUTED_STYLE_PROP(animation_delay, AnimationDelay) michael@0: COMPUTED_STYLE_PROP(animation_direction, AnimationDirection) michael@0: COMPUTED_STYLE_PROP(animation_duration, AnimationDuration) michael@0: COMPUTED_STYLE_PROP(animation_fill_mode, AnimationFillMode) michael@0: COMPUTED_STYLE_PROP(animation_iteration_count, AnimationIterationCount) michael@0: COMPUTED_STYLE_PROP(animation_name, AnimationName) michael@0: COMPUTED_STYLE_PROP(animation_play_state, AnimationPlayState) michael@0: COMPUTED_STYLE_PROP(animation_timing_function, AnimationTimingFunction) michael@0: COMPUTED_STYLE_PROP(backface_visibility, BackfaceVisibility) michael@0: //// COMPUTED_STYLE_PROP(background, Background) michael@0: COMPUTED_STYLE_PROP(background_attachment, BackgroundAttachment) michael@0: COMPUTED_STYLE_PROP(background_blend_mode, BackgroundBlendMode) michael@0: COMPUTED_STYLE_PROP(background_clip, BackgroundClip) michael@0: COMPUTED_STYLE_PROP(background_color, BackgroundColor) michael@0: COMPUTED_STYLE_PROP(background_image, BackgroundImage) michael@0: COMPUTED_STYLE_PROP(background_origin, BackgroundOrigin) michael@0: COMPUTED_STYLE_PROP(background_position, BackgroundPosition) michael@0: COMPUTED_STYLE_PROP(background_repeat, BackgroundRepeat) michael@0: COMPUTED_STYLE_PROP(background_size, BackgroundSize) michael@0: //// COMPUTED_STYLE_PROP(border, Border) michael@0: //// COMPUTED_STYLE_PROP(border_bottom, BorderBottom) michael@0: COMPUTED_STYLE_PROP(border_bottom_color, BorderBottomColor) michael@0: COMPUTED_STYLE_PROP(border_bottom_left_radius, BorderBottomLeftRadius) michael@0: COMPUTED_STYLE_PROP(border_bottom_right_radius, BorderBottomRightRadius) michael@0: COMPUTED_STYLE_PROP(border_bottom_style, BorderBottomStyle) michael@0: COMPUTED_STYLE_PROP(border_bottom_width, BorderBottomWidth) michael@0: COMPUTED_STYLE_PROP(border_collapse, BorderCollapse) michael@0: //// COMPUTED_STYLE_PROP(border_color, BorderColor) michael@0: //// COMPUTED_STYLE_PROP(border_image, BorderImage) michael@0: COMPUTED_STYLE_PROP(border_image_outset, BorderImageOutset) michael@0: COMPUTED_STYLE_PROP(border_image_repeat, BorderImageRepeat) michael@0: COMPUTED_STYLE_PROP(border_image_slice, BorderImageSlice) michael@0: COMPUTED_STYLE_PROP(border_image_source, BorderImageSource) michael@0: COMPUTED_STYLE_PROP(border_image_width, BorderImageWidth) michael@0: //// COMPUTED_STYLE_PROP(border_left, BorderLeft) michael@0: COMPUTED_STYLE_PROP(border_left_color, BorderLeftColor) michael@0: COMPUTED_STYLE_PROP(border_left_style, BorderLeftStyle) michael@0: COMPUTED_STYLE_PROP(border_left_width, BorderLeftWidth) michael@0: //// COMPUTED_STYLE_PROP(border_right, BorderRight) michael@0: COMPUTED_STYLE_PROP(border_right_color, BorderRightColor) michael@0: COMPUTED_STYLE_PROP(border_right_style, BorderRightStyle) michael@0: COMPUTED_STYLE_PROP(border_right_width, BorderRightWidth) michael@0: COMPUTED_STYLE_PROP(border_spacing, BorderSpacing) michael@0: //// COMPUTED_STYLE_PROP(border_style, BorderStyle) michael@0: //// COMPUTED_STYLE_PROP(border_top, BorderTop) michael@0: COMPUTED_STYLE_PROP(border_top_color, BorderTopColor) michael@0: COMPUTED_STYLE_PROP(border_top_left_radius, BorderTopLeftRadius) michael@0: COMPUTED_STYLE_PROP(border_top_right_radius, BorderTopRightRadius) michael@0: COMPUTED_STYLE_PROP(border_top_style, BorderTopStyle) michael@0: COMPUTED_STYLE_PROP(border_top_width, BorderTopWidth) michael@0: //// COMPUTED_STYLE_PROP(border_width, BorderWidth) michael@0: COMPUTED_STYLE_PROP(bottom, Bottom) michael@0: COMPUTED_STYLE_PROP(box_shadow, BoxShadow) michael@0: COMPUTED_STYLE_PROP(box_sizing, BoxSizing) michael@0: COMPUTED_STYLE_PROP(caption_side, CaptionSide) michael@0: COMPUTED_STYLE_PROP(clear, Clear) michael@0: COMPUTED_STYLE_PROP(clip, Clip) michael@0: COMPUTED_STYLE_PROP(color, Color) michael@0: COMPUTED_STYLE_PROP(content, Content) michael@0: COMPUTED_STYLE_PROP(counter_increment, CounterIncrement) michael@0: COMPUTED_STYLE_PROP(counter_reset, CounterReset) michael@0: COMPUTED_STYLE_PROP(cursor, Cursor) michael@0: COMPUTED_STYLE_PROP(direction, Direction) michael@0: COMPUTED_STYLE_PROP(display, Display) michael@0: COMPUTED_STYLE_PROP(empty_cells, EmptyCells) michael@0: COMPUTED_STYLE_PROP(flex_basis, FlexBasis) michael@0: COMPUTED_STYLE_PROP(flex_direction, FlexDirection) michael@0: COMPUTED_STYLE_PROP(flex_grow, FlexGrow) michael@0: COMPUTED_STYLE_PROP(flex_shrink, FlexShrink) michael@0: COMPUTED_STYLE_PROP(flex_wrap, FlexWrap) michael@0: COMPUTED_STYLE_PROP(float, Float) michael@0: //// COMPUTED_STYLE_PROP(font, Font) michael@0: COMPUTED_STYLE_PROP(font_family, FontFamily) michael@0: COMPUTED_STYLE_PROP(font_kerning, FontKerning) michael@0: COMPUTED_STYLE_PROP(font_size, FontSize) michael@0: COMPUTED_STYLE_PROP(font_size_adjust, FontSizeAdjust) michael@0: COMPUTED_STYLE_PROP(font_stretch, FontStretch) michael@0: COMPUTED_STYLE_PROP(font_style, FontStyle) michael@0: COMPUTED_STYLE_PROP(font_synthesis, FontSynthesis) michael@0: COMPUTED_STYLE_PROP(font_variant, FontVariant) michael@0: COMPUTED_STYLE_PROP(font_variant_alternates, FontVariantAlternates) michael@0: COMPUTED_STYLE_PROP(font_variant_caps, FontVariantCaps) michael@0: COMPUTED_STYLE_PROP(font_variant_east_asian, FontVariantEastAsian) michael@0: COMPUTED_STYLE_PROP(font_variant_ligatures, FontVariantLigatures) michael@0: COMPUTED_STYLE_PROP(font_variant_numeric, FontVariantNumeric) michael@0: COMPUTED_STYLE_PROP(font_variant_position, FontVariantPosition) michael@0: COMPUTED_STYLE_PROP(font_weight, FontWeight) michael@0: COMPUTED_STYLE_PROP(grid_auto_columns, GridAutoColumns) michael@0: COMPUTED_STYLE_PROP(grid_auto_flow, GridAutoFlow) michael@0: COMPUTED_STYLE_PROP(grid_auto_position, GridAutoPosition) michael@0: COMPUTED_STYLE_PROP(grid_auto_rows, GridAutoRows) michael@0: COMPUTED_STYLE_PROP(grid_column_end, GridColumnEnd) michael@0: COMPUTED_STYLE_PROP(grid_column_start, GridColumnStart) michael@0: COMPUTED_STYLE_PROP(grid_row_end, GridRowEnd) michael@0: COMPUTED_STYLE_PROP(grid_row_start, GridRowStart) michael@0: COMPUTED_STYLE_PROP(grid_template_areas, GridTemplateAreas) michael@0: COMPUTED_STYLE_PROP(grid_template_columns, GridTemplateColumns) michael@0: COMPUTED_STYLE_PROP(grid_template_rows, GridTemplateRows) michael@0: COMPUTED_STYLE_PROP(height, Height) michael@0: COMPUTED_STYLE_PROP(image_orientation, ImageOrientation) michael@0: COMPUTED_STYLE_PROP(ime_mode, IMEMode) michael@0: COMPUTED_STYLE_PROP(justify_content, JustifyContent) michael@0: COMPUTED_STYLE_PROP(left, Left) michael@0: COMPUTED_STYLE_PROP(letter_spacing, LetterSpacing) michael@0: COMPUTED_STYLE_PROP(line_height, LineHeight) michael@0: //// COMPUTED_STYLE_PROP(list_style, ListStyle) michael@0: COMPUTED_STYLE_PROP(list_style_image, ListStyleImage) michael@0: COMPUTED_STYLE_PROP(list_style_position, ListStylePosition) michael@0: COMPUTED_STYLE_PROP(list_style_type, ListStyleType) michael@0: //// COMPUTED_STYLE_PROP(margin, Margin) michael@0: COMPUTED_STYLE_PROP(margin_bottom, MarginBottomWidth) michael@0: COMPUTED_STYLE_PROP(margin_left, MarginLeftWidth) michael@0: COMPUTED_STYLE_PROP(margin_right, MarginRightWidth) michael@0: COMPUTED_STYLE_PROP(margin_top, MarginTopWidth) michael@0: COMPUTED_STYLE_PROP(marker_offset, MarkerOffset) michael@0: // COMPUTED_STYLE_PROP(marks, Marks) michael@0: COMPUTED_STYLE_PROP(max_height, MaxHeight) michael@0: COMPUTED_STYLE_PROP(max_width, MaxWidth) michael@0: COMPUTED_STYLE_PROP(min_height, MinHeight) michael@0: COMPUTED_STYLE_PROP(min_width, MinWidth) michael@0: COMPUTED_STYLE_PROP(mix_blend_mode, MixBlendMode) michael@0: COMPUTED_STYLE_PROP(opacity, Opacity) michael@0: // COMPUTED_STYLE_PROP(orphans, Orphans) michael@0: //// COMPUTED_STYLE_PROP(outline, Outline) michael@0: COMPUTED_STYLE_PROP(order, Order) michael@0: COMPUTED_STYLE_PROP(outline_color, OutlineColor) michael@0: COMPUTED_STYLE_PROP(outline_offset, OutlineOffset) michael@0: COMPUTED_STYLE_PROP(outline_style, OutlineStyle) michael@0: COMPUTED_STYLE_PROP(outline_width, OutlineWidth) michael@0: COMPUTED_STYLE_PROP(overflow, Overflow) michael@0: COMPUTED_STYLE_PROP(overflow_clip_box, OverflowClipBox) michael@0: COMPUTED_STYLE_PROP(overflow_x, OverflowX) michael@0: COMPUTED_STYLE_PROP(overflow_y, OverflowY) michael@0: //// COMPUTED_STYLE_PROP(padding, Padding) michael@0: COMPUTED_STYLE_PROP(padding_bottom, PaddingBottom) michael@0: COMPUTED_STYLE_PROP(padding_left, PaddingLeft) michael@0: COMPUTED_STYLE_PROP(padding_right, PaddingRight) michael@0: COMPUTED_STYLE_PROP(padding_top, PaddingTop) michael@0: // COMPUTED_STYLE_PROP(page, Page) michael@0: COMPUTED_STYLE_PROP(page_break_after, PageBreakAfter) michael@0: COMPUTED_STYLE_PROP(page_break_before, PageBreakBefore) michael@0: COMPUTED_STYLE_PROP(page_break_inside, PageBreakInside) michael@0: COMPUTED_STYLE_PROP(perspective, Perspective) michael@0: COMPUTED_STYLE_PROP(perspective_origin, PerspectiveOrigin) michael@0: COMPUTED_STYLE_PROP(pointer_events, PointerEvents) michael@0: COMPUTED_STYLE_PROP(position, Position) michael@0: COMPUTED_STYLE_PROP(quotes, Quotes) michael@0: COMPUTED_STYLE_PROP(resize, Resize) michael@0: COMPUTED_STYLE_PROP(right, Right) michael@0: //// COMPUTED_STYLE_PROP(size, Size) michael@0: COMPUTED_STYLE_PROP(table_layout, TableLayout) michael@0: COMPUTED_STYLE_PROP(text_align, TextAlign) michael@0: COMPUTED_STYLE_PROP(text_combine_upright, TextCombineUpright) michael@0: COMPUTED_STYLE_PROP(text_decoration, TextDecoration) michael@0: COMPUTED_STYLE_PROP(text_indent, TextIndent) michael@0: COMPUTED_STYLE_PROP(text_orientation, TextOrientation) michael@0: COMPUTED_STYLE_PROP(text_overflow, TextOverflow) michael@0: COMPUTED_STYLE_PROP(text_shadow, TextShadow) michael@0: COMPUTED_STYLE_PROP(text_transform, TextTransform) michael@0: COMPUTED_STYLE_PROP(top, Top) michael@0: COMPUTED_STYLE_PROP(touch_action, TouchAction) michael@0: COMPUTED_STYLE_PROP(transform, Transform) michael@0: COMPUTED_STYLE_PROP(transform_origin, TransformOrigin) michael@0: COMPUTED_STYLE_PROP(transform_style, TransformStyle) michael@0: //// COMPUTED_STYLE_PROP(transition, Transition) michael@0: COMPUTED_STYLE_PROP(transition_delay, TransitionDelay) michael@0: COMPUTED_STYLE_PROP(transition_duration, TransitionDuration) michael@0: COMPUTED_STYLE_PROP(transition_property, TransitionProperty) michael@0: COMPUTED_STYLE_PROP(transition_timing_function, TransitionTimingFunction) michael@0: COMPUTED_STYLE_PROP(unicode_bidi, UnicodeBidi) michael@0: COMPUTED_STYLE_PROP(vertical_align, VerticalAlign) michael@0: COMPUTED_STYLE_PROP(visibility, Visibility) michael@0: COMPUTED_STYLE_PROP(white_space, WhiteSpace) michael@0: // COMPUTED_STYLE_PROP(widows, Widows) michael@0: COMPUTED_STYLE_PROP(width, Width) michael@0: COMPUTED_STYLE_PROP(will_change, WillChange) michael@0: COMPUTED_STYLE_PROP(word_break, WordBreak) michael@0: COMPUTED_STYLE_PROP(word_spacing, WordSpacing) michael@0: COMPUTED_STYLE_PROP(word_wrap, WordWrap) michael@0: COMPUTED_STYLE_PROP(writing_mode, WritingMode) michael@0: COMPUTED_STYLE_PROP(z_index, ZIndex) michael@0: michael@0: /* ******************************* *\ michael@0: * Implementations of -moz- styles * michael@0: \* ******************************* */ michael@0: michael@0: COMPUTED_STYLE_PROP(appearance, Appearance) michael@0: COMPUTED_STYLE_PROP(_moz_background_inline_policy, BackgroundInlinePolicy) michael@0: COMPUTED_STYLE_PROP(binding, Binding) michael@0: COMPUTED_STYLE_PROP(border_bottom_colors, BorderBottomColors) michael@0: COMPUTED_STYLE_PROP(border_left_colors, BorderLeftColors) michael@0: COMPUTED_STYLE_PROP(border_right_colors, BorderRightColors) michael@0: COMPUTED_STYLE_PROP(border_top_colors, BorderTopColors) michael@0: COMPUTED_STYLE_PROP(box_align, BoxAlign) michael@0: COMPUTED_STYLE_PROP(box_direction, BoxDirection) michael@0: COMPUTED_STYLE_PROP(box_flex, BoxFlex) michael@0: COMPUTED_STYLE_PROP(box_ordinal_group, BoxOrdinalGroup) michael@0: COMPUTED_STYLE_PROP(box_orient, BoxOrient) michael@0: COMPUTED_STYLE_PROP(box_pack, BoxPack) michael@0: COMPUTED_STYLE_PROP(_moz_column_count, ColumnCount) michael@0: COMPUTED_STYLE_PROP(_moz_column_fill, ColumnFill) michael@0: COMPUTED_STYLE_PROP(_moz_column_gap, ColumnGap) michael@0: //// COMPUTED_STYLE_PROP(_moz_column_rule, ColumnRule) michael@0: COMPUTED_STYLE_PROP(_moz_column_rule_color, ColumnRuleColor) michael@0: COMPUTED_STYLE_PROP(_moz_column_rule_style, ColumnRuleStyle) michael@0: COMPUTED_STYLE_PROP(_moz_column_rule_width, ColumnRuleWidth) michael@0: COMPUTED_STYLE_PROP(_moz_column_width, ColumnWidth) michael@0: COMPUTED_STYLE_PROP(float_edge, FloatEdge) michael@0: COMPUTED_STYLE_PROP(font_feature_settings, FontFeatureSettings) michael@0: COMPUTED_STYLE_PROP(font_language_override, FontLanguageOverride) michael@0: COMPUTED_STYLE_PROP(force_broken_image_icon, ForceBrokenImageIcon) michael@0: COMPUTED_STYLE_PROP(hyphens, Hyphens) michael@0: COMPUTED_STYLE_PROP(image_region, ImageRegion) michael@0: COMPUTED_STYLE_PROP(orient, Orient) michael@0: COMPUTED_STYLE_PROP(osx_font_smoothing, OSXFontSmoothing) michael@0: COMPUTED_STYLE_PROP(_moz_outline_radius_bottomLeft, OutlineRadiusBottomLeft) michael@0: COMPUTED_STYLE_PROP(_moz_outline_radius_bottomRight,OutlineRadiusBottomRight) michael@0: COMPUTED_STYLE_PROP(_moz_outline_radius_topLeft, OutlineRadiusTopLeft) michael@0: COMPUTED_STYLE_PROP(_moz_outline_radius_topRight, OutlineRadiusTopRight) michael@0: COMPUTED_STYLE_PROP(stack_sizing, StackSizing) michael@0: COMPUTED_STYLE_PROP(_moz_tab_size, TabSize) michael@0: COMPUTED_STYLE_PROP(text_align_last, TextAlignLast) michael@0: COMPUTED_STYLE_PROP(text_decoration_color, TextDecorationColor) michael@0: COMPUTED_STYLE_PROP(text_decoration_line, TextDecorationLine) michael@0: COMPUTED_STYLE_PROP(text_decoration_style, TextDecorationStyle) michael@0: COMPUTED_STYLE_PROP(text_size_adjust, TextSizeAdjust) michael@0: COMPUTED_STYLE_PROP(user_focus, UserFocus) michael@0: COMPUTED_STYLE_PROP(user_input, UserInput) michael@0: COMPUTED_STYLE_PROP(user_modify, UserModify) michael@0: COMPUTED_STYLE_PROP(user_select, UserSelect) michael@0: COMPUTED_STYLE_PROP(_moz_window_shadow, WindowShadow) michael@0: michael@0: /* ***************************** *\ michael@0: * Implementations of SVG styles * michael@0: \* ***************************** */ michael@0: michael@0: COMPUTED_STYLE_PROP(clip_path, ClipPath) michael@0: COMPUTED_STYLE_PROP(clip_rule, ClipRule) michael@0: COMPUTED_STYLE_PROP(color_interpolation, ColorInterpolation) michael@0: COMPUTED_STYLE_PROP(color_interpolation_filters, ColorInterpolationFilters) michael@0: COMPUTED_STYLE_PROP(dominant_baseline, DominantBaseline) michael@0: COMPUTED_STYLE_PROP(fill, Fill) michael@0: COMPUTED_STYLE_PROP(fill_opacity, FillOpacity) michael@0: COMPUTED_STYLE_PROP(fill_rule, FillRule) michael@0: COMPUTED_STYLE_PROP(filter, Filter) michael@0: COMPUTED_STYLE_PROP(flood_color, FloodColor) michael@0: COMPUTED_STYLE_PROP(flood_opacity, FloodOpacity) michael@0: COMPUTED_STYLE_PROP(image_rendering, ImageRendering) michael@0: COMPUTED_STYLE_PROP(lighting_color, LightingColor) michael@0: COMPUTED_STYLE_PROP(marker_end, MarkerEnd) michael@0: COMPUTED_STYLE_PROP(marker_mid, MarkerMid) michael@0: COMPUTED_STYLE_PROP(marker_start, MarkerStart) michael@0: COMPUTED_STYLE_PROP(mask, Mask) michael@0: COMPUTED_STYLE_PROP(mask_type, MaskType) michael@0: COMPUTED_STYLE_PROP(paint_order, PaintOrder) michael@0: COMPUTED_STYLE_PROP(shape_rendering, ShapeRendering) michael@0: COMPUTED_STYLE_PROP(stop_color, StopColor) michael@0: COMPUTED_STYLE_PROP(stop_opacity, StopOpacity) michael@0: COMPUTED_STYLE_PROP(stroke, Stroke) michael@0: COMPUTED_STYLE_PROP(stroke_dasharray, StrokeDasharray) michael@0: COMPUTED_STYLE_PROP(stroke_dashoffset, StrokeDashoffset) michael@0: COMPUTED_STYLE_PROP(stroke_linecap, StrokeLinecap) michael@0: COMPUTED_STYLE_PROP(stroke_linejoin, StrokeLinejoin) michael@0: COMPUTED_STYLE_PROP(stroke_miterlimit, StrokeMiterlimit) michael@0: COMPUTED_STYLE_PROP(stroke_opacity, StrokeOpacity) michael@0: COMPUTED_STYLE_PROP(stroke_width, StrokeWidth) michael@0: COMPUTED_STYLE_PROP(text_anchor, TextAnchor) michael@0: COMPUTED_STYLE_PROP(text_rendering, TextRendering) michael@0: COMPUTED_STYLE_PROP(vector_effect, VectorEffect)