From 76cb9c2a39d477a64824a985ade40507e3bbade1 Mon Sep 17 00:00:00 2001 From: Adam Mathes Date: Fri, 13 Feb 2026 21:34:48 -0800 Subject: feat(vanilla): add testing infrastructure and tests (NK-wjnczv) --- vanilla/node_modules/css-tree/data/patch.json | 982 ++++++++++++++++++++++++++ 1 file changed, 982 insertions(+) create mode 100644 vanilla/node_modules/css-tree/data/patch.json (limited to 'vanilla/node_modules/css-tree/data') diff --git a/vanilla/node_modules/css-tree/data/patch.json b/vanilla/node_modules/css-tree/data/patch.json new file mode 100644 index 0000000..08c59a1 --- /dev/null +++ b/vanilla/node_modules/css-tree/data/patch.json @@ -0,0 +1,982 @@ +{ + "atrules": { + "charset": { + "prelude": "" + }, + "container": { + "prelude": "[ ]? " + }, + "font-face": { + "descriptors": { + "unicode-range": { + "comment": "replaces , an old production name", + "syntax": "#" + } + } + }, + "nest": { + "prelude": "" + }, + "scope": { + "prelude": "[ ( ) ]? [ to ( ) ]?" + }, + "position-try": { + "comment": "The list of descriptors: https://developer.mozilla.org/en-US/docs/Web/CSS/@position-try", + "descriptors": { + "top": "<'top'>", + "left": "<'left'>", + "bottom": "<'bottom'>", + "right": "<'right'>", + "inset-block-start": "<'inset-block-start'>", + "inset-block-end": "<'inset-block-end'>", + "inset-inline-start": "<'inset-inline-start'>", + "inset-inline-end": "<'inset-inline-end'>", + "inset-block": "<'inset-block'>", + "inset-inline": "<'inset-inline'>", + "inset": "<'inset'>", + "margin-top": "<'margin-top'>", + "margin-left": "<'margin-left'>", + "margin-bottom": "<'margin-bottom'>", + "margin-right": "<'margin-right'>", + "margin-block-start": "<'margin-block-start'>", + "margin-block-end": "<'margin-block-end'>", + "margin-inline-start": "<'margin-inline-start'>", + "margin-inline-end": "<'margin-inline-end'>", + "margin": "<'margin'>", + "margin-block": "<'margin-block'>", + "margin-inline": "<'margin-inline'>", + "width": "<'width'>", + "height": "<'height'>", + "min-width": "<'min-width'>", + "min-height": "<'min-height'>", + "max-width": "<'max-width'>", + "max-height": "<'max-height'>", + "block-size": "<'block-size'>", + "inline-size": "<'inline-size'>", + "min-block-size": "<'min-block-size'>", + "min-inline-size": "<'min-inline-size'>", + "max-block-size": "<'max-block-size'>", + "max-inline-size": "<'max-inline-size'>", + "align-self": "<'align-self'> | anchor-center", + "justify-self": "<'justify-self'> | anchor-center" + } + } + }, + "properties": { + "-moz-background-clip": { + "comment": "deprecated syntax in old Firefox, https://developer.mozilla.org/en/docs/Web/CSS/background-clip", + "syntax": "padding | border" + }, + "-moz-border-radius-bottomleft": { + "comment": "https://developer.mozilla.org/en-US/docs/Web/CSS/border-bottom-left-radius", + "syntax": "<'border-bottom-left-radius'>" + }, + "-moz-border-radius-bottomright": { + "comment": "https://developer.mozilla.org/en-US/docs/Web/CSS/border-bottom-right-radius", + "syntax": "<'border-bottom-right-radius'>" + }, + "-moz-border-radius-topleft": { + "comment": "https://developer.mozilla.org/en-US/docs/Web/CSS/border-top-left-radius", + "syntax": "<'border-top-left-radius'>" + }, + "-moz-border-radius-topright": { + "comment": "https://developer.mozilla.org/en-US/docs/Web/CSS/border-bottom-right-radius", + "syntax": "<'border-bottom-right-radius'>" + }, + "-moz-control-character-visibility": { + "comment": "firefox specific keywords, https://bugzilla.mozilla.org/show_bug.cgi?id=947588", + "syntax": "visible | hidden" + }, + "-moz-osx-font-smoothing": { + "comment": "misssed old syntax https://developer.mozilla.org/en-US/docs/Web/CSS/font-smooth", + "syntax": "auto | grayscale" + }, + "-moz-user-select": { + "comment": "https://developer.mozilla.org/en-US/docs/Web/CSS/user-select", + "syntax": "none | text | all | -moz-none" + }, + "-ms-flex-align": { + "comment": "misssed old syntax implemented in IE, https://www.w3.org/TR/2012/WD-css3-flexbox-20120322/#flex-align", + "syntax": "start | end | center | baseline | stretch" + }, + "-ms-flex-item-align": { + "comment": "misssed old syntax implemented in IE, https://www.w3.org/TR/2012/WD-css3-flexbox-20120322/#flex-align", + "syntax": "auto | start | end | center | baseline | stretch" + }, + "-ms-flex-line-pack": { + "comment": "misssed old syntax implemented in IE, https://www.w3.org/TR/2012/WD-css3-flexbox-20120322/#flex-line-pack", + "syntax": "start | end | center | justify | distribute | stretch" + }, + "-ms-flex-negative": { + "comment": "misssed old syntax implemented in IE; TODO: find references for comfirmation", + "syntax": "<'flex-shrink'>" + }, + "-ms-flex-pack": { + "comment": "misssed old syntax implemented in IE, https://www.w3.org/TR/2012/WD-css3-flexbox-20120322/#flex-pack", + "syntax": "start | end | center | justify | distribute" + }, + "-ms-flex-order": { + "comment": "misssed old syntax implemented in IE; https://msdn.microsoft.com/en-us/library/jj127303(v=vs.85).aspx", + "syntax": "" + }, + "-ms-flex-positive": { + "comment": "misssed old syntax implemented in IE; TODO: find references for comfirmation", + "syntax": "<'flex-grow'>" + }, + "-ms-flex-preferred-size": { + "comment": "misssed old syntax implemented in IE; TODO: find references for comfirmation", + "syntax": "<'flex-basis'>" + }, + "-ms-interpolation-mode": { + "comment": "https://msdn.microsoft.com/en-us/library/ff521095(v=vs.85).aspx", + "syntax": "nearest-neighbor | bicubic" + }, + "-ms-grid-column-align": { + "comment": "add this property first since it uses as fallback for flexbox, https://msdn.microsoft.com/en-us/library/windows/apps/hh466338.aspx", + "syntax": "start | end | center | stretch" + }, + "-ms-grid-row-align": { + "comment": "add this property first since it uses as fallback for flexbox, https://msdn.microsoft.com/en-us/library/windows/apps/hh466348.aspx", + "syntax": "start | end | center | stretch" + }, + "-ms-hyphenate-limit-last": { + "comment": "misssed old syntax implemented in IE; https://www.w3.org/TR/css-text-4/#hyphenate-line-limits", + "syntax": "none | always | column | page | spread" + }, + "-webkit-appearance": { + "comment": "webkit specific keywords", + "references": [ + "http://css-infos.net/property/-webkit-appearance" + ], + "syntax": "none | button | button-bevel | caps-lock-indicator | caret | checkbox | default-button | inner-spin-button | listbox | listitem | media-controls-background | media-controls-fullscreen-background | media-current-time-display | media-enter-fullscreen-button | media-exit-fullscreen-button | media-fullscreen-button | media-mute-button | media-overlay-play-button | media-play-button | media-seek-back-button | media-seek-forward-button | media-slider | media-sliderthumb | media-time-remaining-display | media-toggle-closed-captions-button | media-volume-slider | media-volume-slider-container | media-volume-sliderthumb | menulist | menulist-button | menulist-text | menulist-textfield | meter | progress-bar | progress-bar-value | push-button | radio | scrollbarbutton-down | scrollbarbutton-left | scrollbarbutton-right | scrollbarbutton-up | scrollbargripper-horizontal | scrollbargripper-vertical | scrollbarthumb-horizontal | scrollbarthumb-vertical | scrollbartrack-horizontal | scrollbartrack-vertical | searchfield | searchfield-cancel-button | searchfield-decoration | searchfield-results-button | searchfield-results-decoration | slider-horizontal | slider-vertical | sliderthumb-horizontal | sliderthumb-vertical | square-button | textarea | textfield | -apple-pay-button" + }, + "-webkit-background-clip": { + "comment": "https://developer.mozilla.org/en/docs/Web/CSS/background-clip", + "syntax": "[ | border | padding | content | text ]#" + }, + "-webkit-column-break-after": { + "comment": "added, http://help.dottoro.com/lcrthhhv.php", + "syntax": "always | auto | avoid" + }, + "-webkit-column-break-before": { + "comment": "added, http://help.dottoro.com/lcxquvkf.php", + "syntax": "always | auto | avoid" + }, + "-webkit-column-break-inside": { + "comment": "added, http://help.dottoro.com/lclhnthl.php", + "syntax": "always | auto | avoid" + }, + "-webkit-font-smoothing": { + "comment": "https://developer.mozilla.org/en-US/docs/Web/CSS/font-smooth", + "syntax": "auto | none | antialiased | subpixel-antialiased" + }, + "-webkit-mask-box-image": { + "comment": "missed; https://developer.mozilla.org/en-US/docs/Web/CSS/-webkit-mask-box-image", + "syntax": "[ | | none ] [ {4} <-webkit-mask-box-repeat>{2} ]?" + }, + "-webkit-print-color-adjust": { + "comment": "missed", + "references": [ + "https://developer.mozilla.org/en/docs/Web/CSS/-webkit-print-color-adjust" + ], + "syntax": "economy | exact" + }, + "-webkit-text-security": { + "comment": "missed; http://help.dottoro.com/lcbkewgt.php", + "syntax": "none | circle | disc | square" + }, + "-webkit-user-drag": { + "comment": "missed; http://help.dottoro.com/lcbixvwm.php", + "syntax": "none | element | auto" + }, + "-webkit-user-select": { + "comment": "auto is supported by old webkit, https://developer.mozilla.org/en-US/docs/Web/CSS/user-select", + "syntax": "auto | none | text | all" + }, + "alignment-baseline": { + "comment": "added SVG property", + "references": [ + "https://www.w3.org/TR/SVG/text.html#AlignmentBaselineProperty" + ], + "syntax": "auto | baseline | before-edge | text-before-edge | middle | central | after-edge | text-after-edge | ideographic | alphabetic | hanging | mathematical" + }, + "background-clip": { + "comment": "used from CSS Backgrounds and Borders 4 since it adds new values", + "references": [ + "https://github.com/csstree/csstree/issues/190" + ], + "syntax": "#" + }, + "baseline-shift": { + "comment": "added SVG property", + "references": [ + "https://www.w3.org/TR/SVG/text.html#BaselineShiftProperty" + ], + "syntax": "baseline | sub | super | " + }, + "behavior": { + "comment": "added old IE property https://msdn.microsoft.com/en-us/library/ms530723(v=vs.85).aspx", + "syntax": "+" + }, + "container-type": { + "comment": "https://www.w3.org/TR/css-contain-3/#propdef-container-type", + "syntax": "normal || [ size | inline-size ]" + }, + "cue": { + "comment": "https://www.w3.org/TR/css3-speech/#property-index", + "syntax": "<'cue-before'> <'cue-after'>?" + }, + "cue-after": { + "comment": "https://www.w3.org/TR/css3-speech/#property-index", + "syntax": " ? | none" + }, + "cue-before": { + "comment": "https://www.w3.org/TR/css3-speech/#property-index", + "syntax": " ? | none" + }, + "cursor": { + "comment": "added legacy keywords: hand, -webkit-grab. -webkit-grabbing, -webkit-zoom-in, -webkit-zoom-out, -moz-grab, -moz-grabbing, -moz-zoom-in, -moz-zoom-out", + "references": [ + "https://www.sitepoint.com/css3-cursor-styles/" + ], + "syntax": "[ [ [ ]? , ]* [ auto | default | none | context-menu | help | pointer | progress | wait | cell | crosshair | text | vertical-text | alias | copy | move | no-drop | not-allowed | e-resize | n-resize | ne-resize | nw-resize | s-resize | se-resize | sw-resize | w-resize | ew-resize | ns-resize | nesw-resize | nwse-resize | col-resize | row-resize | all-scroll | zoom-in | zoom-out | grab | grabbing | hand | -webkit-grab | -webkit-grabbing | -webkit-zoom-in | -webkit-zoom-out | -moz-grab | -moz-grabbing | -moz-zoom-in | -moz-zoom-out ] ]" + }, + "display": { + "comment": "extended with -ms-flexbox", + "syntax": "| <-non-standard-display>" + }, + "position": { + "comment": "extended with -webkit-sticky", + "syntax": "| -webkit-sticky" + }, + "dominant-baseline": { + "comment": "added SVG property", + "references": [ + "https://www.w3.org/TR/SVG/text.html#DominantBaselineProperty" + ], + "syntax": "auto | use-script | no-change | reset-size | ideographic | alphabetic | hanging | mathematical | central | middle | text-after-edge | text-before-edge" + }, + "image-rendering": { + "comment": "extended with <-non-standard-image-rendering>, added SVG keywords optimizeSpeed and optimizeQuality", + "references": [ + "https://developer.mozilla.org/en/docs/Web/CSS/image-rendering", + "https://www.w3.org/TR/SVG/painting.html#ImageRenderingProperty" + ], + "syntax": "| optimizeSpeed | optimizeQuality | <-non-standard-image-rendering>" + }, + "fill": { + "comment": "added SVG property", + "references": [ + "https://www.w3.org/TR/SVG/painting.html#FillProperty" + ], + "syntax": "" + }, + "fill-opacity": { + "comment": "added SVG property", + "references": [ + "https://www.w3.org/TR/SVG/painting.html#FillProperty" + ], + "syntax": "" + }, + "filter": { + "comment": "extend with IE legacy syntaxes", + "syntax": "| <-ms-filter-function-list>" + }, + "font": { + "comment": "align with font-4, fix <'font-family'>#, add non standard fonts", + "references": [ + "https://drafts.csswg.org/css-fonts-4/#font-prop", + "https://github.com/w3c/csswg-drafts/pull/10832", + "https://webkit.org/blog/3709/using-the-system-font-in-web-content/" + ], + "syntax": "[ [ <'font-style'> || || <'font-weight'> || ]? <'font-size'> [ / <'line-height'> ]? <'font-family'># ] | | <-non-standard-font>" + }, + "glyph-orientation-horizontal": { + "comment": "added SVG property", + "references": [ + "https://www.w3.org/TR/SVG/text.html#GlyphOrientationHorizontalProperty" + ], + "syntax": "" + }, + "glyph-orientation-vertical": { + "comment": "added SVG property", + "references": [ + "https://www.w3.org/TR/SVG/text.html#GlyphOrientationVerticalProperty" + ], + "syntax": "" + }, + "kerning": { + "comment": "added SVG property", + "references": [ + "https://www.w3.org/TR/SVG/text.html#KerningProperty" + ], + "syntax": "auto | " + }, + "letter-spacing": { + "comment": "fix syntax -> ", + "references": [ + "https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/letter-spacing" + ], + "syntax": "normal | " + }, + "max-width": { + "comment": "extend by non-standard size keywords https://developer.mozilla.org/en-US/docs/Web/CSS/width", + "syntax": "| stretch | <-non-standard-size>" + }, + "max-height": { + "comment": "extend by non-standard size keywords https://developer.mozilla.org/en-US/docs/Web/CSS/width", + "syntax": "| stretch | <-non-standard-size>" + }, + "width": { + "references": [ + "https://developer.mozilla.org/en-US/docs/Web/CSS/width", + "https://github.com/csstree/stylelint-validator/issues/29" + ], + "syntax": "| stretch | <-non-standard-size>" + }, + "height": { + "syntax": "| stretch | <-non-standard-size>" + }, + "min-width": { + "comment": "extend by non-standard width keywords https://developer.mozilla.org/en-US/docs/Web/CSS/width", + "syntax": "| stretch | <-non-standard-size>" + }, + "min-height": { + "syntax": "| stretch | <-non-standard-size>" + }, + "overflow": { + "comment": "extend by vendor keywords https://developer.mozilla.org/en-US/docs/Web/CSS/overflow", + "syntax": "| <-non-standard-overflow>" + }, + "pause": { + "comment": "https://www.w3.org/TR/css3-speech/#property-index", + "syntax": "<'pause-before'> <'pause-after'>?" + }, + "pause-after": { + "comment": "https://www.w3.org/TR/css3-speech/#property-index", + "syntax": "