diff options
| author | Chris Rebert <[email protected]> | 2015-11-05 13:18:42 -0800 |
|---|---|---|
| committer | Chris Rebert <[email protected]> | 2015-11-05 13:18:42 -0800 |
| commit | be1232c5800a7d3f26c4b618a7d84f65f43a1b85 (patch) | |
| tree | 02cab35342a869b9304c5a9ef2ae7807b4419c14 /scss/_images.scss | |
| parent | 4d17a04a2766315299de7e6f5d0894bb9ed25228 (diff) | |
| download | bootstrap-be1232c5800a7d3f26c4b618a7d84f65f43a1b85.tar.xz bootstrap-be1232c5800a7d3f26c4b618a7d84f65f43a1b85.zip | |
Add comments explaining why we don't make `<img>`s responsive by default
Refs #18178
[ci skip]
Diffstat (limited to 'scss/_images.scss')
| -rw-r--r-- | scss/_images.scss | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/scss/_images.scss b/scss/_images.scss index eb7b4ce18..4f1ce6507 100644 --- a/scss/_images.scss +++ b/scss/_images.scss @@ -1,4 +1,10 @@ // Responsive images (ensure images don't scale beyond their parents) +// +// This is purposefully opt-in via an explicit class rather than being the default for all `<img>`s. +// We previously tried the "images are responsive by default" approach in Bootstrap v2, +// and abandoned it in Bootstrap v3 because it breaks lots of third-party widgets (including Google Maps) +// which weren't expecting the images within themselves to be involuntarily resized. +// See also https://github.com/twbs/bootstrap/issues/18178 .img-fluid { @include img-fluid(); } |
