Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This PR is a followup to feedback in #7465 (comment). Notably there is an issue with image cropping in IE11 galleries. Simply, it doesn't really work because IE11 doesn't support object-fit. This means in some situations — for example a 2 column gallery with landscape, portrait, portrait images — the landscape image is skewed. This PR takes a somewhat radical consequence and simply disables cropping altoghether on IE11. But it works fine in Edge. This PR does a few other improvements too — it changes the IE11 hack to be a more solid one, using @supports(position:sticky) to augment the CSS for capable browsers, rather than relying on a contrast hack that fails if a user actually uses high contrast mode. In addition, it moves this hack from the editor style to the stylesheet file, so benefits affect both editor and theme.
- Loading branch information