chore(css-prefix): add text-size-adjust
MODIFY
internal/compiler/transforms/compile/css-handler/prefix/index.ts
internal/compiler/transforms/compile/css-handler/prefix/index.ts
-/* GENERATED:START(hash:0ff4cecd8cf7859ea12e732e47da17e49baa397f,id:main) Everything below is automatically generated. DO NOT MODIFY. Run `./rome run scripts/generated-files/css-prefix` to update. */
+/* GENERATED:START(hash:e2a3922cf263e9e7b623fdaeb13af12d42a0109d,id:main) Everything below is automatically generated. DO NOT MODIFY. Run `./rome run scripts/generated-files/css-prefix` to update. */
import animation from "./prefixes/animation";
import appearance from "./prefixes/appearance";
import backdropFilter from "./prefixes/backdrop-filter";
@@ -23,6 +23,7 @@ import textAlignLast from "./prefixes/text-align-last";
import textEmphasis from "./prefixes/text-emphasis";
import textOrientation from "./prefixes/text-orientation";
import textOverflow from "./prefixes/text-overflow";
+import textSizeAdjust from "./prefixes/text-size-adjust";
import transform from "./prefixes/transform";
import transition from "./prefixes/transition";
import userSelect from "./prefixes/user-select";
@@ -54,6 +55,7 @@ export default [
...textEmphasis,
...textOrientation,
...textOverflow,
+ ...textSizeAdjust,
...transform,
...transition,
...userSelect,

ADD
internal/compiler/transforms/compile/css-handler/prefix/prefixes/text-size-adjust.ts
+import {
+ createPrefixVisitor,
+ prefixCSSProperty,
+} from "@internal/compiler/transforms/compile/css-handler/prefix/utils";
+
+// https://github.com/Fyrd/caniuse/blob/main/features-json/text-size-adjust.json
+export default [
+ createPrefixVisitor({
+ name: "text-size-adjust",
+ enter(path) {
+ return prefixCSSProperty({
+ path,
+ propertyName: "text-size-adjust",
+ browserFeaturesKey: "text-size-adjust",
+ });
+ },
+ }),
+];

ADD
internal/compiler/transforms/compile/test-fixtures/css-handler/prefix/text-size-adjust/input.css
+.style {
+ text-size-adjust: auto;
+}

ADD
internal/compiler/transforms/compile/test-fixtures/css-handler/prefix/text-size-adjust/input.test.md
+# `index.test.ts`
+
+**DO NOT MODIFY**. This file has been autogenerated. Run `rome test internal/compiler/transforms/compile/index.test.ts --update-snapshots` to update.
+
+## `css-handler > prefix > text-size-adjust`
+
+### `Diagnostics`
+
+```
+
+```
+
+### `Input`
+
+```css
+.style {
+ text-size-adjust: auto;
+}
+
+```
+
+### `Output`
+
+```css
+.style {
+ -ms-text-size-adjust: auto;
+ -webkit-text-size-adjust: auto;
+ -moz-text-size-adjust: auto;
+ text-size-adjust: auto;
+}
+
+```

ADD
website/src/docs/css-handler/prefix/text-size-adjust.md
+---
+title: Prefix text-size-adjust
+layout: layouts/prefix.liquid
+showHero: false
+description: MISSING DOCUMENTATION
+eleventyNavigation:
+ key: css-handler/prefix/text-size-adjust
+ parent: css-handler
+ title: text-size-adjust
+---
+
+# text-size-adjust
+
+MISSING DOCUMENTATION
\ No newline at end of file

chore(css-prefix): add text-size-adjust (#1480)