From dda6c7d91c4748db5f9744e528dad34865442e23 Mon Sep 17 00:00:00 2001 From: Chris Harvey Date: Wed, 17 Apr 2019 15:32:15 -0400 Subject: [PATCH] Revert "remove explicit `img` sizing (initial value is `auto`)" This reverts commit c41ae4c66e339dc8dca27afa2f1cb4f4d1d68342. Need to keep `img { height: auto; width: auto; }` to unset the `[height]` and `[width]` attributes of elements. --- css/src/_base.less | 3 +++ 1 file changed, 3 insertions(+) diff --git a/css/src/_base.less b/css/src/_base.less index 306d161..1f3b723 100644 --- a/css/src/_base.less +++ b/css/src/_base.less @@ -532,10 +532,13 @@ select[multiple] > optgroup > option { //++++++++++++++++++++++++++++++++// // # EMBEDDED //++++++++++++++++++++++++++++++++// +// [1] Correct squishing when one dimension changes (override `[height]`/`[width]` attributes) // [2] fluid images for responsive purposes // [3] offset `[alt]` attribute text from surrounding copy // [4] safer alternative to `display: block;` img { + height: auto; width: auto; // COMBAK{FALLBACK} + block-size: auto; inline-size: auto; // [1] max-width: 100%; // COMBAK{FALLBACK} @supports (max-inline-size: 1%) { max-width: unset;