Files
freeCodeCamp/curriculum/challenges/english/01-responsive-web-design/css-variables-skyline/step-006.md
Nicholas Carrigan (he/him) b36cdbafd1 chore: rename "part" to "step" (#43934)
* chore: rename part to step

* chore: update metas

* chore: more renaming

* chore: update tooling

* chore: update frontmatter

* chore(tools): title testing
2021-10-21 18:07:52 +01:00

1.1 KiB

id, title, challengeType, dashedName
id title challengeType dashedName
5d822fd413a79914d39e98ce Step 6 0 step-6

--description--

Also add a box-sizing of border-box to everything. This will make it so the border you added doesn't add any size to your elements.

--hints--

You should use the box-sizing property.

assert(new __helpers.CSSHelp(document).isPropertyUsed('box-sizing'));

You should make use of the existing * selector.

// Two selectors create two CSSStyleRule objects
assert.equal(new __helpers.CSSHelp(document).getStyleDeclarations('*').length, 1);

All elements should have a box-sizing of border-box.

const astStyles = new __helpers.CSSHelp(document).getStyle('*');
assert.equal(astStyles.boxSizing, 'border-box');

--seed--

--seed-contents--

<!DOCTYPE html>
<html>    
  <head>
    <title>freeCodeCamp Skyline Project</title>
    <link href="styles.css" rel="stylesheet" type="text/css" />
  </head>

  <body>
  </body>
</html>
--fcc-editable-region--
* {
  border: 1px solid black;
}

--fcc-editable-region--