Closed Bug 1895541 Opened 6 months ago Closed 6 months ago

css content-visibility: auto resets object-fit on contentvisibilityautostatechange

Categories

(Core :: Layout, defect, P3)

Firefox 125
defect

Tracking

()

RESOLVED DUPLICATE of bug 1886745
Tracking Status
firefox-esr115 --- unaffected
firefox125 --- wontfix
firefox126 --- wontfix
firefox127 --- fixed
firefox128 --- fixed

People

(Reporter: nick.zotenko, Unassigned)

References

(Regression)

Details

(Keywords: nightly-community, regression)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:125.0) Gecko/20100101 Firefox/125.0

Steps to reproduce:

if image tags have both css properties content-visibility: auto; and object-fit: contain;

object-fit would be reset to a default value (object-fit: fill) when contentvisibilityautostatechange triggered

here is an example of reproduction on codepen

Actual results:

object-fit reset to default value

Expected results:

object-fit won't reset and would save original value

Status: UNCONFIRMED → NEW
Component: Untriaged → Layout
Ever confirmed: true
Product: Firefox → Core
Regressed by: 1804761
See Also: → 1886745

Set release status flags based on info from the regressing bug 1804761

:jihye, since you are the author of the regressor, bug 1804761, could you take a look?

For more information, please visit BugBot documentation.

Set release status flags based on info from the regressing bug 1804761

Emilio or asurkov, I wonder if one of you can help out here, since you both reviewed the patch ? Thanks!

Flags: needinfo?(surkov.alexander)
Flags: needinfo?(emilio)

So I can get chrome on a similarly weird state if I add contain: size explicitly. But off-hand this seems like bug 1886745.

However, I think this shouldn't work per spec, unless we also make contain-intrinsic-size not work for object-fit purposes?

Severity: -- → S3
Flags: needinfo?(emilio)
Priority: -- → P3

Ah, I lie, bug 1886745 is exactly this and covers contain-intrinsic-size too.

Status: NEW → RESOLVED
Closed: 6 months ago
Duplicate of bug: 1886745
Resolution: --- → DUPLICATE

Sorry for the late reply. I'm not actively involved with Gecko lately. It's good to see the bug was marked as a duplicate of a fixed bug, so apparently, the problem is resolved. I'm canceling the pending NI requests.

Flags: needinfo?(surkov.alexander)
Flags: needinfo?(jihye)
You need to log in before you can comment on or make changes to this bug.