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

1.1 KiB

id, title, challengeType, dashedName
id title challengeType dashedName
60a3e3396c7b40068ad69974 Step 11 0 step-11

--description--

Every painting needs a frame.

Wrap the .canvas element in another div. Give that div the frame class.

--hints--

You should add a new div element.

assert(document.querySelectorAll('div').length === 2)

Your .canvas element should be nested in the new div element.

assert(document.querySelector('.canvas').parentElement.tagName === 'DIV');

Your new div should have a class with the value frame.

assert(document.querySelector('div').className.split(' ').includes('frame'));

Your new div should be within your body element.

assert(document.querySelector('div').parentElement.tagName === 'BODY');

--seed--

--seed-contents--

.canvas {
  width: 500px;
  height: 600px;
  background-color: #4d0f00;
}
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8">
    <title>Rothko Painting</title>
    <link href="./styles.css" rel="stylesheet">
  </head>
  <body>
--fcc-editable-region--

    <div class="canvas">
    </div>

--fcc-editable-region--
  </body>