-
-
Notifications
You must be signed in to change notification settings - Fork 78.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Proposal: the way to apply fix for SVG images w/ .img-fluid in IE 9-10 automatically #23476
Comments
we have dropped support for IE 9, so I don't think it is necessary to add |
yep, as I see IE9 support has been dropped, but beta 4.0 still declares the support for IE10 https://getbootstrap.com/docs/4.0/getting-started/browsers-devices/ so since the IE10 inherits the bug on SVG proportions w/ .img-fluid from v9 while percent of SVG images is widely growing nowadays, maybe there's a reason to apply the workaround for v10 till the support for IE will be dropped completely |
IE9 was dropped in December (see #21416) but IE10 was not; however, people were told to "keep the feedback coming in". |
No plans to add this automatically at this point. Have heard very few issues about this one since originally opening and don't want to cause more confusion by making it the default now. Thanks though! |
/* REF: twbs/bootstrap#23476 */ .img-fluid[src$=".svg"] { width: 100% \9; }
as declared at https://getbootstrap.com/docs/4.0/content/images/ IE 9-10 sizes SVG images w/ .img-fluid disproportionately, but no fix is applied automatically 'cause the offered workaround fixes responsivity for SVG images on one hand but breaks it for other image formats on another
the proposal is to add
since the fix «width: 100% \9» is targeted to IE & ignored as malformed by other browsers, & the selector «src$=.svg» forces the rule to be applied only if image url in src attribute has «svg» extension, this should achieve the goal
The text was updated successfully, but these errors were encountered: