Files
Shaun Hamilton 25aa04e2e7 chore(curriculum): standardise titles for rwd-beta (#45398)
* chore(curriculum): accessibility-quiz

* chore(curriculum): cafe-menu

* chore(curriculum): ferris-wheel

* chore(curriculum): fix ferris-wheel tests

* chore(curriculum): colored-markers

* chore(curriculum): photo-gallery

* chore(curriculum): magazine

* chore(curriculum): penguin

* chore(curriculum): city-skyline

* chore(curriculum): registration-form

* chore(curriculum): picasso-painting

* chore(curriculum): balance-sheet

* chore(curriculum): piano

* chore(curriculum): rothko-painting

* fix: title min 15 chars
2022-03-14 16:54:43 +01:00

61 lines
1.0 KiB
Markdown

---
id: 5d822fd413a79914d39e98ce
title: Step 6
challengeType: 0
dashedName: 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.
```js
assert(new __helpers.CSSHelp(document).isPropertyUsed('box-sizing'));
```
You should make use of the existing `*` selector.
```js
// 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`.
```js
const astStyles = new __helpers.CSSHelp(document).getStyle('*');
assert.equal(astStyles.boxSizing, 'border-box');
```
# --seed--
## --seed-contents--
```html
<!DOCTYPE html>
<html>
<head>
<title>City Skyline</title>
<link href="styles.css" rel="stylesheet" type="text/css" />
</head>
<body>
</body>
</html>
```
```css
--fcc-editable-region--
* {
border: 1px solid black;
}
--fcc-editable-region--
```