Skip to content

Commit

Permalink
Do atrocious things to sneak past minifiers for font-variant-numeric …
Browse files Browse the repository at this point in the history
…utilities
  • Loading branch information
adamwathan committed Sep 5, 2020
1 parent b26746a commit f3660ce
Show file tree
Hide file tree
Showing 5 changed files with 105 additions and 105 deletions.
50 changes: 25 additions & 25 deletions __tests__/fixtures/tailwind-output-flagged.css
Original file line number Diff line number Diff line change
Expand Up @@ -36402,11 +36402,11 @@ video {
}

.ordinal, .slashed-zero, .lining-nums, .oldstyle-nums, .proportional-nums, .tabular-nums, .diagonal-fractions, .stacked-fractions {
--font-variant-numeric-ordinal: /*!*/;
--font-variant-numeric-slashed-zero: /*!*/;
--font-variant-numeric-figure: /*!*/;
--font-variant-numeric-spacing: /*!*/;
--font-variant-numeric-fraction: /*!*/;
--font-variant-numeric-ordinal: var(--tailwind-empty,/*!*/ /*!*/);
--font-variant-numeric-slashed-zero: var(--tailwind-empty,/*!*/ /*!*/);
--font-variant-numeric-figure: var(--tailwind-empty,/*!*/ /*!*/);
--font-variant-numeric-spacing: var(--tailwind-empty,/*!*/ /*!*/);
--font-variant-numeric-fraction: var(--tailwind-empty,/*!*/ /*!*/);
font-variant-numeric: var(--font-variant-numeric-ordinal) var(--font-variant-numeric-slashed-zero) var(--font-variant-numeric-figure) var(--font-variant-numeric-spacing) var(--font-variant-numeric-fraction);
}

Expand Down Expand Up @@ -77900,11 +77900,11 @@ video {
}

.sm\:ordinal, .sm\:slashed-zero, .sm\:lining-nums, .sm\:oldstyle-nums, .sm\:proportional-nums, .sm\:tabular-nums, .sm\:diagonal-fractions, .sm\:stacked-fractions {
--font-variant-numeric-ordinal: /*!*/;
--font-variant-numeric-slashed-zero: /*!*/;
--font-variant-numeric-figure: /*!*/;
--font-variant-numeric-spacing: /*!*/;
--font-variant-numeric-fraction: /*!*/;
--font-variant-numeric-ordinal: var(--tailwind-empty,/*!*/ /*!*/);
--font-variant-numeric-slashed-zero: var(--tailwind-empty,/*!*/ /*!*/);
--font-variant-numeric-figure: var(--tailwind-empty,/*!*/ /*!*/);
--font-variant-numeric-spacing: var(--tailwind-empty,/*!*/ /*!*/);
--font-variant-numeric-fraction: var(--tailwind-empty,/*!*/ /*!*/);
font-variant-numeric: var(--font-variant-numeric-ordinal) var(--font-variant-numeric-slashed-zero) var(--font-variant-numeric-figure) var(--font-variant-numeric-spacing) var(--font-variant-numeric-fraction);
}

Expand Down Expand Up @@ -119368,11 +119368,11 @@ video {
}

.md\:ordinal, .md\:slashed-zero, .md\:lining-nums, .md\:oldstyle-nums, .md\:proportional-nums, .md\:tabular-nums, .md\:diagonal-fractions, .md\:stacked-fractions {
--font-variant-numeric-ordinal: /*!*/;
--font-variant-numeric-slashed-zero: /*!*/;
--font-variant-numeric-figure: /*!*/;
--font-variant-numeric-spacing: /*!*/;
--font-variant-numeric-fraction: /*!*/;
--font-variant-numeric-ordinal: var(--tailwind-empty,/*!*/ /*!*/);
--font-variant-numeric-slashed-zero: var(--tailwind-empty,/*!*/ /*!*/);
--font-variant-numeric-figure: var(--tailwind-empty,/*!*/ /*!*/);
--font-variant-numeric-spacing: var(--tailwind-empty,/*!*/ /*!*/);
--font-variant-numeric-fraction: var(--tailwind-empty,/*!*/ /*!*/);
font-variant-numeric: var(--font-variant-numeric-ordinal) var(--font-variant-numeric-slashed-zero) var(--font-variant-numeric-figure) var(--font-variant-numeric-spacing) var(--font-variant-numeric-fraction);
}

Expand Down Expand Up @@ -160836,11 +160836,11 @@ video {
}

.lg\:ordinal, .lg\:slashed-zero, .lg\:lining-nums, .lg\:oldstyle-nums, .lg\:proportional-nums, .lg\:tabular-nums, .lg\:diagonal-fractions, .lg\:stacked-fractions {
--font-variant-numeric-ordinal: /*!*/;
--font-variant-numeric-slashed-zero: /*!*/;
--font-variant-numeric-figure: /*!*/;
--font-variant-numeric-spacing: /*!*/;
--font-variant-numeric-fraction: /*!*/;
--font-variant-numeric-ordinal: var(--tailwind-empty,/*!*/ /*!*/);
--font-variant-numeric-slashed-zero: var(--tailwind-empty,/*!*/ /*!*/);
--font-variant-numeric-figure: var(--tailwind-empty,/*!*/ /*!*/);
--font-variant-numeric-spacing: var(--tailwind-empty,/*!*/ /*!*/);
--font-variant-numeric-fraction: var(--tailwind-empty,/*!*/ /*!*/);
font-variant-numeric: var(--font-variant-numeric-ordinal) var(--font-variant-numeric-slashed-zero) var(--font-variant-numeric-figure) var(--font-variant-numeric-spacing) var(--font-variant-numeric-fraction);
}

Expand Down Expand Up @@ -202304,11 +202304,11 @@ video {
}

.xl\:ordinal, .xl\:slashed-zero, .xl\:lining-nums, .xl\:oldstyle-nums, .xl\:proportional-nums, .xl\:tabular-nums, .xl\:diagonal-fractions, .xl\:stacked-fractions {
--font-variant-numeric-ordinal: /*!*/;
--font-variant-numeric-slashed-zero: /*!*/;
--font-variant-numeric-figure: /*!*/;
--font-variant-numeric-spacing: /*!*/;
--font-variant-numeric-fraction: /*!*/;
--font-variant-numeric-ordinal: var(--tailwind-empty,/*!*/ /*!*/);
--font-variant-numeric-slashed-zero: var(--tailwind-empty,/*!*/ /*!*/);
--font-variant-numeric-figure: var(--tailwind-empty,/*!*/ /*!*/);
--font-variant-numeric-spacing: var(--tailwind-empty,/*!*/ /*!*/);
--font-variant-numeric-fraction: var(--tailwind-empty,/*!*/ /*!*/);
font-variant-numeric: var(--font-variant-numeric-ordinal) var(--font-variant-numeric-slashed-zero) var(--font-variant-numeric-figure) var(--font-variant-numeric-spacing) var(--font-variant-numeric-fraction);
}

Expand Down
50 changes: 25 additions & 25 deletions __tests__/fixtures/tailwind-output-important.css
Original file line number Diff line number Diff line change
Expand Up @@ -15756,11 +15756,11 @@ video {
}

.ordinal, .slashed-zero, .lining-nums, .oldstyle-nums, .proportional-nums, .tabular-nums, .diagonal-fractions, .stacked-fractions {
--font-variant-numeric-ordinal: /*!*/ !important;
--font-variant-numeric-slashed-zero: /*!*/ !important;
--font-variant-numeric-figure: /*!*/ !important;
--font-variant-numeric-spacing: /*!*/ !important;
--font-variant-numeric-fraction: /*!*/ !important;
--font-variant-numeric-ordinal: var(--tailwind-empty,/*!*/ /*!*/) !important;
--font-variant-numeric-slashed-zero: var(--tailwind-empty,/*!*/ /*!*/) !important;
--font-variant-numeric-figure: var(--tailwind-empty,/*!*/ /*!*/) !important;
--font-variant-numeric-spacing: var(--tailwind-empty,/*!*/ /*!*/) !important;
--font-variant-numeric-fraction: var(--tailwind-empty,/*!*/ /*!*/) !important;
font-variant-numeric: var(--font-variant-numeric-ordinal) var(--font-variant-numeric-slashed-zero) var(--font-variant-numeric-figure) var(--font-variant-numeric-spacing) var(--font-variant-numeric-fraction) !important;
}

Expand Down Expand Up @@ -33979,11 +33979,11 @@ video {
}

.sm\:ordinal, .sm\:slashed-zero, .sm\:lining-nums, .sm\:oldstyle-nums, .sm\:proportional-nums, .sm\:tabular-nums, .sm\:diagonal-fractions, .sm\:stacked-fractions {
--font-variant-numeric-ordinal: /*!*/ !important;
--font-variant-numeric-slashed-zero: /*!*/ !important;
--font-variant-numeric-figure: /*!*/ !important;
--font-variant-numeric-spacing: /*!*/ !important;
--font-variant-numeric-fraction: /*!*/ !important;
--font-variant-numeric-ordinal: var(--tailwind-empty,/*!*/ /*!*/) !important;
--font-variant-numeric-slashed-zero: var(--tailwind-empty,/*!*/ /*!*/) !important;
--font-variant-numeric-figure: var(--tailwind-empty,/*!*/ /*!*/) !important;
--font-variant-numeric-spacing: var(--tailwind-empty,/*!*/ /*!*/) !important;
--font-variant-numeric-fraction: var(--tailwind-empty,/*!*/ /*!*/) !important;
font-variant-numeric: var(--font-variant-numeric-ordinal) var(--font-variant-numeric-slashed-zero) var(--font-variant-numeric-figure) var(--font-variant-numeric-spacing) var(--font-variant-numeric-fraction) !important;
}

Expand Down Expand Up @@ -52172,11 +52172,11 @@ video {
}

.md\:ordinal, .md\:slashed-zero, .md\:lining-nums, .md\:oldstyle-nums, .md\:proportional-nums, .md\:tabular-nums, .md\:diagonal-fractions, .md\:stacked-fractions {
--font-variant-numeric-ordinal: /*!*/ !important;
--font-variant-numeric-slashed-zero: /*!*/ !important;
--font-variant-numeric-figure: /*!*/ !important;
--font-variant-numeric-spacing: /*!*/ !important;
--font-variant-numeric-fraction: /*!*/ !important;
--font-variant-numeric-ordinal: var(--tailwind-empty,/*!*/ /*!*/) !important;
--font-variant-numeric-slashed-zero: var(--tailwind-empty,/*!*/ /*!*/) !important;
--font-variant-numeric-figure: var(--tailwind-empty,/*!*/ /*!*/) !important;
--font-variant-numeric-spacing: var(--tailwind-empty,/*!*/ /*!*/) !important;
--font-variant-numeric-fraction: var(--tailwind-empty,/*!*/ /*!*/) !important;
font-variant-numeric: var(--font-variant-numeric-ordinal) var(--font-variant-numeric-slashed-zero) var(--font-variant-numeric-figure) var(--font-variant-numeric-spacing) var(--font-variant-numeric-fraction) !important;
}

Expand Down Expand Up @@ -70365,11 +70365,11 @@ video {
}

.lg\:ordinal, .lg\:slashed-zero, .lg\:lining-nums, .lg\:oldstyle-nums, .lg\:proportional-nums, .lg\:tabular-nums, .lg\:diagonal-fractions, .lg\:stacked-fractions {
--font-variant-numeric-ordinal: /*!*/ !important;
--font-variant-numeric-slashed-zero: /*!*/ !important;
--font-variant-numeric-figure: /*!*/ !important;
--font-variant-numeric-spacing: /*!*/ !important;
--font-variant-numeric-fraction: /*!*/ !important;
--font-variant-numeric-ordinal: var(--tailwind-empty,/*!*/ /*!*/) !important;
--font-variant-numeric-slashed-zero: var(--tailwind-empty,/*!*/ /*!*/) !important;
--font-variant-numeric-figure: var(--tailwind-empty,/*!*/ /*!*/) !important;
--font-variant-numeric-spacing: var(--tailwind-empty,/*!*/ /*!*/) !important;
--font-variant-numeric-fraction: var(--tailwind-empty,/*!*/ /*!*/) !important;
font-variant-numeric: var(--font-variant-numeric-ordinal) var(--font-variant-numeric-slashed-zero) var(--font-variant-numeric-figure) var(--font-variant-numeric-spacing) var(--font-variant-numeric-fraction) !important;
}

Expand Down Expand Up @@ -88558,11 +88558,11 @@ video {
}

.xl\:ordinal, .xl\:slashed-zero, .xl\:lining-nums, .xl\:oldstyle-nums, .xl\:proportional-nums, .xl\:tabular-nums, .xl\:diagonal-fractions, .xl\:stacked-fractions {
--font-variant-numeric-ordinal: /*!*/ !important;
--font-variant-numeric-slashed-zero: /*!*/ !important;
--font-variant-numeric-figure: /*!*/ !important;
--font-variant-numeric-spacing: /*!*/ !important;
--font-variant-numeric-fraction: /*!*/ !important;
--font-variant-numeric-ordinal: var(--tailwind-empty,/*!*/ /*!*/) !important;
--font-variant-numeric-slashed-zero: var(--tailwind-empty,/*!*/ /*!*/) !important;
--font-variant-numeric-figure: var(--tailwind-empty,/*!*/ /*!*/) !important;
--font-variant-numeric-spacing: var(--tailwind-empty,/*!*/ /*!*/) !important;
--font-variant-numeric-fraction: var(--tailwind-empty,/*!*/ /*!*/) !important;
font-variant-numeric: var(--font-variant-numeric-ordinal) var(--font-variant-numeric-slashed-zero) var(--font-variant-numeric-figure) var(--font-variant-numeric-spacing) var(--font-variant-numeric-fraction) !important;
}

Expand Down
50 changes: 25 additions & 25 deletions __tests__/fixtures/tailwind-output-no-color-opacity.css
Original file line number Diff line number Diff line change
Expand Up @@ -13308,11 +13308,11 @@ video {
}

.ordinal, .slashed-zero, .lining-nums, .oldstyle-nums, .proportional-nums, .tabular-nums, .diagonal-fractions, .stacked-fractions {
--font-variant-numeric-ordinal: /*!*/;
--font-variant-numeric-slashed-zero: /*!*/;
--font-variant-numeric-figure: /*!*/;
--font-variant-numeric-spacing: /*!*/;
--font-variant-numeric-fraction: /*!*/;
--font-variant-numeric-ordinal: var(--tailwind-empty,/*!*/ /*!*/);
--font-variant-numeric-slashed-zero: var(--tailwind-empty,/*!*/ /*!*/);
--font-variant-numeric-figure: var(--tailwind-empty,/*!*/ /*!*/);
--font-variant-numeric-spacing: var(--tailwind-empty,/*!*/ /*!*/);
--font-variant-numeric-fraction: var(--tailwind-empty,/*!*/ /*!*/);
font-variant-numeric: var(--font-variant-numeric-ordinal) var(--font-variant-numeric-slashed-zero) var(--font-variant-numeric-figure) var(--font-variant-numeric-spacing) var(--font-variant-numeric-fraction);
}

Expand Down Expand Up @@ -29083,11 +29083,11 @@ video {
}

.sm\:ordinal, .sm\:slashed-zero, .sm\:lining-nums, .sm\:oldstyle-nums, .sm\:proportional-nums, .sm\:tabular-nums, .sm\:diagonal-fractions, .sm\:stacked-fractions {
--font-variant-numeric-ordinal: /*!*/;
--font-variant-numeric-slashed-zero: /*!*/;
--font-variant-numeric-figure: /*!*/;
--font-variant-numeric-spacing: /*!*/;
--font-variant-numeric-fraction: /*!*/;
--font-variant-numeric-ordinal: var(--tailwind-empty,/*!*/ /*!*/);
--font-variant-numeric-slashed-zero: var(--tailwind-empty,/*!*/ /*!*/);
--font-variant-numeric-figure: var(--tailwind-empty,/*!*/ /*!*/);
--font-variant-numeric-spacing: var(--tailwind-empty,/*!*/ /*!*/);
--font-variant-numeric-fraction: var(--tailwind-empty,/*!*/ /*!*/);
font-variant-numeric: var(--font-variant-numeric-ordinal) var(--font-variant-numeric-slashed-zero) var(--font-variant-numeric-figure) var(--font-variant-numeric-spacing) var(--font-variant-numeric-fraction);
}

Expand Down Expand Up @@ -44828,11 +44828,11 @@ video {
}

.md\:ordinal, .md\:slashed-zero, .md\:lining-nums, .md\:oldstyle-nums, .md\:proportional-nums, .md\:tabular-nums, .md\:diagonal-fractions, .md\:stacked-fractions {
--font-variant-numeric-ordinal: /*!*/;
--font-variant-numeric-slashed-zero: /*!*/;
--font-variant-numeric-figure: /*!*/;
--font-variant-numeric-spacing: /*!*/;
--font-variant-numeric-fraction: /*!*/;
--font-variant-numeric-ordinal: var(--tailwind-empty,/*!*/ /*!*/);
--font-variant-numeric-slashed-zero: var(--tailwind-empty,/*!*/ /*!*/);
--font-variant-numeric-figure: var(--tailwind-empty,/*!*/ /*!*/);
--font-variant-numeric-spacing: var(--tailwind-empty,/*!*/ /*!*/);
--font-variant-numeric-fraction: var(--tailwind-empty,/*!*/ /*!*/);
font-variant-numeric: var(--font-variant-numeric-ordinal) var(--font-variant-numeric-slashed-zero) var(--font-variant-numeric-figure) var(--font-variant-numeric-spacing) var(--font-variant-numeric-fraction);
}

Expand Down Expand Up @@ -60573,11 +60573,11 @@ video {
}

.lg\:ordinal, .lg\:slashed-zero, .lg\:lining-nums, .lg\:oldstyle-nums, .lg\:proportional-nums, .lg\:tabular-nums, .lg\:diagonal-fractions, .lg\:stacked-fractions {
--font-variant-numeric-ordinal: /*!*/;
--font-variant-numeric-slashed-zero: /*!*/;
--font-variant-numeric-figure: /*!*/;
--font-variant-numeric-spacing: /*!*/;
--font-variant-numeric-fraction: /*!*/;
--font-variant-numeric-ordinal: var(--tailwind-empty,/*!*/ /*!*/);
--font-variant-numeric-slashed-zero: var(--tailwind-empty,/*!*/ /*!*/);
--font-variant-numeric-figure: var(--tailwind-empty,/*!*/ /*!*/);
--font-variant-numeric-spacing: var(--tailwind-empty,/*!*/ /*!*/);
--font-variant-numeric-fraction: var(--tailwind-empty,/*!*/ /*!*/);
font-variant-numeric: var(--font-variant-numeric-ordinal) var(--font-variant-numeric-slashed-zero) var(--font-variant-numeric-figure) var(--font-variant-numeric-spacing) var(--font-variant-numeric-fraction);
}

Expand Down Expand Up @@ -76318,11 +76318,11 @@ video {
}

.xl\:ordinal, .xl\:slashed-zero, .xl\:lining-nums, .xl\:oldstyle-nums, .xl\:proportional-nums, .xl\:tabular-nums, .xl\:diagonal-fractions, .xl\:stacked-fractions {
--font-variant-numeric-ordinal: /*!*/;
--font-variant-numeric-slashed-zero: /*!*/;
--font-variant-numeric-figure: /*!*/;
--font-variant-numeric-spacing: /*!*/;
--font-variant-numeric-fraction: /*!*/;
--font-variant-numeric-ordinal: var(--tailwind-empty,/*!*/ /*!*/);
--font-variant-numeric-slashed-zero: var(--tailwind-empty,/*!*/ /*!*/);
--font-variant-numeric-figure: var(--tailwind-empty,/*!*/ /*!*/);
--font-variant-numeric-spacing: var(--tailwind-empty,/*!*/ /*!*/);
--font-variant-numeric-fraction: var(--tailwind-empty,/*!*/ /*!*/);
font-variant-numeric: var(--font-variant-numeric-ordinal) var(--font-variant-numeric-slashed-zero) var(--font-variant-numeric-figure) var(--font-variant-numeric-spacing) var(--font-variant-numeric-fraction);
}

Expand Down
Loading

0 comments on commit f3660ce

Please sign in to comment.