Skip to content

Commit

Permalink
Revert "remove explicit img sizing (initial value is auto)"
Browse files Browse the repository at this point in the history
This reverts commit c41ae4c.

Need to keep `img { height: auto; width: auto; }`
to unset the `[height]` and `[width]` attributes of <img> elements.
  • Loading branch information
Chris Harvey committed Apr 17, 2019
1 parent 90d3f91 commit dda6c7d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions css/src/_base.less
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit dda6c7d

Please sign in to comment.