-
Notifications
You must be signed in to change notification settings - Fork 172
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Parse grid spans, use csstree
for placement parsing
#6629
Conversation
#15102 Bundle Size — 58.07MiB (+0.01%).0d097d3(current) vs d1d46c1 master#15100(baseline) Warning Bundle contains 70 duplicate packages – View duplicate packages Bundle metrics
|
Current #15102 |
Baseline #15100 |
|
---|---|---|
Initial JS | 41.05MiB (+0.02% ) |
41.04MiB |
Initial CSS | 0B |
0B |
Cache Invalidation | 18.7% |
18% |
Chunks | 20 |
20 |
Assets | 22 |
22 |
Modules | 4167 |
4167 |
Duplicate Modules | 213 |
213 |
Duplicate Code | 27.3% |
27.3% |
Packages | 477 |
477 |
Duplicate Packages | 70 |
70 |
Bundle size by type 2 changes
1 regression
1 improvement
Current #15102 |
Baseline #15100 |
|
---|---|---|
JS | 58.07MiB (+0.01% ) |
58.06MiB |
HTML | 7.37KiB (-0.25% ) |
7.39KiB |
Bundle analysis report Branch feat/parse-grid-span Project dashboard
Generated by RelativeCI Documentation Report issue
axis === 'column' ? container.gridTemplateColumns : container.gridTemplateRows | ||
const maybeLineFromName = | ||
targetTracks?.type === 'DIMENSIONS' | ||
? targetTracks.dimensions.findIndex((dim) => dim.lineName === firstNode.name) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
beware that this is not up to spec for repeated line names! span lineName
seeks for the first index starting from the placement, just lineName
I think finds the lastIndex. and if the lineName is used for row-start or column-start, the lookup goes backwards!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
left a comment note so we can tackle this comprehensively in a subsequent PR
**Problem:** 1. Parsing an element placing does not use `csstree` 2. Spans are not parsed nor represented This is a purely-parsing PR, laying the groundwork to have strategies and interactions play nicely with spanning items. **Fix:** 1. Use `csstree` to parse grid placement 2. Parse `span` coming form parsing props Fixes #6628
Problem:
csstree
This is a purely-parsing PR, laying the groundwork to have strategies and interactions play nicely with spanning items.
Fix:
csstree
to parse grid placementspan
coming form parsing propsFixes #6628