New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 922056 link

Starred by 1 user

Issue metadata

Status: Duplicate
Merged: issue 919297
Owner:
Closed: Jan 15
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

Regression in common responsive image pattern

Project Member Reported by malteubl@google.com, Jan 15

Issue description

Chrome Version: 73.0.3671.3
OS: Mac OS X

What steps will reproduce the problem?
(1) Go to https://2018.jsconf.eu/news/photos/


What is the expected result?

The images are sized correctly

What happens instead?

Images are not sized correctly.

I haven't been able to reduce this unfortunately. I also observed that adding `width: 100%` to the img element fixes this. That points to the right/bottom rules being ignored.

The basic structure is CSS like this:
.responsive-image-wrapper {
  display: block;
  overflow: hidden;
  position: relative;
}

.responsive-image-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

And html like <span class="responsive-image-wrapper"><img></span>



 
Screen Shot 2019-01-15 at 7.22.54 AM.png
1.5 MB View Download
Cc: ikilpatrick@chromium.org
Cc: eaeltsin@chromium.org
Labels: LayoutNG
Owner: atotic@chromium.org
Status: Available (was: Untriaged)
Aleks, is this fixed with your OOF aspect ratio fixes?
I think so. The fail looks very similar. Can't be  sure without an example.
See link above https://2018.jsconf.eu/news/photos/

All the large photos in the main content exhibit the behavior.
Mergedinto: 919297
Status: Duplicate (was: Available)
Same bug. Marking as duplicate, got a fix.

Sign in to add a comment