Open Bug 1979805 Opened 2 months ago Updated 9 days ago

`contain:intrinsic-size; content-visibility:auto` causes `contain-intrinsic-height` to behave as if it were `0`

Categories

(Core :: Layout, defect)

defect

Tracking

()

People

(Reporter: dholbert, Unassigned)

References

(Blocks 2 open bugs)

Details

(Keywords: webcompat:platform-bug)

User Story

user-impact-score:200

Attachments

(1 file)

STR:

  1. Load attached testcase.

ACTUAL RESULTS:
Alert shows FAIL; got scrollHeight of 5000 but expected 21000

EXPECTED RESULTS:
Alert should show PASS; got scrollHeight of 21000 which is what we expect

NOTES:
scrollHeight is an estimate of the actual content-height, due to content-visibility: auto;, but it's a giant under-estimate here -- our reported 5000px is just the height of the spacer element, and it doesn't include the heights of any of the product-item divs.

If I remove contain: inline-size from the testcase, then we give expected-results. So I think the issue is that contain: inline-size is making us behave as if our used contain-intrinsic-height were 0px.

If I remove contain:inline-size, or if I change it to contain:size, then we get expected-results here.

Attached file testcase 1
Summary: contain:intrinsic-size causes `contain-intrinsic-height` to behave as if it were `0` → `contain:intrinsic-size; content-visibility:auto` causes `contain-intrinsic-height` to behave as if it were `0`

I believe this is the root cause of webcompat site-report bug 1978276.

Blocks: 1958522
User Story: (updated)
User Story: (updated)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: