--- id: 6140d4bc9db3c81c51a09ab7 title: Step 15 challengeType: 0 dashedName: step-15 --- # --description-- Continuando lo schema, seleziona i seguenti elementi `.cabin` e applica loro le regole specificate: - Il secondo `.cabin` dovrebbe avere la proprietà `right` impostata a `17%` e la proprietà `top` impostata a `93.5%`. - Il terzo `.cabin` dovrebbe avere la proprietà `right` impostata a `67%` e la proprietà `top` impostata a `93.5%`. - Il quarto `.cabin` dovrebbe avere la proprietà `left` impostata a `-8.5%` e la proprietà `top` impostata a `50%`. - Il quinto `.cabin` dovrebbe avere la proprietà `left` impostata a `17%` e la proprietà `top` impostata a `7%`. - Il sesto `.cabin` dovrebbe avere la proprietà `right` impostata a `17%` e la proprietà `top` impostata a `7%`. # --hints-- Dovresti avere un selettore `.cabin:nth-of-type(2)`. ```js assert(new __helpers.CSSHelp(document).getStyle('.cabin:nth-of-type(2)')); ``` Il tuo selettore `.cabin:nth-of-type(2)` dovrebbe avere una proprietà `right` impostata su `17%`. ```js assert(new __helpers.CSSHelp(document).getStyle('.cabin:nth-of-type(2)')?.right === '17%'); ``` Il tuo `.cabin:nth-of-type(2)` dovrebbe avere `top` impostata al `93.5%`. ```js assert(new __helpers.CSSHelp(document).getStyle('.cabin:nth-of-type(2)')?.top === '93.5%'); ``` Dovresti avere un selettore `.cabin:nth-of-type(3)`. ```js assert(new __helpers.CSSHelp(document).getStyle('.cabin:nth-of-type(3)')); ``` Il tuo selettore `.cabin:nth-of-type(3)` dovrebbe avere una proprietà `right` impostata su `67%`. ```js assert(new __helpers.CSSHelp(document).getStyle('.cabin:nth-of-type(3)')?.right === '67%'); ``` Il tuo `.cabin:nth-of-type(3)` dovrebbe avere una `top` impostata al `93.5%`. ```js assert(new __helpers.CSSHelp(document).getStyle('.cabin:nth-of-type(3)')?.top === '93.5%'); ``` Dovresti avere un selettore `.cabin:nth-of-type(4)`. ```js assert(new __helpers.CSSHelp(document).getStyle('.cabin:nth-of-type(4)')); ``` Il tuo selettore `.cabin:nth-of-type(4)` dovrebbe avere una proprietà `left` impostata su `-8.5%`. ```js assert(new __helpers.CSSHelp(document).getStyle('.cabin:nth-of-type(4)')?.left === '-8.5%'); ``` Il tuo selettore `.cabin:nth-of-type(4)` dovrebbe avere `top` impostata al `50%`. ```js assert(new __helpers.CSSHelp(document).getStyle('.cabin:nth-of-type(4)')?.top === '50%'); ``` Dovresti avere un selettore `.cabin:nth-of-type(5)`. ```js assert(new __helpers.CSSHelp(document).getStyle('.cabin:nth-of-type(5)')); ``` Il tuo selettore `.cabin:nth-of-type(5)` dovrebbe avere una proprietà `left` impostata su `17%`. ```js assert(new __helpers.CSSHelp(document).getStyle('.cabin:nth-of-type(5)')?.left === '17%'); ``` Il tuo selettore `.cabin:nth-of-type(5)` dovrebbe avere una prorpietà `top` impostata al `7%`. ```js assert(new __helpers.CSSHelp(document).getStyle('.cabin:nth-of-type(5)')?.top === '7%'); ``` Dovresti avere un selettore `.cabin:nth-of-type(6)`. ```js const def = (s) => new __helpers.CSSHelp(document).getStyle(s) assert(def('.cabin:nth-of-type(6)') || def('.cabin:last-of-type')); ``` Il tuo selettore `.cabin:nth-of-type(6)` dovrebbe avere una proprietà `right` impostata su `17%`. ```js const right = (s) => new __helpers.CSSHelp(document).getStyle(s)?.right assert.equal(right('.cabin:nth-of-type(6)') || right('.cabin:last-of-type'),'17%'); ``` Il tuo `.cabin:nth-of-type(6)` dovrebbe avere una proprietà `top` impostata al `7%`. ```js const top = (s) => new __helpers.CSSHelp(document).getStyle(s)?.top assert.equal(top('.cabin:nth-of-type(6)') || top('.cabin:last-of-type'),'7%'); ``` # --seed-- ## --seed-contents-- ```html