From 2de019641e509078af0f6857d1de95ba845d207a Mon Sep 17 00:00:00 2001 From: Pavol Hejny Date: Mon, 13 Sep 2021 11:19:00 +0200 Subject: [PATCH] Testing with corrupted images --- .prettierrc | 2 +- samples/assets/common.css | 5 ++ samples/assets/images/corrupted-image.jpg | 1 + samples/assets/images/corrupted-image.png | 1 + samples/assets/images/corrupted-image.svg | 1 + samples/assets/images/corrupted-image.webp | 1 + samples/forAllImagesInElement copy.html | 10 +++ samples/forAllImagesInElement.html | 80 +++++++++++++--------- 8 files changed, 68 insertions(+), 33 deletions(-) create mode 100644 samples/assets/images/corrupted-image.jpg create mode 100644 samples/assets/images/corrupted-image.png create mode 100644 samples/assets/images/corrupted-image.svg create mode 100644 samples/assets/images/corrupted-image.webp create mode 100644 samples/forAllImagesInElement copy.html diff --git a/.prettierrc b/.prettierrc index 707cb41..428d8df 100644 --- a/.prettierrc +++ b/.prettierrc @@ -5,4 +5,4 @@ "trailingComma": "all", "arrowParens": "always", "printWidth": 80 -} \ No newline at end of file +} diff --git a/samples/assets/common.css b/samples/assets/common.css index a806ab5..1dbeca3 100644 --- a/samples/assets/common.css +++ b/samples/assets/common.css @@ -5,3 +5,8 @@ img { max-height: 30vh; border: 2px solid black; } + +.images > div { + margin: 10px; + border: 2px solid black; +} diff --git a/samples/assets/images/corrupted-image.jpg b/samples/assets/images/corrupted-image.jpg new file mode 100644 index 0000000..37a289e --- /dev/null +++ b/samples/assets/images/corrupted-image.jpg @@ -0,0 +1 @@ +This image should be broken \ No newline at end of file diff --git a/samples/assets/images/corrupted-image.png b/samples/assets/images/corrupted-image.png new file mode 100644 index 0000000..37a289e --- /dev/null +++ b/samples/assets/images/corrupted-image.png @@ -0,0 +1 @@ +This image should be broken \ No newline at end of file diff --git a/samples/assets/images/corrupted-image.svg b/samples/assets/images/corrupted-image.svg new file mode 100644 index 0000000..37a289e --- /dev/null +++ b/samples/assets/images/corrupted-image.svg @@ -0,0 +1 @@ +This image should be broken \ No newline at end of file diff --git a/samples/assets/images/corrupted-image.webp b/samples/assets/images/corrupted-image.webp new file mode 100644 index 0000000..37a289e --- /dev/null +++ b/samples/assets/images/corrupted-image.webp @@ -0,0 +1 @@ +This image should be broken \ No newline at end of file diff --git a/samples/forAllImagesInElement copy.html b/samples/forAllImagesInElement copy.html new file mode 100644 index 0000000..1bf95fa --- /dev/null +++ b/samples/forAllImagesInElement copy.html @@ -0,0 +1,10 @@ + + + + + Titulek stránky + + + Tělo stránky + + diff --git a/samples/forAllImagesInElement.html b/samples/forAllImagesInElement.html index 64cf3f2..837c39e 100644 --- a/samples/forAllImagesInElement.html +++ b/samples/forAllImagesInElement.html @@ -6,47 +6,63 @@ -

+ + - + +
- - - - - - - - - -