Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • B bootstrap
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 263
    • Issues 263
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 114
    • Merge requests 114
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Bootstrap
  • bootstrap
  • Issues
  • #29396
Closed
Open
Issue created Sep 09, 2019 by Administrator@rootContributor

Card images in card deck render with incorrect aspect ratio on IE11 when image type is JPG

Created by: reykjavikingur

On Windows 10 using IE 11:

https://getbootstrap.com/docs/4.3/components/card/#card-decks

The HTML snippet for card decks shows <img class="card-img-top"> being used for the card images in a card deck structure. However, the example actually shown uses <svg class="card-img-top">, which behaves differently on IE 11.

With an svg element in that place, as the width scales down, the aspect ratio is preserved but the image contents are cropped appropriately. With an img element, however, on most browsers, the aspect ratio is preserved, but on IE 11, it is not preserved.

The specific problems I would call out are:

  1. Your HTML snippet is inconsistent with your rendered example of Card Decks in your documentation.
  2. Your HTML snippet for card deck does not work appropriately on IE 11 when the image source is JPG.
Assignee
Assign to
Time tracking