1#![allow(warnings)]
2mod impls;
5use super::prelude::*;
6use impls::*;
7#[syntax(" none | nearest ")]
19#[derive(
20 Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
21)]
22#[declaration_metadata(
23 initial = "none",
24 applies_to = Elements,
25 property_group = ScrollSnap,
26 computed_value_type = Unknown,
27 canonical_order = "per grammar",
28)]
29#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
30#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.scroll-initial-target"))]
31#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
32pub enum ScrollInitialTargetStyleValue {}
33
34#[syntax(" <length>{1,4} ")]
46#[derive(
47 Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
48)]
49#[declaration_metadata(
50 initial = "0",
51 applies_to = Elements,
52 animation_type = ByComputedValue,
53 property_group = ScrollSnap,
54 computed_value_type = AbsoluteLength,
55 canonical_order = "per grammar",
56)]
57#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
58#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.scroll-margin"))]
59#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
60pub struct ScrollMarginStyleValue;
61
62#[syntax(" <length>{1,2} ")]
74#[derive(
75 Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
76)]
77#[declaration_metadata(
78 initial = "0",
79 applies_to = Elements,
80 animation_type = ByComputedValue,
81 property_group = ScrollSnap,
82 computed_value_type = Unknown,
83 canonical_order = "per grammar",
84 box_side = BlockStart|BlockEnd,
85)]
86#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
87#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.scroll-margin-block"))]
88#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
89pub struct ScrollMarginBlockStyleValue;
90
91#[syntax(" <length> ")]
103#[derive(
104 Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
105)]
106#[declaration_metadata(
107 initial = "0",
108 applies_to = Elements,
109 animation_type = ByComputedValue,
110 property_group = ScrollSnap,
111 computed_value_type = AbsoluteLength,
112 canonical_order = "per grammar",
113 logical_property_group = ScrollMargin,
114 box_side = BlockEnd,
115)]
116#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
117#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.scroll-margin-block-end"))]
118#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
119pub struct ScrollMarginBlockEndStyleValue;
120
121#[syntax(" <length> ")]
133#[derive(
134 Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
135)]
136#[declaration_metadata(
137 initial = "0",
138 applies_to = Elements,
139 animation_type = ByComputedValue,
140 property_group = ScrollSnap,
141 computed_value_type = AbsoluteLength,
142 canonical_order = "per grammar",
143 logical_property_group = ScrollMargin,
144 box_side = BlockStart,
145)]
146#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
147#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.scroll-margin-block-start"))]
148#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
149pub struct ScrollMarginBlockStartStyleValue;
150
151#[syntax(" <length> ")]
163#[derive(
164 Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
165)]
166#[declaration_metadata(
167 initial = "0",
168 applies_to = Elements,
169 animation_type = ByComputedValue,
170 property_group = ScrollSnap,
171 computed_value_type = AbsoluteLength,
172 canonical_order = "per grammar",
173 logical_property_group = ScrollMargin,
174 box_side = Bottom,
175)]
176#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
177#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.scroll-margin-bottom"))]
178#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
179pub struct ScrollMarginBottomStyleValue;
180
181#[syntax(" <length>{1,2} ")]
193#[derive(
194 Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
195)]
196#[declaration_metadata(
197 initial = "0",
198 applies_to = Elements,
199 animation_type = ByComputedValue,
200 property_group = ScrollSnap,
201 computed_value_type = Unknown,
202 canonical_order = "per grammar",
203 box_side = InlineStart|InlineEnd,
204)]
205#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
206#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.scroll-margin-inline"))]
207#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
208pub struct ScrollMarginInlineStyleValue;
209
210#[syntax(" <length> ")]
222#[derive(
223 Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
224)]
225#[declaration_metadata(
226 initial = "0",
227 applies_to = Elements,
228 animation_type = ByComputedValue,
229 property_group = ScrollSnap,
230 computed_value_type = AbsoluteLength,
231 canonical_order = "per grammar",
232 logical_property_group = ScrollMargin,
233 box_side = InlineEnd,
234)]
235#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
236#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.scroll-margin-inline-end"))]
237#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
238pub struct ScrollMarginInlineEndStyleValue;
239
240#[syntax(" <length> ")]
252#[derive(
253 Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
254)]
255#[declaration_metadata(
256 initial = "0",
257 applies_to = Elements,
258 animation_type = ByComputedValue,
259 property_group = ScrollSnap,
260 computed_value_type = AbsoluteLength,
261 canonical_order = "per grammar",
262 logical_property_group = ScrollMargin,
263 box_side = InlineStart,
264)]
265#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
266#[cfg_attr(
267 feature = "css_feature_data",
268 derive(ToCSSFeature),
269 css_feature("css.properties.scroll-margin-inline-start")
270)]
271#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
272pub struct ScrollMarginInlineStartStyleValue;
273
274#[syntax(" <length> ")]
286#[derive(
287 Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
288)]
289#[declaration_metadata(
290 initial = "0",
291 applies_to = Elements,
292 animation_type = ByComputedValue,
293 property_group = ScrollSnap,
294 computed_value_type = AbsoluteLength,
295 canonical_order = "per grammar",
296 logical_property_group = ScrollMargin,
297 box_side = Left,
298)]
299#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
300#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.scroll-margin-left"))]
301#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
302pub struct ScrollMarginLeftStyleValue;
303
304#[syntax(" <length> ")]
316#[derive(
317 Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
318)]
319#[declaration_metadata(
320 initial = "0",
321 applies_to = Elements,
322 animation_type = ByComputedValue,
323 property_group = ScrollSnap,
324 computed_value_type = AbsoluteLength,
325 canonical_order = "per grammar",
326 logical_property_group = ScrollMargin,
327 box_side = Right,
328)]
329#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
330#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.scroll-margin-right"))]
331#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
332pub struct ScrollMarginRightStyleValue;
333
334#[syntax(" <length> ")]
346#[derive(
347 Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
348)]
349#[declaration_metadata(
350 initial = "0",
351 applies_to = Elements,
352 animation_type = ByComputedValue,
353 property_group = ScrollSnap,
354 computed_value_type = AbsoluteLength,
355 canonical_order = "per grammar",
356 logical_property_group = ScrollMargin,
357 box_side = Top,
358)]
359#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
360#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.scroll-margin-top"))]
361#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
362pub struct ScrollMarginTopStyleValue;
363
364#[syntax(" [ auto | <length-percentage [0,∞]> ]{1,4} ")]
376#[derive(
377 Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
378)]
379#[declaration_metadata(
380 initial = "auto",
381 applies_to = Unknown,
382 percentages = Scrollport,
383 animation_type = ByComputedValue,
384 property_group = ScrollSnap,
385 computed_value_type = Unknown,
386 canonical_order = "per grammar",
387)]
388#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
389#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.scroll-padding"))]
390#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
391pub struct ScrollPaddingStyleValue;
392
393#[syntax(" [ auto | <length-percentage [0,∞]> ]{1,2} ")]
405#[derive(
406 Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
407)]
408#[declaration_metadata(
409 initial = "auto",
410 applies_to = Unknown,
411 percentages = Scrollport,
412 animation_type = ByComputedValue,
413 property_group = ScrollSnap,
414 computed_value_type = Unknown,
415 canonical_order = "per grammar",
416 box_side = BlockStart|BlockEnd,
417)]
418#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
419#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.scroll-padding-block"))]
420#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
421pub struct ScrollPaddingBlockStyleValue;
422
423#[syntax(" auto | <length-percentage [0,∞]> ")]
435#[derive(
436 Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
437)]
438#[declaration_metadata(
439 initial = "auto",
440 applies_to = Unknown,
441 percentages = Scrollport,
442 animation_type = ByComputedValue,
443 property_group = ScrollSnap,
444 computed_value_type = Unknown,
445 canonical_order = "per grammar",
446 logical_property_group = ScrollPadding,
447 box_side = BlockEnd,
448)]
449#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
450#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.scroll-padding-block-end"))]
451#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
452pub struct ScrollPaddingBlockEndStyleValue;
453
454#[syntax(" auto | <length-percentage [0,∞]> ")]
466#[derive(
467 Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
468)]
469#[declaration_metadata(
470 initial = "auto",
471 applies_to = Unknown,
472 percentages = Scrollport,
473 animation_type = ByComputedValue,
474 property_group = ScrollSnap,
475 computed_value_type = Unknown,
476 canonical_order = "per grammar",
477 logical_property_group = ScrollPadding,
478 box_side = BlockStart,
479)]
480#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
481#[cfg_attr(
482 feature = "css_feature_data",
483 derive(ToCSSFeature),
484 css_feature("css.properties.scroll-padding-block-start")
485)]
486#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
487pub struct ScrollPaddingBlockStartStyleValue;
488
489#[syntax(" auto | <length-percentage [0,∞]> ")]
501#[derive(
502 Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
503)]
504#[declaration_metadata(
505 initial = "auto",
506 applies_to = Unknown,
507 percentages = Scrollport,
508 animation_type = ByComputedValue,
509 property_group = ScrollSnap,
510 computed_value_type = Unknown,
511 canonical_order = "per grammar",
512 logical_property_group = ScrollPadding,
513 box_side = Bottom,
514)]
515#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
516#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.scroll-padding-bottom"))]
517#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
518pub struct ScrollPaddingBottomStyleValue;
519
520#[syntax(" [ auto | <length-percentage [0,∞]> ]{1,2} ")]
532#[derive(
533 Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
534)]
535#[declaration_metadata(
536 initial = "auto",
537 applies_to = Unknown,
538 percentages = Scrollport,
539 animation_type = ByComputedValue,
540 property_group = ScrollSnap,
541 computed_value_type = Unknown,
542 canonical_order = "per grammar",
543 box_side = InlineStart|InlineEnd,
544)]
545#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
546#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.scroll-padding-inline"))]
547#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
548pub struct ScrollPaddingInlineStyleValue;
549
550#[syntax(" auto | <length-percentage [0,∞]> ")]
562#[derive(
563 Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
564)]
565#[declaration_metadata(
566 initial = "auto",
567 applies_to = Unknown,
568 percentages = Scrollport,
569 animation_type = ByComputedValue,
570 property_group = ScrollSnap,
571 computed_value_type = Unknown,
572 canonical_order = "per grammar",
573 logical_property_group = ScrollPadding,
574 box_side = InlineEnd,
575)]
576#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
577#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.scroll-padding-inline-end"))]
578#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
579pub struct ScrollPaddingInlineEndStyleValue;
580
581#[syntax(" auto | <length-percentage [0,∞]> ")]
593#[derive(
594 Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
595)]
596#[declaration_metadata(
597 initial = "auto",
598 applies_to = Unknown,
599 percentages = Scrollport,
600 animation_type = ByComputedValue,
601 property_group = ScrollSnap,
602 computed_value_type = Unknown,
603 canonical_order = "per grammar",
604 logical_property_group = ScrollPadding,
605 box_side = InlineStart,
606)]
607#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
608#[cfg_attr(
609 feature = "css_feature_data",
610 derive(ToCSSFeature),
611 css_feature("css.properties.scroll-padding-inline-start")
612)]
613#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
614pub struct ScrollPaddingInlineStartStyleValue;
615
616#[syntax(" auto | <length-percentage [0,∞]> ")]
628#[derive(
629 Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
630)]
631#[declaration_metadata(
632 initial = "auto",
633 applies_to = Unknown,
634 percentages = Scrollport,
635 animation_type = ByComputedValue,
636 property_group = ScrollSnap,
637 computed_value_type = Unknown,
638 canonical_order = "per grammar",
639 logical_property_group = ScrollPadding,
640 box_side = Left,
641)]
642#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
643#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.scroll-padding-left"))]
644#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
645pub struct ScrollPaddingLeftStyleValue;
646
647#[syntax(" auto | <length-percentage [0,∞]> ")]
659#[derive(
660 Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
661)]
662#[declaration_metadata(
663 initial = "auto",
664 applies_to = Unknown,
665 percentages = Scrollport,
666 animation_type = ByComputedValue,
667 property_group = ScrollSnap,
668 computed_value_type = Unknown,
669 canonical_order = "per grammar",
670 logical_property_group = ScrollPadding,
671 box_side = Right,
672)]
673#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
674#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.scroll-padding-right"))]
675#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
676pub struct ScrollPaddingRightStyleValue;
677
678#[syntax(" auto | <length-percentage [0,∞]> ")]
690#[derive(
691 Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
692)]
693#[declaration_metadata(
694 initial = "auto",
695 applies_to = Unknown,
696 percentages = Scrollport,
697 animation_type = ByComputedValue,
698 property_group = ScrollSnap,
699 computed_value_type = Unknown,
700 canonical_order = "per grammar",
701 logical_property_group = ScrollPadding,
702 box_side = Top,
703)]
704#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
705#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.scroll-padding-top"))]
706#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
707pub struct ScrollPaddingTopStyleValue;
708
709#[syntax(" [ none | start | end | center ]{1,2} ")]
721#[derive(
722 Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
723)]
724#[declaration_metadata(
725 initial = "none",
726 applies_to = Elements,
727 animation_type = Discrete,
728 property_group = ScrollSnap,
729 computed_value_type = Unknown,
730 canonical_order = "per grammar",
731)]
732#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
733#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.scroll-snap-align"))]
734#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
735pub struct ScrollSnapAlignStyleValue;
736
737#[syntax(" normal | always ")]
749#[derive(
750 Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
751)]
752#[declaration_metadata(
753 initial = "normal",
754 applies_to = Elements,
755 animation_type = Discrete,
756 property_group = ScrollSnap,
757 computed_value_type = Unknown,
758 canonical_order = "per grammar",
759)]
760#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
761#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.scroll-snap-stop"))]
762#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
763pub enum ScrollSnapStopStyleValue {}
764
765