Skip to content

Commit

Permalink
docs: add note on min max height and width (vercel#526)
Browse files Browse the repository at this point in the history
## Description

Adds a note to clarify that `"min-content"` and `"max-content"` can not
be used on the `minWidth`, `minHeight`, `maxWidth` and `maxHeight` style
properties.

Closes vercel#521
  • Loading branch information
RubenSmn authored and sahithyandev committed Apr 26, 2024
1 parent 48b2e22 commit b75542e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,10 +151,10 @@ Satori uses the same Flexbox [layout engine](https://yogalayout.com) as React Na
<tr><td><code>height</code></td><td>Supported</td><td></td></tr>

<tr><td rowspan="5">Min & max size</td></tr>
<tr><td><code>minWidth</code></td><td>Supported</td><td></td></tr>
<tr><td><code>minHeight</code></td><td>Supported</td><td></td></tr>
<tr><td><code>maxWidth</code></td><td>Supported</td><td></td></tr>
<tr><td><code>maxHeight</code></td><td>Supported</td><td></td></tr>
<tr><td><code>minWidth</code></td><td>Supported except for <code>min-content</code> and <code>max-content</code></td><td></td></tr>
<tr><td><code>minHeight</code></td><td>Supported except for <code>min-content</code> and <code>max-content</code></td><td></td></tr>
<tr><td><code>maxWidth</code></td><td>Supported except for <code>min-content</code> and <code>max-content</code></td><td></td></tr>
<tr><td><code>maxHeight</code></td><td>Supported except for <code>min-content</code> and <code>max-content</code></td><td></td></tr>

<tr><td rowspan="5"><code>border</code></td></tr>
<tr><td>Width (<code>borderWidth</code>, <code>borderTopWidth</code>, ...)</td><td>Supported</td><td></td></tr>
Expand Down

0 comments on commit b75542e

Please sign in to comment.