@@ -2187,7 +2187,6 @@ const _setupParse = (input, lc) => {
21872187 _S._unitScale = ABSOLUTE_UNIT_SCALE;
21882188 // Back to what the module loads with, so no parse inherits a target of its own.
21892189 _S._hexAlphaAllowed = true;
2190- _S._shadowColorOptional = false;
21912190 _S._doublePositionAllowed = true;
21922191 _S._displayTwoValuesAllowed = true;
21932192 _S._systemUiAllowed = true;
@@ -7930,7 +7929,6 @@ const grammar = (input, visitors, writer, options) => {
79307929 // No selection reads everything, which is what `_setupParse` just set.
79317930 if (_prefixBrowsers !== null) {
79327931 _S._hexAlphaAllowed = _targetSupports("colorHexAlpha");
7933- _S._shadowColorOptional = _shadowColorDefaultsToCurrent();
79347932 _S._doublePositionAllowed = _targetSupports("gradientDoublePosition");
79357933 _S._displayTwoValuesAllowed = _targetSupports("displayTwoValues");
79367934 _S._systemUiAllowed = _targetSupports("systemUiFont");
@@ -14223,37 +14221,6 @@ const _edgeKeywordRead = (property, keyword) =>
1422314221 _valueSupportedFrom(`${property.replace(VENDOR_PREFIX, "")} ${keyword}`)
1422414222 ));
1422514223
14226- // WHY: MDN states that in Safari a shadow written without a color is transparent,
14227- // with no version it stopped, and WebKit is not verifiable here. Pre-Chromium
14228- // Android ran WebKit too, which the Android line left at version 37.
14229- const _WEBKIT_BROWSERS = ["safari", "ios_saf"].map((name) =>
14230- SUPPORT_BROWSERS.indexOf(name)
14231- );
14232- const _ANDROID_BROWSER = SUPPORT_BROWSERS.indexOf("android");
14233- const _FIRST_CHROMIUM_ANDROID = /** @type {number} */ (
14234- _encodeBrowserVersion("37")
14235- );
14236-
14237- /**
14238- * Whether every target takes a shadow's absent color as `currentcolor`: none
14239- * runs WebKit, and every one is answered for. No selection answers for none.
14240- * @returns {boolean} true when the color may be left out
14241- */
14242- const _shadowColorDefaultsToCurrent = () => {
14243- const parsed = _prefixBrowsers;
14244- if (parsed === null || _someBrowserUnanswered) return false;
14245- for (const at of _WEBKIT_BROWSERS) {
14246- if (parsed[at] !== undefined) return false;
14247- }
14248- const android = parsed[_ANDROID_BROWSER];
14249- if (android !== undefined) {
14250- for (const version of android) {
14251- if (version < _FIRST_CHROMIUM_ANDROID) return false;
14252- }
14253- }
14254- return true;
14255- };
14256-
1425714224/**
1425814225 * Drop each component of a family shorthand that holds its own slot's initial —
1425914226 * a slot nothing writes takes that value anyway, so writing it says nothing.
@@ -19142,8 +19109,6 @@ const _S = {
1914219109 // What the target can read, from `output.environment` — resolved once per run
1914319110 // rather than per color. Unset means it can: only browserslist reports otherwise.
1914419111 _hexAlphaAllowed: true,
19145- // Whether a shadow's color may be left for the engine to take as `currentcolor`.
19146- _shadowColorOptional: false,
1914719112 // Whether the color being printed is read as numbers rather than shown — a
1914819113 // gradient stop, a `color-mix()` argument, a relative color's origin — where an
1914919114 // 8-bit hex moves the color the engine computes, not only how it is spelled.
0 commit comments