Closed
Bug 1242053
Opened 9 years ago
Closed 9 years ago
[css-grid] subgrid repeat(auto-fill,...) doesn't parse / serialize correctly
Categories
(Core :: CSS Parsing and Computation, defect)
Core
CSS Parsing and Computation
Tracking
()
RESOLVED
FIXED
mozilla47
People
(Reporter: MatsPalmgren_bugz, Assigned: MatsPalmgren_bugz)
References
Details
Attachments
(2 files)
9.49 KB,
patch
|
dholbert
:
review+
|
Details | Diff | Splinter Review |
1.11 KB,
patch
|
dholbert
:
review+
|
Details | Diff | Splinter Review |
I seems "subgrid repeat(auto-fill,...)" never worked correctly, but since
we disabled subgrid support by default (bug 1221677) I didn't notice.
Assignee | ||
Comment 1•9 years ago
|
||
I think I just misunderstood the code when I created that extra list there.
I missed that because serialization then suppressed empty line names lists
for subgrid, which we shouldn't do since they are significant for subgrid.
(unlike non-subgrid track lists where the track size is the significant part)
Attachment #8711339 -
Flags: review?(dholbert)
Assignee | ||
Comment 2•9 years ago
|
||
Attachment #8711340 -
Flags: review?(dholbert)
Assignee | ||
Comment 3•9 years ago
|
||
Comment on attachment 8711339 [details] [diff] [review]
fix
- // Array(n + 1).join(s) is a hack for the non-standard s.repeat(n)
+ // Array(n).join(s) is a hack for the non-standard s.repeat(n)
The old comment was actually correct, and the new one isn't.
I'll tweak the new comment to say "s.repeat(n - 1)" instead before landing
(unless you prefer the old comment).
The new expected value is correct though: Array(10000) gives us 9999 [a] plus
the leading [foo] sums up to 10000 lines which is the max line number
(in an 1-based grid).
Comment 5•9 years ago
|
||
Comment on attachment 8711339 [details] [diff] [review]
fix
Review of attachment 8711339 [details] [diff] [review]:
-----------------------------------------------------------------
r=me
Attachment #8711339 -
Flags: review?(dholbert) → review+
Comment 6•9 years ago
|
||
Comment on attachment 8711340 [details] [diff] [review]
enable subgrid for tests
Review of attachment 8711340 [details] [diff] [review]:
-----------------------------------------------------------------
r=me
Attachment #8711340 -
Flags: review?(dholbert) → review+
Assignee | ||
Updated•9 years ago
|
Flags: in-testsuite+
Comment 8•9 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/b691502e86f8
https://hg.mozilla.org/mozilla-central/rev/283da1a207ee
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox47:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla47
Comment 9•9 years ago
|
||
bugherder |
You need to log in
before you can comment on or make changes to this bug.
Description
•