Skip to main content

Style

Struct Style 

Source
pub struct Style { /* private fields */ }
Expand description

A set of CSS declarations, each of which becomes one class.

A property method replaces an earlier value for the same property under the same conditions, so a later call wins as it would later in a rule.

use hypersig_style::value::{Color, Display, pct, px, quoted, rem};
use hypersig_style::{Media, PseudoClass, PseudoElement, Style};

let card = Style::new()
    .display(Display::Flex)
    .padding(rem(1))
    .color(Color::hex(0x222222))
    .on(PseudoClass::Hover, Style::new().color(Color::CRIMSON))
    .on(Media::Md, Style::new().width(pct(50)))
    .pseudo(PseudoElement::After, Style::new().content(quoted("→")).margin_left(px(4)));
let names: Vec<String> = card.class_names().collect();
assert!(names.contains(&"hover:color_crimson".to_owned()));

Implementations§

Source§

impl Style

Source

pub fn accent_color(self, value: impl Into<AccentColor>) -> Self

Source

pub fn align_content(self, value: impl Into<AlignContent>) -> Self

Sets align-content.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn align_items(self, value: impl Into<AlignItems>) -> Self

Sets align-items.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn align_self(self, value: impl Into<AlignSelf>) -> Self

Sets align-self.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn alignment_baseline(self, value: impl Into<AlignmentBaseline>) -> Self

Source

pub fn all(self, value: impl Into<All>) -> Self

Sets all.

Source

pub fn anchor_name(self, value: impl Into<AnchorName>) -> Self

Sets anchor-name.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn animation(self, value: impl Into<Animation>) -> Self

Sets animation.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn animation_composition( self, value: impl Into<AnimationComposition>, ) -> Self

Sets animation-composition.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn animation_delay(self, value: impl Into<AnimationDelay>) -> Self

Sets animation-delay.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn animation_direction(self, value: impl Into<AnimationDirection>) -> Self

Sets animation-direction.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn animation_duration(self, value: impl Into<AnimationDuration>) -> Self

Sets animation-duration.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn animation_fill_mode(self, value: impl Into<AnimationFillMode>) -> Self

Sets animation-fill-mode.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn animation_iteration_count( self, value: impl Into<AnimationIterationCount>, ) -> Self

Sets animation-iteration-count.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn animation_name(self, value: impl Into<AnimationName>) -> Self

Sets animation-name.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn animation_play_state(self, value: impl Into<AnimationPlayState>) -> Self

Sets animation-play-state.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn animation_timing_function( self, value: impl Into<AnimationTimingFunction>, ) -> Self

Sets animation-timing-function.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn animation_trigger(self, value: impl Into<AnimationTrigger>) -> Self

Sets animation-trigger.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn appearance(self, value: impl Into<Appearance>) -> Self

Sets appearance.

Source

pub fn aspect_ratio(self, value: impl Into<AspectRatio>) -> Self

Sets aspect-ratio.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn backdrop_filter(self, value: impl Into<BackdropFilter>) -> Self

Sets backdrop-filter.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn backface_visibility(self, value: impl Into<BackfaceVisibility>) -> Self

Source

pub fn background(self, value: impl Into<Background>) -> Self

Sets background.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn background_attachment( self, value: impl Into<BackgroundAttachment>, ) -> Self

Sets background-attachment.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn background_blend_mode( self, value: impl Into<BackgroundBlendMode>, ) -> Self

Sets background-blend-mode.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn background_clip(self, value: impl Into<BackgroundClip>) -> Self

Sets background-clip.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn background_color(self, value: impl Into<Color>) -> Self

Source

pub fn background_image(self, value: impl Into<BackgroundImage>) -> Self

Sets background-image.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn background_origin(self, value: impl Into<BackgroundOrigin>) -> Self

Sets background-origin.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn background_position(self, value: impl Into<BackgroundPosition>) -> Self

Sets background-position.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn background_position_x( self, value: impl Into<BackgroundPositionX>, ) -> Self

Sets background-position-x.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn background_position_y( self, value: impl Into<BackgroundPositionY>, ) -> Self

Sets background-position-y.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn background_repeat(self, value: impl Into<BackgroundRepeat>) -> Self

Sets background-repeat.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn background_size(self, value: impl Into<BackgroundSize>) -> Self

Sets background-size.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn baseline_shift(self, value: impl Into<BaselineShift>) -> Self

Source

pub fn baseline_source(self, value: impl Into<BaselineSource>) -> Self

Source

pub fn block_size(self, value: impl Into<BlockSize>) -> Self

Sets block-size.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn border(self, value: impl Into<Border>) -> Self

Sets border.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn border_block(self, value: impl Into<BorderBlock>) -> Self

Sets border-block.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn border_block_color(self, value: impl Into<BorderBlockColor>) -> Self

Sets border-block-color.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn border_block_end(self, value: impl Into<BorderBlockEnd>) -> Self

Sets border-block-end.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn border_block_end_color(self, value: impl Into<Color>) -> Self

Source

pub fn border_block_end_style( self, value: impl Into<BorderBlockEndStyle>, ) -> Self

Source

pub fn border_block_end_width( self, value: impl Into<BorderBlockEndWidth>, ) -> Self

Source

pub fn border_block_start(self, value: impl Into<BorderBlockStart>) -> Self

Sets border-block-start.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn border_block_start_color(self, value: impl Into<Color>) -> Self

Source

pub fn border_block_start_style( self, value: impl Into<BorderBlockStartStyle>, ) -> Self

Source

pub fn border_block_start_width( self, value: impl Into<BorderBlockStartWidth>, ) -> Self

Source

pub fn border_block_style(self, value: impl Into<BorderBlockStyle>) -> Self

Sets border-block-style.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn border_block_width(self, value: impl Into<BorderBlockWidth>) -> Self

Sets border-block-width.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn border_bottom(self, value: impl Into<BorderBottom>) -> Self

Sets border-bottom.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn border_bottom_color(self, value: impl Into<Color>) -> Self

Source

pub fn border_bottom_left_radius( self, value: impl Into<BorderBottomLeftRadius>, ) -> Self

Sets border-bottom-left-radius.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn border_bottom_right_radius( self, value: impl Into<BorderBottomRightRadius>, ) -> Self

Sets border-bottom-right-radius.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn border_bottom_style(self, value: impl Into<BorderBottomStyle>) -> Self

Source

pub fn border_bottom_width(self, value: impl Into<BorderBottomWidth>) -> Self

Source

pub fn border_collapse(self, value: impl Into<BorderCollapse>) -> Self

Source

pub fn border_color(self, value: impl Into<BorderColor>) -> Self

Sets border-color.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn border_end_end_radius(self, value: impl Into<BorderEndEndRadius>) -> Self

Sets border-end-end-radius.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn border_end_start_radius( self, value: impl Into<BorderEndStartRadius>, ) -> Self

Sets border-end-start-radius.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn border_image(self, value: impl Into<BorderImage>) -> Self

Sets border-image.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn border_image_outset(self, value: impl Into<BorderImageOutset>) -> Self

Sets border-image-outset.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn border_image_repeat(self, value: impl Into<BorderImageRepeat>) -> Self

Sets border-image-repeat.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn border_image_slice(self, value: impl Into<BorderImageSlice>) -> Self

Sets border-image-slice.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn border_image_source(self, value: impl Into<BorderImageSource>) -> Self

Sets border-image-source.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn border_image_width(self, value: impl Into<BorderImageWidth>) -> Self

Sets border-image-width.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn border_inline(self, value: impl Into<BorderInline>) -> Self

Sets border-inline.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn border_inline_color(self, value: impl Into<BorderInlineColor>) -> Self

Sets border-inline-color.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn border_inline_end(self, value: impl Into<BorderInlineEnd>) -> Self

Sets border-inline-end.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn border_inline_end_color(self, value: impl Into<Color>) -> Self

Source

pub fn border_inline_end_style( self, value: impl Into<BorderInlineEndStyle>, ) -> Self

Source

pub fn border_inline_end_width( self, value: impl Into<BorderInlineEndWidth>, ) -> Self

Source

pub fn border_inline_start(self, value: impl Into<BorderInlineStart>) -> Self

Sets border-inline-start.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn border_inline_start_color(self, value: impl Into<Color>) -> Self

Source

pub fn border_inline_start_style( self, value: impl Into<BorderInlineStartStyle>, ) -> Self

Source

pub fn border_inline_start_width( self, value: impl Into<BorderInlineStartWidth>, ) -> Self

Source

pub fn border_inline_style(self, value: impl Into<BorderInlineStyle>) -> Self

Sets border-inline-style.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn border_inline_width(self, value: impl Into<BorderInlineWidth>) -> Self

Sets border-inline-width.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn border_left(self, value: impl Into<BorderLeft>) -> Self

Sets border-left.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn border_left_color(self, value: impl Into<Color>) -> Self

Source

pub fn border_left_style(self, value: impl Into<BorderLeftStyle>) -> Self

Source

pub fn border_left_width(self, value: impl Into<BorderLeftWidth>) -> Self

Source

pub fn border_radius(self, value: impl Into<BorderRadius>) -> Self

Sets border-radius.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn border_right(self, value: impl Into<BorderRight>) -> Self

Sets border-right.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn border_right_color(self, value: impl Into<Color>) -> Self

Source

pub fn border_right_style(self, value: impl Into<BorderRightStyle>) -> Self

Source

pub fn border_right_width(self, value: impl Into<BorderRightWidth>) -> Self

Source

pub fn border_shape(self, value: impl Into<BorderShape>) -> Self

Sets border-shape.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn border_spacing(self, value: impl Into<BorderSpacing>) -> Self

Sets border-spacing.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn border_start_end_radius( self, value: impl Into<BorderStartEndRadius>, ) -> Self

Sets border-start-end-radius.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn border_start_start_radius( self, value: impl Into<BorderStartStartRadius>, ) -> Self

Sets border-start-start-radius.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn border_style(self, value: impl Into<BorderStyle>) -> Self

Sets border-style.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn border_top(self, value: impl Into<BorderTop>) -> Self

Sets border-top.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn border_top_color(self, value: impl Into<Color>) -> Self

Source

pub fn border_top_left_radius( self, value: impl Into<BorderTopLeftRadius>, ) -> Self

Sets border-top-left-radius.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn border_top_right_radius( self, value: impl Into<BorderTopRightRadius>, ) -> Self

Sets border-top-right-radius.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn border_top_style(self, value: impl Into<BorderTopStyle>) -> Self

Source

pub fn border_top_width(self, value: impl Into<BorderTopWidth>) -> Self

Source

pub fn border_width(self, value: impl Into<BorderWidth>) -> Self

Sets border-width.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn bottom(self, value: impl Into<Bottom>) -> Self

Sets bottom.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn box_decoration_break(self, value: impl Into<BoxDecorationBreak>) -> Self

Source

pub fn box_shadow(self, value: impl Into<BoxShadow>) -> Self

Sets box-shadow.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn box_sizing(self, value: impl Into<BoxSizing>) -> Self

Sets box-sizing.

Source

pub fn break_after(self, value: impl Into<BreakAfter>) -> Self

Source

pub fn break_before(self, value: impl Into<BreakBefore>) -> Self

Source

pub fn break_inside(self, value: impl Into<BreakInside>) -> Self

Source

pub fn caption_side(self, value: impl Into<CaptionSide>) -> Self

Source

pub fn caret(self, value: impl Into<Caret>) -> Self

Sets caret.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn caret_animation(self, value: impl Into<CaretAnimation>) -> Self

Source

pub fn caret_color(self, value: impl Into<CaretColor>) -> Self

Source

pub fn caret_shape(self, value: impl Into<CaretShape>) -> Self

Source

pub fn clear(self, value: impl Into<Clear>) -> Self

Sets clear.

Source

pub fn clip_path(self, value: impl Into<ClipPath>) -> Self

Sets clip-path.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn clip_rule(self, value: impl Into<ClipRule>) -> Self

Sets clip-rule.

Source

pub fn color(self, value: impl Into<Color>) -> Self

Sets color.

Source

pub fn color_interpolation_filters( self, value: impl Into<ColorInterpolationFilters>, ) -> Self

Source

pub fn color_scheme(self, value: impl Into<ColorScheme>) -> Self

Sets color-scheme.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn column_count(self, value: impl Into<ColumnCount>) -> Self

Source

pub fn column_fill(self, value: impl Into<ColumnFill>) -> Self

Source

pub fn column_gap(self, value: impl Into<ColumnGap>) -> Self

Sets column-gap.

Source

pub fn column_height(self, value: impl Into<ColumnHeight>) -> Self

Source

pub fn column_rule(self, value: impl Into<ColumnRule>) -> Self

Sets column-rule.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn column_rule_color(self, value: impl Into<Color>) -> Self

Source

pub fn column_rule_style(self, value: impl Into<ColumnRuleStyle>) -> Self

Source

pub fn column_rule_width(self, value: impl Into<ColumnRuleWidth>) -> Self

Source

pub fn column_span(self, value: impl Into<ColumnSpan>) -> Self

Source

pub fn column_width(self, value: impl Into<ColumnWidth>) -> Self

Source

pub fn column_wrap(self, value: impl Into<ColumnWrap>) -> Self

Source

pub fn columns(self, value: impl Into<Columns>) -> Self

Sets columns.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn contain(self, value: impl Into<Contain>) -> Self

Sets contain.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn contain_intrinsic_block_size( self, value: impl Into<ContainIntrinsicBlockSize>, ) -> Self

Sets contain-intrinsic-block-size.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn contain_intrinsic_height( self, value: impl Into<ContainIntrinsicHeight>, ) -> Self

Sets contain-intrinsic-height.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn contain_intrinsic_inline_size( self, value: impl Into<ContainIntrinsicInlineSize>, ) -> Self

Sets contain-intrinsic-inline-size.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn contain_intrinsic_size( self, value: impl Into<ContainIntrinsicSize>, ) -> Self

Sets contain-intrinsic-size.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn contain_intrinsic_width( self, value: impl Into<ContainIntrinsicWidth>, ) -> Self

Sets contain-intrinsic-width.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn container(self, value: impl Into<Container>) -> Self

Sets container.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn container_name(self, value: impl Into<ContainerName>) -> Self

Sets container-name.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn container_type(self, value: impl Into<ContainerType>) -> Self

Sets container-type.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn content(self, value: impl Into<Content>) -> Self

Sets content.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn content_visibility(self, value: impl Into<ContentVisibility>) -> Self

Source

pub fn corner_block_end_shape( self, value: impl Into<CornerBlockEndShape>, ) -> Self

Sets corner-block-end-shape.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn corner_block_start_shape( self, value: impl Into<CornerBlockStartShape>, ) -> Self

Sets corner-block-start-shape.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn corner_bottom_left_shape( self, value: impl Into<CornerBottomLeftShape>, ) -> Self

Sets corner-bottom-left-shape.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn corner_bottom_right_shape( self, value: impl Into<CornerBottomRightShape>, ) -> Self

Sets corner-bottom-right-shape.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn corner_bottom_shape(self, value: impl Into<CornerBottomShape>) -> Self

Sets corner-bottom-shape.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn corner_end_end_shape(self, value: impl Into<CornerEndEndShape>) -> Self

Sets corner-end-end-shape.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn corner_end_start_shape( self, value: impl Into<CornerEndStartShape>, ) -> Self

Sets corner-end-start-shape.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn corner_inline_end_shape( self, value: impl Into<CornerInlineEndShape>, ) -> Self

Sets corner-inline-end-shape.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn corner_inline_start_shape( self, value: impl Into<CornerInlineStartShape>, ) -> Self

Sets corner-inline-start-shape.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn corner_left_shape(self, value: impl Into<CornerLeftShape>) -> Self

Sets corner-left-shape.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn corner_right_shape(self, value: impl Into<CornerRightShape>) -> Self

Sets corner-right-shape.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn corner_shape(self, value: impl Into<CornerShape>) -> Self

Sets corner-shape.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn corner_start_end_shape( self, value: impl Into<CornerStartEndShape>, ) -> Self

Sets corner-start-end-shape.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn corner_start_start_shape( self, value: impl Into<CornerStartStartShape>, ) -> Self

Sets corner-start-start-shape.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn corner_top_left_shape(self, value: impl Into<CornerTopLeftShape>) -> Self

Sets corner-top-left-shape.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn corner_top_right_shape( self, value: impl Into<CornerTopRightShape>, ) -> Self

Sets corner-top-right-shape.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn corner_top_shape(self, value: impl Into<CornerTopShape>) -> Self

Sets corner-top-shape.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn counter_increment(self, value: impl Into<CounterIncrement>) -> Self

Sets counter-increment.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn counter_reset(self, value: impl Into<CounterReset>) -> Self

Sets counter-reset.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn counter_set(self, value: impl Into<CounterSet>) -> Self

Sets counter-set.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn cursor(self, value: impl Into<Cursor>) -> Self

Sets cursor.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn cx(self, value: impl Into<Cx>) -> Self

Sets cx.

Source

pub fn cy(self, value: impl Into<Cy>) -> Self

Sets cy.

Source

pub fn d(self, value: impl Into<D>) -> Self

Sets d.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn direction(self, value: impl Into<Direction>) -> Self

Sets direction.

Source

pub fn display(self, value: impl Into<Display>) -> Self

Sets display.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn dominant_baseline(self, value: impl Into<DominantBaseline>) -> Self

Source

pub fn dynamic_range_limit(self, value: impl Into<DynamicRangeLimit>) -> Self

Sets dynamic-range-limit.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn empty_cells(self, value: impl Into<EmptyCells>) -> Self

Source

pub fn fill(self, value: impl Into<Fill>) -> Self

Sets fill.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn fill_opacity(self, value: impl Into<FillOpacity>) -> Self

Source

pub fn fill_rule(self, value: impl Into<FillRule>) -> Self

Sets fill-rule.

Source

pub fn filter(self, value: impl Into<Filter>) -> Self

Sets filter.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn flex(self, value: impl Into<Flex>) -> Self

Sets flex.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn flex_basis(self, value: impl Into<FlexBasis>) -> Self

Sets flex-basis.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn flex_direction(self, value: impl Into<FlexDirection>) -> Self

Source

pub fn flex_flow(self, value: impl Into<FlexFlow>) -> Self

Sets flex-flow.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn flex_grow(self, value: impl Into<f64>) -> Self

Sets flex-grow.

Source

pub fn flex_line_count(self, value: impl Into<i32>) -> Self

Source

pub fn flex_shrink(self, value: impl Into<f64>) -> Self

Source

pub fn flex_wrap(self, value: impl Into<FlexWrap>) -> Self

Sets flex-wrap.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn float(self, value: impl Into<Float>) -> Self

Sets float.

Source

pub fn flood_color(self, value: impl Into<Color>) -> Self

Source

pub fn flood_opacity(self, value: impl Into<FloodOpacity>) -> Self

Source

pub fn font(self, value: impl Into<Font>) -> Self

Sets font.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn font_family(self, value: impl Into<FontFamily>) -> Self

Sets font-family.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn font_feature_settings( self, value: impl Into<FontFeatureSettings>, ) -> Self

Sets font-feature-settings.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn font_kerning(self, value: impl Into<FontKerning>) -> Self

Source

pub fn font_language_override( self, value: impl Into<FontLanguageOverride>, ) -> Self

Source

pub fn font_optical_sizing(self, value: impl Into<FontOpticalSizing>) -> Self

Source

pub fn font_palette(self, value: impl Into<FontPalette>) -> Self

Sets font-palette.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn font_size(self, value: impl Into<FontSize>) -> Self

Sets font-size.

Source

pub fn font_size_adjust(self, value: impl Into<FontSizeAdjust>) -> Self

Sets font-size-adjust.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn font_style(self, value: impl Into<FontStyle>) -> Self

Sets font-style.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn font_synthesis(self, value: impl Into<FontSynthesis>) -> Self

Sets font-synthesis.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn font_synthesis_small_caps( self, value: impl Into<FontSynthesisSmallCaps>, ) -> Self

Source

pub fn font_synthesis_style(self, value: impl Into<FontSynthesisStyle>) -> Self

Source

pub fn font_synthesis_weight( self, value: impl Into<FontSynthesisWeight>, ) -> Self

Source

pub fn font_variant(self, value: impl Into<FontVariant>) -> Self

Sets font-variant.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn font_variant_alternates( self, value: impl Into<FontVariantAlternates>, ) -> Self

Sets font-variant-alternates.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn font_variant_caps(self, value: impl Into<FontVariantCaps>) -> Self

Source

pub fn font_variant_east_asian( self, value: impl Into<FontVariantEastAsian>, ) -> Self

Sets font-variant-east-asian.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn font_variant_emoji(self, value: impl Into<FontVariantEmoji>) -> Self

Source

pub fn font_variant_ligatures( self, value: impl Into<FontVariantLigatures>, ) -> Self

Sets font-variant-ligatures.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn font_variant_numeric(self, value: impl Into<FontVariantNumeric>) -> Self

Sets font-variant-numeric.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn font_variant_position( self, value: impl Into<FontVariantPosition>, ) -> Self

Source

pub fn font_variation_settings( self, value: impl Into<FontVariationSettings>, ) -> Self

Sets font-variation-settings.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn font_weight(self, value: impl Into<FontWeight>) -> Self

Source

pub fn forced_color_adjust(self, value: impl Into<ForcedColorAdjust>) -> Self

Source

pub fn frame_sizing(self, value: impl Into<FrameSizing>) -> Self

Source

pub fn gap(self, value: impl Into<Gap>) -> Self

Sets gap.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn grid(self, value: impl Into<Grid>) -> Self

Sets grid.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn grid_area(self, value: impl Into<GridArea>) -> Self

Sets grid-area.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn grid_auto_columns(self, value: impl Into<GridAutoColumns>) -> Self

Sets grid-auto-columns.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn grid_auto_flow(self, value: impl Into<GridAutoFlow>) -> Self

Sets grid-auto-flow.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn grid_auto_rows(self, value: impl Into<GridAutoRows>) -> Self

Sets grid-auto-rows.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn grid_column(self, value: impl Into<GridColumn>) -> Self

Sets grid-column.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn grid_column_end(self, value: impl Into<GridColumnEnd>) -> Self

Sets grid-column-end.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn grid_column_start(self, value: impl Into<GridColumnStart>) -> Self

Sets grid-column-start.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn grid_row(self, value: impl Into<GridRow>) -> Self

Sets grid-row.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn grid_row_end(self, value: impl Into<GridRowEnd>) -> Self

Sets grid-row-end.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn grid_row_start(self, value: impl Into<GridRowStart>) -> Self

Sets grid-row-start.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn grid_template(self, value: impl Into<GridTemplate>) -> Self

Sets grid-template.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn grid_template_areas(self, value: impl Into<GridTemplateAreas>) -> Self

Sets grid-template-areas.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn grid_template_columns( self, value: impl Into<GridTemplateColumns>, ) -> Self

Sets grid-template-columns.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn grid_template_rows(self, value: impl Into<GridTemplateRows>) -> Self

Sets grid-template-rows.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn hanging_punctuation(self, value: impl Into<HangingPunctuation>) -> Self

Sets hanging-punctuation.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn height(self, value: impl Into<Height>) -> Self

Sets height.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn hyphenate_character(self, value: impl Into<HyphenateCharacter>) -> Self

Source

pub fn hyphenate_limit_chars( self, value: impl Into<HyphenateLimitChars>, ) -> Self

Sets hyphenate-limit-chars.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn hyphens(self, value: impl Into<Hyphens>) -> Self

Sets hyphens.

Source

pub fn image_orientation(self, value: impl Into<ImageOrientation>) -> Self

Sets image-orientation.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn image_rendering(self, value: impl Into<ImageRendering>) -> Self

Source

pub fn initial_letter(self, value: impl Into<InitialLetter>) -> Self

Sets initial-letter.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn inline_size(self, value: impl Into<InlineSize>) -> Self

Sets inline-size.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn inset(self, value: impl Into<Inset>) -> Self

Sets inset.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn inset_block(self, value: impl Into<InsetBlock>) -> Self

Sets inset-block.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn inset_block_end(self, value: impl Into<InsetBlockEnd>) -> Self

Sets inset-block-end.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn inset_block_start(self, value: impl Into<InsetBlockStart>) -> Self

Sets inset-block-start.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn inset_inline(self, value: impl Into<InsetInline>) -> Self

Sets inset-inline.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn inset_inline_end(self, value: impl Into<InsetInlineEnd>) -> Self

Sets inset-inline-end.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn inset_inline_start(self, value: impl Into<InsetInlineStart>) -> Self

Sets inset-inline-start.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn interactivity(self, value: impl Into<Interactivity>) -> Self

Source

pub fn interest_delay(self, value: impl Into<InterestDelay>) -> Self

Sets interest-delay.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn interest_delay_end(self, value: impl Into<InterestDelayEnd>) -> Self

Source

pub fn interest_delay_start(self, value: impl Into<InterestDelayStart>) -> Self

Source

pub fn isolation(self, value: impl Into<Isolation>) -> Self

Sets isolation.

Source

pub fn justify_content(self, value: impl Into<JustifyContent>) -> Self

Sets justify-content.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn justify_items(self, value: impl Into<JustifyItems>) -> Self

Sets justify-items.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn justify_self(self, value: impl Into<JustifySelf>) -> Self

Sets justify-self.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn left(self, value: impl Into<Left>) -> Self

Sets left.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn letter_spacing(self, value: impl Into<LetterSpacing>) -> Self

Source

pub fn lighting_color(self, value: impl Into<Color>) -> Self

Source

pub fn line_break(self, value: impl Into<LineBreak>) -> Self

Sets line-break.

Source

pub fn line_clamp(self, value: impl Into<LineClamp>) -> Self

Sets line-clamp.

Source

pub fn line_height(self, value: impl Into<LineHeight>) -> Self

Source

pub fn list_style(self, value: impl Into<ListStyle>) -> Self

Sets list-style.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn list_style_image(self, value: impl Into<ListStyleImage>) -> Self

Sets list-style-image.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn list_style_position(self, value: impl Into<ListStylePosition>) -> Self

Source

pub fn list_style_type(self, value: impl Into<ListStyleType>) -> Self

Sets list-style-type.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn margin(self, value: impl Into<Margin>) -> Self

Sets margin.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn margin_block(self, value: impl Into<MarginBlock>) -> Self

Sets margin-block.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn margin_block_end(self, value: impl Into<MarginBlockEnd>) -> Self

Sets margin-block-end.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn margin_block_start(self, value: impl Into<MarginBlockStart>) -> Self

Sets margin-block-start.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn margin_bottom(self, value: impl Into<MarginBottom>) -> Self

Sets margin-bottom.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn margin_inline(self, value: impl Into<MarginInline>) -> Self

Sets margin-inline.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn margin_inline_end(self, value: impl Into<MarginInlineEnd>) -> Self

Sets margin-inline-end.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn margin_inline_start(self, value: impl Into<MarginInlineStart>) -> Self

Sets margin-inline-start.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn margin_left(self, value: impl Into<MarginLeft>) -> Self

Sets margin-left.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn margin_right(self, value: impl Into<MarginRight>) -> Self

Sets margin-right.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn margin_top(self, value: impl Into<MarginTop>) -> Self

Sets margin-top.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn marker(self, value: impl Into<Marker>) -> Self

Sets marker.

Source

pub fn marker_end(self, value: impl Into<MarkerEnd>) -> Self

Sets marker-end.

Source

pub fn marker_mid(self, value: impl Into<MarkerMid>) -> Self

Sets marker-mid.

Source

pub fn marker_start(self, value: impl Into<MarkerStart>) -> Self

Source

pub fn mask(self, value: impl Into<Mask>) -> Self

Sets mask.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn mask_border(self, value: impl Into<MaskBorder>) -> Self

Sets mask-border.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn mask_border_mode(self, value: impl Into<MaskBorderMode>) -> Self

Source

pub fn mask_border_outset(self, value: impl Into<MaskBorderOutset>) -> Self

Sets mask-border-outset.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn mask_border_repeat(self, value: impl Into<MaskBorderRepeat>) -> Self

Sets mask-border-repeat.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn mask_border_slice(self, value: impl Into<MaskBorderSlice>) -> Self

Sets mask-border-slice.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn mask_border_source(self, value: impl Into<MaskBorderSource>) -> Self

Sets mask-border-source.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn mask_border_width(self, value: impl Into<MaskBorderWidth>) -> Self

Sets mask-border-width.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn mask_clip(self, value: impl Into<MaskClip>) -> Self

Sets mask-clip.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn mask_composite(self, value: impl Into<MaskComposite>) -> Self

Sets mask-composite.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn mask_image(self, value: impl Into<MaskImage>) -> Self

Sets mask-image.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn mask_mode(self, value: impl Into<MaskMode>) -> Self

Sets mask-mode.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn mask_origin(self, value: impl Into<MaskOrigin>) -> Self

Sets mask-origin.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn mask_position(self, value: impl Into<MaskPosition>) -> Self

Sets mask-position.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn mask_repeat(self, value: impl Into<MaskRepeat>) -> Self

Sets mask-repeat.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn mask_size(self, value: impl Into<MaskSize>) -> Self

Sets mask-size.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn mask_type(self, value: impl Into<MaskType>) -> Self

Sets mask-type.

Source

pub fn math_depth(self, value: impl Into<MathDepth>) -> Self

Sets math-depth.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn math_style(self, value: impl Into<MathStyle>) -> Self

Sets math-style.

Source

pub fn max_block_size(self, value: impl Into<MaxBlockSize>) -> Self

Sets max-block-size.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn max_height(self, value: impl Into<MaxHeight>) -> Self

Sets max-height.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn max_inline_size(self, value: impl Into<MaxInlineSize>) -> Self

Sets max-inline-size.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn max_width(self, value: impl Into<MaxWidth>) -> Self

Sets max-width.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn min_block_size(self, value: impl Into<MinBlockSize>) -> Self

Sets min-block-size.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn min_height(self, value: impl Into<MinHeight>) -> Self

Sets min-height.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn min_inline_size(self, value: impl Into<MinInlineSize>) -> Self

Sets min-inline-size.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn min_width(self, value: impl Into<MinWidth>) -> Self

Sets min-width.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn mix_blend_mode(self, value: impl Into<MixBlendMode>) -> Self

Source

pub fn object_fit(self, value: impl Into<ObjectFit>) -> Self

Sets object-fit.

Source

pub fn object_position(self, value: impl Into<ObjectPosition>) -> Self

Sets object-position.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn offset(self, value: impl Into<Offset>) -> Self

Sets offset.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn offset_anchor(self, value: impl Into<OffsetAnchor>) -> Self

Sets offset-anchor.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn offset_distance(self, value: impl Into<OffsetDistance>) -> Self

Source

pub fn offset_path(self, value: impl Into<OffsetPath>) -> Self

Sets offset-path.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn offset_position(self, value: impl Into<OffsetPosition>) -> Self

Sets offset-position.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn offset_rotate(self, value: impl Into<OffsetRotate>) -> Self

Sets offset-rotate.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn opacity(self, value: impl Into<Opacity>) -> Self

Sets opacity.

Source

pub fn order(self, value: impl Into<i32>) -> Self

Sets order.

Source

pub fn orphans(self, value: impl Into<i32>) -> Self

Sets orphans.

Source

pub fn outline(self, value: impl Into<Outline>) -> Self

Sets outline.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn outline_color(self, value: impl Into<OutlineColor>) -> Self

Source

pub fn outline_offset(self, value: impl Into<Length>) -> Self

Source

pub fn outline_style(self, value: impl Into<OutlineStyle>) -> Self

Source

pub fn outline_width(self, value: impl Into<OutlineWidth>) -> Self

Source

pub fn overflow(self, value: impl Into<Overflow>) -> Self

Sets overflow.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn overflow_anchor(self, value: impl Into<OverflowAnchor>) -> Self

Source

pub fn overflow_block(self, value: impl Into<OverflowBlock>) -> Self

Source

pub fn overflow_clip_margin(self, value: impl Into<OverflowClipMargin>) -> Self

Sets overflow-clip-margin.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn overflow_inline(self, value: impl Into<OverflowInline>) -> Self

Source

pub fn overflow_wrap(self, value: impl Into<OverflowWrap>) -> Self

Source

pub fn overflow_x(self, value: impl Into<OverflowX>) -> Self

Sets overflow-x.

Source

pub fn overflow_y(self, value: impl Into<OverflowY>) -> Self

Sets overflow-y.

Source

pub fn overscroll_behavior(self, value: impl Into<OverscrollBehavior>) -> Self

Sets overscroll-behavior.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn overscroll_behavior_block( self, value: impl Into<OverscrollBehaviorBlock>, ) -> Self

Source

pub fn overscroll_behavior_inline( self, value: impl Into<OverscrollBehaviorInline>, ) -> Self

Source

pub fn overscroll_behavior_x( self, value: impl Into<OverscrollBehaviorX>, ) -> Self

Source

pub fn overscroll_behavior_y( self, value: impl Into<OverscrollBehaviorY>, ) -> Self

Source

pub fn padding(self, value: impl Into<Padding>) -> Self

Sets padding.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn padding_block(self, value: impl Into<PaddingBlock>) -> Self

Sets padding-block.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn padding_block_end(self, value: impl Into<PaddingBlockEnd>) -> Self

Source

pub fn padding_block_start(self, value: impl Into<PaddingBlockStart>) -> Self

Source

pub fn padding_bottom(self, value: impl Into<PaddingBottom>) -> Self

Source

pub fn padding_inline(self, value: impl Into<PaddingInline>) -> Self

Sets padding-inline.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn padding_inline_end(self, value: impl Into<PaddingInlineEnd>) -> Self

Source

pub fn padding_inline_start(self, value: impl Into<PaddingInlineStart>) -> Self

Source

pub fn padding_left(self, value: impl Into<PaddingLeft>) -> Self

Source

pub fn padding_right(self, value: impl Into<PaddingRight>) -> Self

Source

pub fn padding_top(self, value: impl Into<PaddingTop>) -> Self

Source

pub fn page(self, value: impl Into<Page>) -> Self

Sets page.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn paint_order(self, value: impl Into<PaintOrder>) -> Self

Sets paint-order.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn path_length(self, value: impl Into<PathLength>) -> Self

Sets path-length.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn perspective(self, value: impl Into<Perspective>) -> Self

Source

pub fn perspective_origin(self, value: impl Into<PerspectiveOrigin>) -> Self

Sets perspective-origin.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn place_content(self, value: impl Into<PlaceContent>) -> Self

Sets place-content.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn place_items(self, value: impl Into<PlaceItems>) -> Self

Sets place-items.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn place_self(self, value: impl Into<PlaceSelf>) -> Self

Sets place-self.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn pointer_events(self, value: impl Into<PointerEvents>) -> Self

Source

pub fn position(self, value: impl Into<Position>) -> Self

Sets position.

Source

pub fn position_anchor(self, value: impl Into<PositionAnchor>) -> Self

Sets position-anchor.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn position_area(self, value: impl Into<PositionArea>) -> Self

Sets position-area.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn position_try_fallbacks( self, value: impl Into<PositionTryFallbacks>, ) -> Self

Sets position-try-fallbacks.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn print_color_adjust(self, value: impl Into<PrintColorAdjust>) -> Self

Source

pub fn quotes(self, value: impl Into<Quotes>) -> Self

Sets quotes.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn r(self, value: impl Into<R>) -> Self

Sets r.

Source

pub fn reading_flow(self, value: impl Into<ReadingFlow>) -> Self

Source

pub fn reading_order(self, value: impl Into<i32>) -> Self

Source

pub fn resize(self, value: impl Into<Resize>) -> Self

Sets resize.

Source

pub fn right(self, value: impl Into<Right>) -> Self

Sets right.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn rotate(self, value: impl Into<Rotate>) -> Self

Sets rotate.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn row_gap(self, value: impl Into<RowGap>) -> Self

Sets row-gap.

Source

pub fn ruby_align(self, value: impl Into<RubyAlign>) -> Self

Sets ruby-align.

Source

pub fn ruby_overhang(self, value: impl Into<RubyOverhang>) -> Self

Source

pub fn ruby_position(self, value: impl Into<RubyPosition>) -> Self

Sets ruby-position.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn rx(self, value: impl Into<Rx>) -> Self

Sets rx.

Source

pub fn ry(self, value: impl Into<Ry>) -> Self

Sets ry.

Source

pub fn scale(self, value: impl Into<Scale>) -> Self

Sets scale.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn scroll_axis_lock(self, value: impl Into<ScrollAxisLock>) -> Self

Source

pub fn scroll_behavior(self, value: impl Into<ScrollBehavior>) -> Self

Source

pub fn scroll_margin(self, value: impl Into<ScrollMargin>) -> Self

Sets scroll-margin.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn scroll_margin_block(self, value: impl Into<ScrollMarginBlock>) -> Self

Sets scroll-margin-block.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn scroll_margin_block_end(self, value: impl Into<Length>) -> Self

Source

pub fn scroll_margin_block_start(self, value: impl Into<Length>) -> Self

Source

pub fn scroll_margin_bottom(self, value: impl Into<Length>) -> Self

Source

pub fn scroll_margin_inline(self, value: impl Into<ScrollMarginInline>) -> Self

Sets scroll-margin-inline.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn scroll_margin_inline_end(self, value: impl Into<Length>) -> Self

Source

pub fn scroll_margin_inline_start(self, value: impl Into<Length>) -> Self

Source

pub fn scroll_margin_left(self, value: impl Into<Length>) -> Self

Source

pub fn scroll_margin_right(self, value: impl Into<Length>) -> Self

Source

pub fn scroll_margin_top(self, value: impl Into<Length>) -> Self

Source

pub fn scroll_marker_group(self, value: impl Into<ScrollMarkerGroup>) -> Self

Source

pub fn scroll_padding(self, value: impl Into<ScrollPadding>) -> Self

Sets scroll-padding.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn scroll_padding_block(self, value: impl Into<ScrollPaddingBlock>) -> Self

Sets scroll-padding-block.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn scroll_padding_block_end( self, value: impl Into<ScrollPaddingBlockEnd>, ) -> Self

Source

pub fn scroll_padding_block_start( self, value: impl Into<ScrollPaddingBlockStart>, ) -> Self

Source

pub fn scroll_padding_bottom( self, value: impl Into<ScrollPaddingBottom>, ) -> Self

Source

pub fn scroll_padding_inline( self, value: impl Into<ScrollPaddingInline>, ) -> Self

Sets scroll-padding-inline.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn scroll_padding_inline_end( self, value: impl Into<ScrollPaddingInlineEnd>, ) -> Self

Source

pub fn scroll_padding_inline_start( self, value: impl Into<ScrollPaddingInlineStart>, ) -> Self

Source

pub fn scroll_padding_left(self, value: impl Into<ScrollPaddingLeft>) -> Self

Source

pub fn scroll_padding_right(self, value: impl Into<ScrollPaddingRight>) -> Self

Source

pub fn scroll_padding_top(self, value: impl Into<ScrollPaddingTop>) -> Self

Source

pub fn scroll_snap_align(self, value: impl Into<ScrollSnapAlign>) -> Self

Sets scroll-snap-align.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn scroll_snap_stop(self, value: impl Into<ScrollSnapStop>) -> Self

Source

pub fn scroll_snap_type(self, value: impl Into<ScrollSnapType>) -> Self

Sets scroll-snap-type.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn scroll_target_group(self, value: impl Into<ScrollTargetGroup>) -> Self

Source

pub fn scrollbar_color(self, value: impl Into<ScrollbarColor>) -> Self

Sets scrollbar-color.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn scrollbar_gutter(self, value: impl Into<ScrollbarGutter>) -> Self

Sets scrollbar-gutter.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn scrollbar_width(self, value: impl Into<ScrollbarWidth>) -> Self

Source

pub fn shape_image_threshold( self, value: impl Into<ShapeImageThreshold>, ) -> Self

Source

pub fn shape_margin(self, value: impl Into<ShapeMargin>) -> Self

Source

pub fn shape_outside(self, value: impl Into<ShapeOutside>) -> Self

Sets shape-outside.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn shape_rendering(self, value: impl Into<ShapeRendering>) -> Self

Source

pub fn stop_color(self, value: impl Into<Color>) -> Self

Sets stop-color.

Source

pub fn stop_opacity(self, value: impl Into<StopOpacity>) -> Self

Source

pub fn stroke(self, value: impl Into<Stroke>) -> Self

Sets stroke.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn stroke_dasharray(self, value: impl Into<StrokeDasharray>) -> Self

Sets stroke-dasharray.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn stroke_dashoffset(self, value: impl Into<StrokeDashoffset>) -> Self

Source

pub fn stroke_linecap(self, value: impl Into<StrokeLinecap>) -> Self

Source

pub fn stroke_linejoin(self, value: impl Into<StrokeLinejoin>) -> Self

Source

pub fn stroke_miterlimit(self, value: impl Into<f64>) -> Self

Source

pub fn stroke_opacity(self, value: impl Into<StrokeOpacity>) -> Self

Source

pub fn stroke_width(self, value: impl Into<StrokeWidth>) -> Self

Source

pub fn tab_size(self, value: impl Into<TabSize>) -> Self

Sets tab-size.

Source

pub fn table_layout(self, value: impl Into<TableLayout>) -> Self

Source

pub fn text_align(self, value: impl Into<TextAlign>) -> Self

Sets text-align.

Source

pub fn text_align_last(self, value: impl Into<TextAlignLast>) -> Self

Source

pub fn text_anchor(self, value: impl Into<TextAnchor>) -> Self

Source

pub fn text_autospace(self, value: impl Into<TextAutospace>) -> Self

Sets text-autospace.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn text_box(self, value: impl Into<TextBox>) -> Self

Sets text-box.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn text_box_edge(self, value: impl Into<TextBoxEdge>) -> Self

Sets text-box-edge.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn text_box_trim(self, value: impl Into<TextBoxTrim>) -> Self

Source

pub fn text_combine_upright(self, value: impl Into<TextCombineUpright>) -> Self

Sets text-combine-upright.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn text_decoration(self, value: impl Into<TextDecoration>) -> Self

Sets text-decoration.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn text_decoration_color(self, value: impl Into<Color>) -> Self

Source

pub fn text_decoration_inset( self, value: impl Into<TextDecorationInset>, ) -> Self

Sets text-decoration-inset.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn text_decoration_line(self, value: impl Into<TextDecorationLine>) -> Self

Sets text-decoration-line.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn text_decoration_skip_ink( self, value: impl Into<TextDecorationSkipInk>, ) -> Self

Source

pub fn text_decoration_style( self, value: impl Into<TextDecorationStyle>, ) -> Self

Source

pub fn text_decoration_thickness( self, value: impl Into<TextDecorationThickness>, ) -> Self

Source

pub fn text_emphasis(self, value: impl Into<TextEmphasis>) -> Self

Sets text-emphasis.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn text_emphasis_color(self, value: impl Into<Color>) -> Self

Source

pub fn text_emphasis_position( self, value: impl Into<TextEmphasisPosition>, ) -> Self

Sets text-emphasis-position.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn text_emphasis_style(self, value: impl Into<TextEmphasisStyle>) -> Self

Sets text-emphasis-style.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn text_fit(self, value: impl Into<TextFit>) -> Self

Sets text-fit.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn text_indent(self, value: impl Into<TextIndent>) -> Self

Sets text-indent.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn text_justify(self, value: impl Into<TextJustify>) -> Self

Source

pub fn text_orientation(self, value: impl Into<TextOrientation>) -> Self

Source

pub fn text_overflow(self, value: impl Into<TextOverflow>) -> Self

Sets text-overflow.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn text_rendering(self, value: impl Into<TextRendering>) -> Self

Source

pub fn text_shadow(self, value: impl Into<TextShadow>) -> Self

Sets text-shadow.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn text_transform(self, value: impl Into<TextTransform>) -> Self

Sets text-transform.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn text_underline_offset( self, value: impl Into<TextUnderlineOffset>, ) -> Self

Source

pub fn text_underline_position( self, value: impl Into<TextUnderlinePosition>, ) -> Self

Sets text-underline-position.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn text_wrap(self, value: impl Into<TextWrap>) -> Self

Sets text-wrap.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn text_wrap_mode(self, value: impl Into<TextWrapMode>) -> Self

Source

pub fn text_wrap_style(self, value: impl Into<TextWrapStyle>) -> Self

Source

pub fn timeline_trigger(self, value: impl Into<TimelineTrigger>) -> Self

Sets timeline-trigger.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn timeline_trigger_activation_range( self, value: impl Into<TimelineTriggerActivationRange>, ) -> Self

Sets timeline-trigger-activation-range.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn timeline_trigger_activation_range_end( self, value: impl Into<TimelineTriggerActivationRangeEnd>, ) -> Self

Sets timeline-trigger-activation-range-end.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn timeline_trigger_activation_range_start( self, value: impl Into<TimelineTriggerActivationRangeStart>, ) -> Self

Sets timeline-trigger-activation-range-start.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn timeline_trigger_active_range( self, value: impl Into<TimelineTriggerActiveRange>, ) -> Self

Sets timeline-trigger-active-range.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn timeline_trigger_active_range_end( self, value: impl Into<TimelineTriggerActiveRangeEnd>, ) -> Self

Sets timeline-trigger-active-range-end.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn timeline_trigger_active_range_start( self, value: impl Into<TimelineTriggerActiveRangeStart>, ) -> Self

Sets timeline-trigger-active-range-start.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn timeline_trigger_name( self, value: impl Into<TimelineTriggerName>, ) -> Self

Sets timeline-trigger-name.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn timeline_trigger_source( self, value: impl Into<TimelineTriggerSource>, ) -> Self

Sets timeline-trigger-source.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn top(self, value: impl Into<Top>) -> Self

Sets top.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn touch_action(self, value: impl Into<TouchAction>) -> Self

Sets touch-action.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn transform(self, value: impl Into<Transform>) -> Self

Sets transform.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn transform_box(self, value: impl Into<TransformBox>) -> Self

Source

pub fn transform_origin(self, value: impl Into<TransformOrigin>) -> Self

Sets transform-origin.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn transform_style(self, value: impl Into<TransformStyle>) -> Self

Source

pub fn transition(self, value: impl Into<Transition>) -> Self

Sets transition.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn transition_behavior(self, value: impl Into<TransitionBehavior>) -> Self

Sets transition-behavior.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn transition_delay(self, value: impl Into<TransitionDelay>) -> Self

Sets transition-delay.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn transition_duration(self, value: impl Into<TransitionDuration>) -> Self

Sets transition-duration.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn transition_property(self, value: impl Into<TransitionProperty>) -> Self

Sets transition-property.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn transition_timing_function( self, value: impl Into<TransitionTimingFunction>, ) -> Self

Sets transition-timing-function.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn translate(self, value: impl Into<Translate>) -> Self

Sets translate.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn trigger_scope(self, value: impl Into<TriggerScope>) -> Self

Sets trigger-scope.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn unicode_bidi(self, value: impl Into<UnicodeBidi>) -> Self

Source

pub fn user_select(self, value: impl Into<UserSelect>) -> Self

Source

pub fn vector_effect(self, value: impl Into<VectorEffect>) -> Self

Source

pub fn vertical_align(self, value: impl Into<VerticalAlign>) -> Self

Source

pub fn view_transition_class( self, value: impl Into<ViewTransitionClass>, ) -> Self

Sets view-transition-class.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn view_transition_name(self, value: impl Into<ViewTransitionName>) -> Self

Sets view-transition-name.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn view_transition_scope( self, value: impl Into<ViewTransitionScope>, ) -> Self

Source

pub fn visibility(self, value: impl Into<Visibility>) -> Self

Sets visibility.

Source

pub fn white_space(self, value: impl Into<WhiteSpace>) -> Self

Sets white-space.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn white_space_collapse(self, value: impl Into<WhiteSpaceCollapse>) -> Self

Source

pub fn widows(self, value: impl Into<i32>) -> Self

Sets widows.

Source

pub fn width(self, value: impl Into<Width>) -> Self

Sets width.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn will_change(self, value: impl Into<WillChange>) -> Self

Sets will-change.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source

pub fn window_drag(self, value: impl Into<WindowDrag>) -> Self

Source

pub fn word_break(self, value: impl Into<WordBreak>) -> Self

Sets word-break.

Source

pub fn word_spacing(self, value: impl Into<WordSpacing>) -> Self

Source

pub fn word_wrap(self, value: impl Into<WordWrap>) -> Self

Sets word-wrap.

Source

pub fn writing_mode(self, value: impl Into<WritingMode>) -> Self

Source

pub fn x(self, value: impl Into<X>) -> Self

Sets x.

Source

pub fn y(self, value: impl Into<Y>) -> Self

Sets y.

Source

pub fn z_index(self, value: impl Into<ZIndex>) -> Self

Sets z-index.

Source

pub fn zoom(self, value: impl Into<Zoom>) -> Self

Sets zoom.

The single-value forms are typed. Any other value goes through Raw, which is passed to the browser unchecked.

Source§

impl Style

Source

pub fn new() -> Self

An empty style.

Source

pub fn keyframes(self, keyframes: &Keyframes) -> Self

Animates the element with keyframes: sets animation-name to its name, and carries the @keyframes rule to the page.

Source

pub fn token<T: TokenValue>(self, token: &Token<T>, value: impl Into<T>) -> Self

Sets token to value on the element and everything inside it, in place of the default and the page’s Theme.

Source

pub fn keyword(self, property: Property, value: CssWideKeyword) -> Self

Sets property to a keyword every property accepts, such as inherit.

Source

pub fn merge(self, style: Self) -> Self

Adds the declarations of style, which win over this style’s own.

Source

pub fn on(self, condition: impl Into<Condition>, style: Self) -> Self

Adds the declarations of style, applied only under condition.

Conditions nest: style may use on itself, and its declarations then apply under both. The stylesheet writes the pseudo-classes of one declaration in a fixed order, so on(Hover, on(Focus, ..)) and on(Focus, on(Hover, ..)) produce the same class.

Source

pub fn pseudo(self, element: PseudoElement, style: Self) -> Self

Adds the declarations of style to the pseudo-element element.

Pseudo-classes in style apply to the element, so pseudo(Before, Style::new().on(Hover, ..)) is written :hover::before.

§Panics

Panics if style already places a declaration on a pseudo-element, because CSS has no pseudo-element of a pseudo-element.

Source

pub fn group(self) -> Self

Marks the element as the ancestor that Condition::Group tests, with the class group. Any marked ancestor that matches counts, as with the group of Tailwind CSS and Panda CSS.

Source

pub fn peer(self) -> Self

Marks the element as the earlier sibling that Condition::Peer tests, with the class peer.

Source

pub fn class_names(&self) -> impl Iterator<Item = String> + '_

The class names an element needs for this style.

Source

pub fn toggled_class_names(&self) -> impl Iterator<Item = String> + '_

The class names for this style when it is switched on and off at run time. Their rules sit in a later cascade layer than those of Style::class_names, so while switched on they override the element’s own declarations for the same property.

Source

pub fn is_empty(&self) -> bool

Whether the style has no declarations.

Trait Implementations§

Source§

impl Clone for Style

Source§

fn clone(&self) -> Style

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Style

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Style

Source§

fn default() -> Style

Returns the “default value” for a type. Read more
Source§

impl PartialEq for Style

Source§

fn eq(&self, other: &Style) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for Style

Auto Trait Implementations§

§

impl Freeze for Style

§

impl RefUnwindSafe for Style

§

impl Send for Style

§

impl Sync for Style

§

impl Unpin for Style

§

impl UnsafeUnpin for Style

§

impl UnwindSafe for Style

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.