Skip to content

Commit 7019ef3

Browse files
authored
Merge pull request #426 from adevade/patch-1
Add height: auto; to img tag in preflight
2 parents 490e378 + dd9e1dc commit 7019ef3

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

__tests__/fixtures/tailwind-output.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -589,6 +589,7 @@ textarea {
589589

590590
img {
591591
max-width: 100%;
592+
height: auto;
592593
}
593594

594595
button,

css/preflight.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,7 @@ button,
577577

578578
textarea { resize: vertical; }
579579

580-
img { max-width: 100%; }
580+
img { max-width: 100%; height: auto; }
581581

582582
button, input, optgroup, select, textarea { font-family: inherit; }
583583

0 commit comments

Comments
 (0)