@@ -3777,7 +3777,7 @@ const eighthTurnEntries = (values) => {
37773777// Spec prose no dataset states: an equivalence between two spellings, or a
37783778// judgement about what a construct still does. Each carries the reason it has to
37793779// be written out rather than derived.
3780- /** @type {{ cssWideKeywords: string[], cubicBezierKeywords: [string, string][], flexKeywords: [string, string][], fontWeightNumbers: [string, string][], fontStretchPercentages: [string, string][], filterFunctionOmitted: [string, string][], positionKeywordPercentages: [string, string][], legacyPseudoElements: string[], compoundContinuations: string[], featurelessPseudoClasses: string[], initialValueKeywords: [string, string][], initialKeywordsAnEngineReadsApart: string[], unmergeableSlotKeywords: [string, string][], zeroUnitKeepingProperties: string[], calcRejectingProperties: string[], clampedValueRanges: [string, string, number, number][], autoSecondValueProperties: string[], defaultGradientDirections: string[], xAxisTransforms: [string, string][], negativeAcceptingProperties: string[], placeShorthands: string[], oneValuePairShorthands: string[], familyShorthands: string[], orderedShorthands: string[], omittableInitialKeywords: string[], pairLonghandOverrides: [string, string[]][], droppableWhenEmptyAtRules: string[], replacedByNameAtRules: string[], classSpellings: [string, string[]][], absoluteUnitScale: [string, string, number][], unitConversionTargets: string[], angleUnits: string[], colorSpacePrimitives: [string, string][], oklabMatrices: number[][], systemUiStack: string[], colorTransfers: [string, string][], predefinedColorSpaces: [string, string, string, string][], colorPrimaries: [string, number[]][], colorWhitePoints: [string, number[]][], enginesDisagreeOnTransfer: string[], calcConstantValues: [string, string][], quarterTurnAngle: [string, number][], eighthTurnSine: (number | null)[], eighthTurnTangent: (number | null)[], mathFunctionFold: [string, string, string, string, string | null, boolean][], mathPrimitives: [string, string][], predefinedCounterStyles: string[], predefinedCounterNames: string[], cssModulesKeywordSupplement: [string, string, number][] } } */
3780+ /** @type {{ cssWideKeywords: string[], cubicBezierKeywords: [string, string][], flexKeywords: [string, string][], fontWeightNumbers: [string, string][], fontStretchPercentages: [string, string][], filterFunctionOmitted: [string, string][], positionKeywordPercentages: [string, string][], legacyPseudoElements: string[], compoundContinuations: string[], featurelessPseudoClasses: string[], initialValueKeywords: [string, string][], initialKeywordsAnEngineReadsApart: string[], unmergeableSlotKeywords: [string, string][], zeroUnitKeepingProperties: string[], calcRejectingProperties: string[], clampedValueRanges: [string, string, number, number][], stepPositionMinimumCounts: [string, number][], autoSecondValueProperties: string[], defaultGradientDirections: string[], xAxisTransforms: [string, string][], negativeAcceptingProperties: string[], placeShorthands: string[], oneValuePairShorthands: string[], familyShorthands: string[], orderedShorthands: string[], omittableInitialKeywords: string[], pairLonghandOverrides: [string, string[]][], droppableWhenEmptyAtRules: string[], replacedByNameAtRules: string[], classSpellings: [string, string[]][], absoluteUnitScale: [string, string, number][], unitConversionTargets: string[], angleUnits: string[], colorSpacePrimitives: [string, string][], oklabMatrices: number[][], systemUiStack: string[], colorTransfers: [string, string][], predefinedColorSpaces: [string, string, string, string][], colorPrimaries: [string, number[]][], colorWhitePoints: [string, number[]][], enginesDisagreeOnTransfer: string[], calcConstantValues: [string, string][], quarterTurnAngle: [string, number][], eighthTurnSine: (number | null)[], eighthTurnTangent: (number | null)[], mathFunctionFold: [string, string, string, string, string | null, boolean][], mathPrimitives: [string, string][], predefinedCounterStyles: string[], predefinedCounterNames: string[], cssModulesKeywordSupplement: [string, string, number][] } } */
37813781
37823782const SUPPLEMENT = {
37833783 // CSS Values 4's list. `mdn-data` has no `css-wide-keyword` production.
@@ -3899,6 +3899,19 @@ const SUPPLEMENT = {
38993899 // declaration off. CSS Fonts 4 §2.3 bounds `oblique` at ±90deg; `mdn-data`
39003900 // states `oblique <angle>` with no range, and no dataset carries the clamp.
39013901 clampedValueRanges : [ [ "font-style" , "deg" , - 90 , 90 ] ] ,
3902+ // WHY: The same trade one argument in: `steps()` clamps a count below its
3903+ // minimum inside a `calc()` and rejects the bare literal, so folding one to
3904+ // the value it equals switches the easing off. CSS Easing 2 §2.2 states the
3905+ // minimum as prose — `jump-none` holds neither end, so it takes two intervals
3906+ // to have any — and the grammar `mdn-data` carries says only `<integer>`.
3907+ stepPositionMinimumCounts : [
3908+ [ "jump-start" , 1 ] ,
3909+ [ "jump-end" , 1 ] ,
3910+ [ "jump-both" , 1 ] ,
3911+ [ "jump-none" , 2 ] ,
3912+ [ "start" , 1 ] ,
3913+ [ "end" , 1 ]
3914+ ] ,
39023915 // CSS Backgrounds 3 §3.9 / CSS Masking 1 §4.5: these spell an omitted second
39033916 // value `auto`, not the first repeated. Their shared grammar cannot say so.
39043917 autoSecondValueProperties : [ "background-size" , "mask-size" ] ,
@@ -7224,6 +7237,14 @@ const CLAMPED_VALUE_RANGES = new Map([${SUPPLEMENT.clampedValueRanges
72247237 . map ( ( [ name , unit , min , max ] ) => `["${ name } ", ["${ unit } ", ${ min } , ${ max } ]]` )
72257238 . join ( ", " ) } ]);
72267239
7240+ // The smallest count \`steps()\` takes as a literal, keyed by its
7241+ // \`<step-position>\`. A position missing here is one the table has not met, so
7242+ // it reads as the largest and the fold declines rather than guesses.
7243+ /** @type {Map<string, number>} */
7244+ const STEP_POSITION_MINIMUM_COUNTS = new Map([${ SUPPLEMENT . stepPositionMinimumCounts
7245+ . map ( ( [ name , min ] ) => `["${ name } ", ${ min } ]` )
7246+ . join ( ", " ) } ]);
7247+
72277248// At-rules whose empty block is inert, so dropping it changes nothing.
72287249const DROPPABLE_WHEN_EMPTY_AT_RULES = ${ setLiteral (
72297250 SUPPLEMENT . droppableWhenEmptyAtRules
@@ -7599,7 +7620,7 @@ module.exports.PREFIX_WINDOWS = PREFIX_WINDOWS;\nmodule.exports.PREFIX_WINDOW_ST
75997620module.exports.QUARTER_TURN_ANGLE = QUARTER_TURN_ANGLE;
76007621module.exports.RATIO_PROPERTIES = RATIO_PROPERTIES;\nmodule.exports.REPEAT_STYLE_KEYWORDS = REPEAT_STYLE_KEYWORDS;\nmodule.exports.REPEAT_STYLE_PROPERTIES = REPEAT_STYLE_PROPERTIES;\nmodule.exports.RGB_TO_NAME = RGB_TO_NAME;
76017622module.exports.SELECTOR_FUNCTIONS = SELECTOR_FUNCTIONS;\nmodule.exports.SELECTOR_SUPPORTED_FROM = SELECTOR_SUPPORTED_FROM;\nmodule.exports.SHADOW_PROPERTIES = SHADOW_PROPERTIES;\nmodule.exports.SHORTHAND_INITIAL_KEYWORDS = SHORTHAND_INITIAL_KEYWORDS;\nmodule.exports.SHORTHAND_LONGHANDS = SHORTHAND_LONGHANDS;\nmodule.exports.SLASH_BOX_SHORTHANDS = SLASH_BOX_SHORTHANDS;\nmodule.exports.SLASH_LONGHANDS = SLASH_LONGHANDS;\nmodule.exports.SRGB_SPACE = SRGB_SPACE;
7602- module.exports.STEPPED_FUNCTIONS = STEPPED_FUNCTIONS;
7623+ module.exports.STEPPED_FUNCTIONS = STEPPED_FUNCTIONS;\nmodule.exports.STEP_POSITION_MINIMUM_COUNTS = STEP_POSITION_MINIMUM_COUNTS;
76037624module.exports.SUBSTITUTION_FUNCTIONS = SUBSTITUTION_FUNCTIONS;\nmodule.exports.SUPPORTED_FROM = SUPPORTED_FROM;\nmodule.exports.SUPPORT_BROWSERS = SUPPORT_BROWSERS;\nmodule.exports.SUPPORT_PROFILES = SUPPORT_PROFILES;\nmodule.exports.SYSTEM_UI_STACK = SYSTEM_UI_STACK;\nmodule.exports.THROUGH_MATRIX = THROUGH_MATRIX;\nmodule.exports.THROUGH_TRANSFER = THROUGH_TRANSFER;\nmodule.exports.TRANSITION_BEHAVIORS = TRANSITION_BEHAVIORS;
76047625module.exports.UNIT_CONVERSION_TARGETS = UNIT_CONVERSION_TARGETS;
76057626module.exports.UNIT_GROUP_BASE = UNIT_GROUP_BASE;\nmodule.exports.UNSHARED_LONGHAND_KEYWORDS = UNSHARED_LONGHAND_KEYWORDS;\nmodule.exports.VALUE_SUPPORT_PACKED = VALUE_SUPPORT_PACKED;\nmodule.exports.X_AXIS_TRANSFORMS = X_AXIS_TRANSFORMS;
0 commit comments