-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: add a roundtrip test for lists with pictures
- Loading branch information
Showing
3 changed files
with
105 additions
and
0 deletions.
There are no files selected for viewing
39 changes: 39 additions & 0 deletions
39
test/roundtrip/roundtrip-fixtures/lists-with-pictures.input.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
|
||
<head> | ||
<title>Lists with Pictures</title> | ||
</head> | ||
|
||
<body> | ||
<main> | ||
<div> | ||
<ul> | ||
<li> | ||
<picture> | ||
<img src="./media_abc.jpg"> | ||
</picture> | ||
</li> | ||
<li> | ||
<picture> | ||
<img src="./media_abc.jpg"> | ||
</picture> | ||
<picture> | ||
<img src="./media_abc.jpg"> | ||
</picture> | ||
</li> | ||
<li> | ||
<picture> | ||
<img src="./media_abc.jpg"> | ||
</picture> | ||
<picture> | ||
<img src="./media_abc.jpg"> | ||
</picture> | ||
<picture> | ||
<img src="./media_abc.jpg"> | ||
</picture> | ||
</li> | ||
</ul> | ||
</div> | ||
</main> | ||
</body> |
65 changes: 65 additions & 0 deletions
65
test/roundtrip/roundtrip-fixtures/lists-with-pictures.output.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
<html> | ||
<head> | ||
<title>Lists with Pictures</title> | ||
<link rel="canonical" href="https://undefined/"> | ||
<meta property="og:title" content="Lists with Pictures"> | ||
<meta property="og:url" content="https://undefined/"> | ||
<meta property="og:image" content="https://undefined/media_abc.jpg?width=1200&format=pjpg&optimize=medium"> | ||
<meta property="og:image:secure_url" content="https://undefined/media_abc.jpg?width=1200&format=pjpg&optimize=medium"> | ||
<meta name="twitter:card" content="summary_large_image"> | ||
<meta name="twitter:title" content="Lists with Pictures"> | ||
<meta name="twitter:image" content="https://undefined/media_abc.jpg?width=1200&format=pjpg&optimize=medium"> | ||
</head> | ||
<body> | ||
<header></header> | ||
<main> | ||
<div> | ||
<ul> | ||
<li> | ||
<picture> | ||
<source type="image/webp" srcset="./media_abc.jpg?width=2000&format=webply&optimize=medium" media="(min-width: 600px)"> | ||
<source type="image/webp" srcset="./media_abc.jpg?width=750&format=webply&optimize=medium"> | ||
<source type="image/jpeg" srcset="./media_abc.jpg?width=2000&format=jpg&optimize=medium" media="(min-width: 600px)"> | ||
<img loading="lazy" alt="" src="./media_abc.jpg?width=750&format=jpg&optimize=medium"> | ||
</picture> | ||
</li> | ||
<li> | ||
<picture> | ||
<source type="image/webp" srcset="./media_abc.jpg?width=2000&format=webply&optimize=medium" media="(min-width: 600px)"> | ||
<source type="image/webp" srcset="./media_abc.jpg?width=750&format=webply&optimize=medium"> | ||
<source type="image/jpeg" srcset="./media_abc.jpg?width=2000&format=jpg&optimize=medium" media="(min-width: 600px)"> | ||
<img loading="lazy" alt="" src="./media_abc.jpg?width=750&format=jpg&optimize=medium"> | ||
</picture> | ||
<picture> | ||
<source type="image/webp" srcset="./media_abc.jpg?width=2000&format=webply&optimize=medium" media="(min-width: 600px)"> | ||
<source type="image/webp" srcset="./media_abc.jpg?width=750&format=webply&optimize=medium"> | ||
<source type="image/jpeg" srcset="./media_abc.jpg?width=2000&format=jpg&optimize=medium" media="(min-width: 600px)"> | ||
<img loading="lazy" alt="" src="./media_abc.jpg?width=750&format=jpg&optimize=medium"> | ||
</picture> | ||
</li> | ||
<li> | ||
<picture> | ||
<source type="image/webp" srcset="./media_abc.jpg?width=2000&format=webply&optimize=medium" media="(min-width: 600px)"> | ||
<source type="image/webp" srcset="./media_abc.jpg?width=750&format=webply&optimize=medium"> | ||
<source type="image/jpeg" srcset="./media_abc.jpg?width=2000&format=jpg&optimize=medium" media="(min-width: 600px)"> | ||
<img loading="lazy" alt="" src="./media_abc.jpg?width=750&format=jpg&optimize=medium"> | ||
</picture> | ||
<picture> | ||
<source type="image/webp" srcset="./media_abc.jpg?width=2000&format=webply&optimize=medium" media="(min-width: 600px)"> | ||
<source type="image/webp" srcset="./media_abc.jpg?width=750&format=webply&optimize=medium"> | ||
<source type="image/jpeg" srcset="./media_abc.jpg?width=2000&format=jpg&optimize=medium" media="(min-width: 600px)"> | ||
<img loading="lazy" alt="" src="./media_abc.jpg?width=750&format=jpg&optimize=medium"> | ||
</picture> | ||
<picture> | ||
<source type="image/webp" srcset="./media_abc.jpg?width=2000&format=webply&optimize=medium" media="(min-width: 600px)"> | ||
<source type="image/webp" srcset="./media_abc.jpg?width=750&format=webply&optimize=medium"> | ||
<source type="image/jpeg" srcset="./media_abc.jpg?width=2000&format=jpg&optimize=medium" media="(min-width: 600px)"> | ||
<img loading="lazy" alt="" src="./media_abc.jpg?width=750&format=jpg&optimize=medium"> | ||
</picture> | ||
</li> | ||
</ul> | ||
</div> | ||
</main> | ||
<footer></footer> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters