Skip to content

Commit dda6c7d

Browse files
author
Chris Harvey
committed
Revert "remove explicit img sizing (initial value is auto)"
This reverts commit c41ae4c. Need to keep `img { height: auto; width: auto; }` to unset the `[height]` and `[width]` attributes of <img> elements.
1 parent 90d3f91 commit dda6c7d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

css/src/_base.less

+3
Original file line numberDiff line numberDiff line change
@@ -532,10 +532,13 @@ select[multiple] > optgroup > option {
532532
//++++++++++++++++++++++++++++++++//
533533
// # EMBEDDED
534534
//++++++++++++++++++++++++++++++++//
535+
// [1] Correct squishing when one dimension changes (override `[height]`/`[width]` attributes)
535536
// [2] fluid images for responsive purposes
536537
// [3] offset `[alt]` attribute text from surrounding copy
537538
// [4] safer alternative to `display: block;`
538539
img {
540+
height: auto; width: auto; // COMBAK{FALLBACK}
541+
block-size: auto; inline-size: auto; // [1]
539542
max-width: 100%; // COMBAK{FALLBACK}
540543
@supports (max-inline-size: 1%) {
541544
max-width: unset;

0 commit comments

Comments
 (0)