padding.mako.rs (1871B)
1 /* This Source Code Form is subject to the terms of the Mozilla Public 2 * License, v. 2.0. If a copy of the MPL was not distributed with this 3 * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ 4 5 <%namespace name="helpers" file="/helpers.mako.rs" /> 6 7 ${helpers.four_sides_shorthand( 8 "padding", 9 "padding-%s", 10 "specified::NonNegativeLengthPercentage::parse", 11 engines="gecko servo", 12 spec="https://drafts.csswg.org/css-box-3/#propdef-padding", 13 allow_quirks="Yes", 14 )} 15 16 ${helpers.two_properties_shorthand( 17 "padding-block", 18 "padding-block-start", 19 "padding-block-end", 20 "specified::NonNegativeLengthPercentage::parse", 21 engines="gecko servo", 22 spec="https://drafts.csswg.org/css-logical/#propdef-padding-block" 23 )} 24 25 ${helpers.two_properties_shorthand( 26 "padding-inline", 27 "padding-inline-start", 28 "padding-inline-end", 29 "specified::NonNegativeLengthPercentage::parse", 30 engines="gecko servo", 31 spec="https://drafts.csswg.org/css-logical/#propdef-padding-inline" 32 )} 33 34 ${helpers.four_sides_shorthand( 35 "scroll-padding", 36 "scroll-padding-%s", 37 "specified::NonNegativeLengthPercentageOrAuto::parse", 38 engines="gecko", 39 spec="https://drafts.csswg.org/css-scroll-snap-1/#propdef-scroll-padding" 40 )} 41 42 ${helpers.two_properties_shorthand( 43 "scroll-padding-block", 44 "scroll-padding-block-start", 45 "scroll-padding-block-end", 46 "specified::NonNegativeLengthPercentageOrAuto::parse", 47 engines="gecko", 48 spec="https://drafts.csswg.org/css-scroll-snap-1/#propdef-scroll-padding-block" 49 )} 50 51 ${helpers.two_properties_shorthand( 52 "scroll-padding-inline", 53 "scroll-padding-inline-start", 54 "scroll-padding-inline-end", 55 "specified::NonNegativeLengthPercentageOrAuto::parse", 56 engines="gecko", 57 spec="https://drafts.csswg.org/css-scroll-snap-1/#propdef-scroll-padding-inline" 58 )}