mirror of https://github.com/sveltejs/svelte
docs: fix invalid `rows` CSS property in {#each} chess-board example (#18367)
## Problem
The `{#each}` docs page has a runnable "chess board" example whose
`<style>` block uses an invalid CSS property:
```css
.chess-board {
display: grid;
grid-template-columns: repeat(8, 1fr);
rows: repeat(8, 1fr); /* ← not a real CSS property */
...
}
```
There is no `rows` shorthand or longhand in CSS, so this line is
silently dropped by every browser. The example clearly intends an 8×8
grid (note the matching `grid-template-columns` line directly above).
## Fix
`rows` → `grid-template-rows`. One line, in
`documentation/docs/03-template-syntax/03-each.md`. No prose changes.
pull/18035/merge
parent
1b4c43b8e5
commit
94bd27953e
Loading…
Reference in new issue