Repository navigation
Fix grid autoplacement for repeat() with multiple tracks - #1571
wozhenbang2004 wants to merge 1 commit into
Conversation
Count each track in a fixed repeat group when generating IE grid placements. Preserve nested functions and cover repeated rows and columns in the existing fixtures.
|
Did you check it in real IE that it works? |
|
No, I haven’t tested this in real IE. I verified the generated |
|
We need IE test for that PR if you really need this feature and it is not a LLM's PR spam |
|
Understood. The patch was prepared with AI assistance. I don't have real IE rendering results to provide, so the required IE validation remains outstanding. |
|
The problem is not AI assistance (I use AI every day). Very likely that the problem is why do you send this PR. Do you really need this feature or want to help my project explicitly, or it is mass-sending PR just to get big merge count? |
Fixes #1369.
Reproduced with Autoprefixer 10.7.0 and PostCSS 8.5.33.
With
grid: 'autoplace'andoverrideBrowserslist: ['IE 10']:The generated placement rules currently cover only two columns:
With this change, they cover all four columns in both rows:
Split each repeated group into tracks before counting them, using the existing
list.space()helper to keep functions such asminmax()intact. The existing two-row, eight-column fixture also expected only eight placements; it now expects sixteen. Added cases for the input above and repeated rows with gaps and column flow.Verified the failure and fix through PostCSS. All
test:*scripts passed sequentially on Node.js 24.22.3: 288 tests, 100% line coverage, lint with one thread, and 63.91 kB against the 70 kB size limit.