Closed Bug 1136908 Opened 9 years ago Closed 3 years ago

[css-grid] Need test in property_database.js for nested repeat() syntax being rejected, for grid-template-rows & grid-template-columns

Categories

(Core :: CSS Parsing and Computation, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1118820

People

(Reporter: dholbert, Unassigned)

References

(Blocks 1 open bug)

Details

(Keywords: good-first-bug, Whiteboard: [lang=css])

CSS Grid section 5.1.2 says:
  # The repeat() notation cannot be nested;
  # doing so makes the declaration invalid.

AFAICT, we don't have any automated tests for this (though local testing indicates that we do correctly reject it, if I'm testing it right).

We should add such a test.

I think a sample invalid value would be:
  grid-template-columns: repeat(1, repeat(1, 20px));
(whereas "grid-template-columns: repeat(1, 20px);" is valid)
Depends on: 978478
Summary: Need test in property_database.js for nested repeat() syntax being rejected → Need test in property_database.js for nested repeat() syntax being rejected, for grid-template-rows & grid-template-columns
Severity: normal → enhancement
Summary: Need test in property_database.js for nested repeat() syntax being rejected, for grid-template-rows & grid-template-columns → [css-grid] Need test in property_database.js for nested repeat() syntax being rejected, for grid-template-rows & grid-template-columns
Whiteboard: [good first bug][lang=css]
Keywords: good-first-bug
Whiteboard: [good first bug][lang=css] → [lang=css]

Hi,

can i take this bug ?

Thanks,
Kartik Gautam

Hi Kartik - thanks for volunteering!

But as it turns out, this bug has already been addressed, via changes in some other bug (specifically bug 1118820), and we didn't notice until now that this could be closed.

The relevant automated test file already includes the changes that I'd filed this bug about incorporating -- it already includes nested repeat() syntax, like this line:

    "repeat(1, repeat(1, 20px))",

https://searchfox.org/mozilla-central/rev/66547980e8e8ca583473c74f207cae5bac1ed541/layout/style/test/property_database.js#12197

Looks like that was added in https://hg.mozilla.org/mozilla-central/rev/1f0876a7e83d for Bug 1118820.

So, I'm closing this as a duplicate of Bug 1118820.

Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.