Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion exercises/02.1-Background/README.es.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Si es una imagen, puedes especificar si quieres que la imagen se repita horizont

4. Construye y previsualiza el ejercicio nuevamente.

5. Cambia el `background-repeat` a `inherit` para que se repita sobre el eje x y el eje y.
5. Cambia el `background-repeat` a `repeat` para que se repita sobre el eje x y el eje y.

6. Construye y previsualiza el ejercicio nuevamente.

Expand Down
2 changes: 1 addition & 1 deletion exercises/02.1-Background/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ If it is an image, you can specify if you want the image to be repeated horizont

4. Build and Preview the exercise again.

5. Change the background-repeat to 'inherit' to make it repeat over the x axis and y axis.
5. Change the background-repeat to 'repeat' to make it repeat over the x axis and y axis.

6. Build and Preview the exercise again.

Expand Down
4 changes: 2 additions & 2 deletions exercises/02.1-Background/solution.hide.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
body {
background-image: url(https://4geeksacademy.github.io/exercise-assets/img/bg/small-mosaic.jpg);
background-size: contain;
background-repeat: inherit;
}
background-repeat: repeat;
}
4 changes: 2 additions & 2 deletions exercises/02.1-Background/tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ describe("All the styles should be applied", ()=>{
expect(styles["background-size"]).toBe("contain");
});

test("the background-repeat should be 'inherit' without quotes", ()=>{
test("the background-repeat should be 'repeat' without quotes", ()=>{
document.querySelector(
"head"
).innerHTML = `<style>${css.toString()}</style>`;

let styles = window.getComputedStyle(body);
expect(styles["background-repeat"]).toBe("inherit");
expect(styles["background-repeat"]).toBe("repeat");
});

test("You should not change the existing head tag elements", ()=>{
Expand Down