mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-03-01 08:05:25 -05:00
fix(curriculum): update hints and test for magazine layout lab (#58244)
Co-authored-by: Ilenia <26656284+ilenia-magoni@users.noreply.github.com>
This commit is contained in:
@@ -107,10 +107,13 @@ const magazineCoverStyle = getComputedStyle(document.querySelector('.magazine-co
|
||||
assert.match(magazineCoverStyle.gridTemplateAreas, /("|')small-article1 small-article2 cover-image\1$/);
|
||||
```
|
||||
|
||||
Your `.magazine-cover` class should have a `grid-template-columns` property set to `1fr 1fr 1fr`.
|
||||
Your `.magazine-cover` selector should use the `grid-template-columns` property to divide the space into three equal parts. Remember you can use either the `repeat` function or manually define each fractional unit.
|
||||
|
||||
```js
|
||||
assert.equal(new __helpers.CSSHelp(document).getStyle('.magazine-cover')?.gridTemplateColumns, '1fr 1fr 1fr');
|
||||
assert.oneOf(
|
||||
new __helpers.CSSHelp(document).getStyle('.magazine-cover')?.gridTemplateColumns,
|
||||
['1fr 1fr 1fr', 'repeat(3, 1fr)']
|
||||
);
|
||||
```
|
||||
|
||||
Your `.magazine-cover` class should have a `grid-template-rows` property set to `auto 1fr 1fr`.
|
||||
|
||||
Reference in New Issue
Block a user