-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add img-aspect-ratio-relative-inside-fixed test
- Loading branch information
Showing
3 changed files
with
54 additions
and
3 deletions.
There are no files selected for viewing
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
25 changes: 25 additions & 0 deletions
25
test/html/render/img-aspect-ratio-relative-inside-fixed.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,25 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>Test image aspect ratio when both dimensions are relative and container is fixed</title> | ||
<style> | ||
div { | ||
border: 1px solid black; | ||
width: 64px; | ||
height: 256px; | ||
} | ||
img { | ||
width:100%; | ||
height:100%; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<p>The image must fill the complete div even if that means distorting it. | ||
The image specifies the size as 100% of the container in both dimensions and | ||
the container has a fixed size.</p> | ||
<div> | ||
<img src="pic.png"> | ||
</div> | ||
</body> | ||
</html> |
25 changes: 25 additions & 0 deletions
25
test/html/render/img-aspect-ratio-relative-inside-fixed.ref.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,25 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>Test image aspect ratio when both dimensions are relative and container is fixed</title> | ||
<style> | ||
div { | ||
border: 1px solid black; | ||
width: 64px; | ||
height: 256px; | ||
} | ||
img { | ||
width:64px; | ||
height:256px; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<p>The image must fill the complete div even if that means distorting it. | ||
The image specifies the size as 100% of the container in both dimensions and | ||
the container has a fixed size.</p> | ||
<div> | ||
<img src="pic.png"> | ||
</div> | ||
</body> | ||
</html> |