Open Bug 1933408 Opened 8 days ago Updated 5 days ago

[css-sizing-4] layout support for `stretch` and `-webkit-fill-available` keywords (preffed off by default)

Categories

(Core :: Layout, enhancement)

enhancement

Tracking

()

People

(Reporter: dholbert, Assigned: dholbert)

References

(Blocks 6 open bugs)

Details

Attachments

(4 files)

Spinning this bug off from bug 1789477 and bug 1872755.

This bug will contain the main layout patches to support these features (initially off-by-default), while those other bugs can remain open, pending pref-flips to enable the features.

Assignee: nobody → dholbert
Depends on: 1933288

This fixes the LinkedIn bug and also the gracobaby.ca bug, if you enable the
layout.css.webkit-fill-available.enabled about:config pref (added in an earlier
patch in this series).

Blocks: 1932993

This is just a variable rename to help avoid ambiguity in upcoming patches.
This has no functional change.

This patch doesn't change behavior[1]; it's just a refactor.

[1] Minor caveat: the "availBased" variables in this patch are now floored-to-0
whereas previously they were not. But we probably ended up effectively
clamping them (or their results) downstream from this point anyway; and in any
case, it seems like a step towards correctness to floor this size-measurement
to be nonnegative.

Attachment #9439907 - Attachment description: WIP: Bug 1933408: Handle 'stretch' and '-webkit-fill-available' as block-sizes, in nsIFrame::ComputeSize. → WIP: Bug 1933408 part 3: Implement layout support for 'stretch' as a block-axis size (with '-webkit-fill-available' as an alias).
Blocks: 1933554

Note: There are some frame state bits that I'm not worrying about for the purpose of this bug and have spun off to bug 1933554.

Blocks: 1933566
Blocks: 1933604
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: