Commit 7e20c3b
Remove
`none` is not a valid value for `min-width` or `min-height` according to
[the CSS spec](https://www.w3.org/TR/css-sizing-3/#min-size-properties):
> | | |
> | --- | --- |
> | [Value](https://www.w3.org/TR/css-values/#value-defs): | auto \|
[<length-percentage>](https://www.w3.org/TR/css-values-4/#typedef-length-percentage)
\| min-content \| max-content \|
fit-content([<length-percentage>](https://www.w3.org/TR/css-values-4/#typedef-length-percentage))
|
I believe we should be able to remove the `min-w-none` and `min-h-none`
class candidates since they wouldn't have done anything anyway and thus
should not affect backwards compatibility. Indeed, these did not exist
in v3 either:
https://github.com/tailwindlabs/tailwindcss/blob/4f9f603e12b51cc53b8a09c7739b8f88c8eb87eb/stubs/config.full.js#L674-L684
https://github.com/tailwindlabs/tailwindcss/blob/4f9f603e12b51cc53b8a09c7739b8f88c8eb87eb/stubs/config.full.js#L685-L691
---
Credit to `@i` on Discord for spotting this[^1], fixes #15846
[^1]:
https://discord.com/channels/486935104384532500/486935104384532502/1332680061144403968
---------
Co-authored-by: Adam Wathan <[email protected]>min-w/h-none (#15845)1 parent a8c54ac commit 7e20c3b
File tree
3 files changed
+4
-5
lines changed- packages/tailwindcss/src
- __snapshots__
3 files changed
+4
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
11 | 13 | | |
12 | 14 | | |
| 15 | + | |
13 | 16 | | |
14 | 17 | | |
15 | 18 | | |
| |||
Lines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4719 | 4719 | | |
4720 | 4720 | | |
4721 | 4721 | | |
4722 | | - | |
4723 | 4722 | | |
4724 | 4723 | | |
4725 | 4724 | | |
| |||
4767 | 4766 | | |
4768 | 4767 | | |
4769 | 4768 | | |
4770 | | - | |
4771 | 4769 | | |
4772 | 4770 | | |
4773 | 4771 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
896 | 896 | | |
897 | 897 | | |
898 | 898 | | |
899 | | - | |
900 | 899 | | |
901 | | - | |
902 | 900 | | |
903 | 901 | | |
904 | 902 | | |
| |||
0 commit comments