mirror of
https://github.com/lovell/sharp.git
synced 2026-02-05 22:26:20 +01:00
Remove confusing CSS equivs introduced in 77bbbb9
This commit is contained in:
@@ -334,8 +334,6 @@ resize the image to be as large as possible
|
|||||||
while ensuring its dimensions are less than or equal to
|
while ensuring its dimensions are less than or equal to
|
||||||
the `width` and `height` specified.
|
the `width` and `height` specified.
|
||||||
|
|
||||||
This is equivalent to using the `contain` value of the CSS `background-size` property.
|
|
||||||
|
|
||||||
Both `width` and `height` must be provided via `resize` otherwise the behaviour will default to `crop`.
|
Both `width` and `height` must be provided via `resize` otherwise the behaviour will default to `crop`.
|
||||||
|
|
||||||
#### min()
|
#### min()
|
||||||
@@ -345,8 +343,6 @@ resize the image to be as small as possible
|
|||||||
while ensuring its dimensions are greater than or equal to
|
while ensuring its dimensions are greater than or equal to
|
||||||
the `width` and `height` specified.
|
the `width` and `height` specified.
|
||||||
|
|
||||||
This is equivalent to using the `cover` value of the CSS `background-size` property.
|
|
||||||
|
|
||||||
Both `width` and `height` must be provided via `resize` otherwise the behaviour will default to `crop`.
|
Both `width` and `height` must be provided via `resize` otherwise the behaviour will default to `crop`.
|
||||||
|
|
||||||
#### background(rgba)
|
#### background(rgba)
|
||||||
|
|||||||
Reference in New Issue
Block a user