[css-grid-2] Investigate supporting Masonry layout in a grid container
Categories
(Core :: Layout: Grid, enhancement, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox77 | --- | fixed |
People
(Reporter: MatsPalmgren_bugz, Assigned: MatsPalmgren_bugz)
References
(Blocks 6 open bugs)
Details
(Keywords: dev-doc-complete, Whiteboard: [layout:backlog:77], [wptsync upstream])
Attachments
(18 files, 1 obsolete file)
703 bytes,
text/html
|
Details | |
846 bytes,
text/html
|
Details | |
94.95 KB,
video/ogg
|
Details | |
515.74 KB,
video/ogg
|
Details | |
2.48 KB,
text/html
|
Details | |
16.41 KB,
image/png
|
Details | |
1.42 KB,
text/html
|
Details | |
1.40 KB,
text/html
|
Details | |
200.84 KB,
video/webm
|
Details | |
165.54 KB,
video/webm
|
Details | |
1.43 KB,
text/html
|
Details | |
3.12 KB,
text/html
|
Details | |
13.74 KB,
image/png
|
Details | |
1.95 KB,
text/html
|
Details | |
18.84 KB,
image/png
|
Details | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review |
It seems this is quite feasible to implement. I've posted some details at:
https://github.com/w3c/csswg-drafts/issues/4650
Assignee | ||
Comment 1•5 years ago
|
||
Assignee | ||
Comment 2•5 years ago
|
||
Assignee | ||
Comment 3•5 years ago
|
||
Assignee | ||
Comment 4•5 years ago
|
||
Assignee | ||
Comment 5•5 years ago
|
||
Assignee | ||
Comment 6•5 years ago
|
||
Assignee | ||
Comment 7•5 years ago
|
||
Assignee | ||
Comment 8•5 years ago
|
||
Assignee | ||
Comment 9•5 years ago
|
||
Assignee | ||
Comment 10•5 years ago
|
||
Assignee | ||
Comment 11•5 years ago
|
||
Updated•5 years ago
|
Assignee | ||
Comment 12•5 years ago
|
||
Assignee | ||
Comment 13•5 years ago
|
||
Assignee | ||
Comment 14•5 years ago
|
||
Assignee | ||
Comment 15•5 years ago
|
||
Assignee | ||
Comment 16•5 years ago
|
||
Assignee | ||
Comment 17•5 years ago
|
||
This implements support for this CSS Masonry layout proposal:
https://github.com/w3c/csswg-drafts/issues/4650
It's enabled by default only in Nightly for now to gather feedback
and testing.
I've intentionally left out a shorthand (place-tracks?) for now until
we have a draft CSS spec for this.
Assignee | ||
Comment 18•5 years ago
|
||
Depends on D67061
Assignee | ||
Comment 19•5 years ago
|
||
Depends on D67062
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Comment 20•5 years ago
|
||
Comment 23•5 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/84708ff0ef43
https://hg.mozilla.org/mozilla-central/rev/3216ec9f1999
https://hg.mozilla.org/mozilla-central/rev/84d37ea90966
Comment 25•5 years ago
|
||
I've documented this as experimental feature at https://wiki.developer.mozilla.org/en-US/docs/Mozilla/Firefox/Experimental_features#Masonry_layout.
Sebastian
Comment 26•3 years ago
|
||
This bug is fixed.
However the bug number still exists in toolkit/components/featuregates/Features.toml.
Comment 27•3 years ago
•
|
||
That's correct. Is that a problem? (This is a genuine question; I don't know if it is or not, since I'm not familiar with conventions that might exist around management of this Features.toml file.)
This bug is closed as fixed because this feature is implemented, though it's disabled-by-default (except in Nightly). It's in Features.toml to provide people a way to enable it and test it in other releases, if they want.
It's not clear how soon we might be able to enable this more broadly, in part because no other browser vendor has started working on the feature, to my knowledge. (Though it's gotten some discussion in the CSSWG standards body.)
If it's administratively useful for Features.toml to only link to bugs-that-are-still-open, we could definitely file a tracking bug to cover letting this feature masonry ship to release", though - just let me know.
Comment 28•3 years ago
|
||
Oh, I misunderstood that features implemented and enabled on Nightly will be removed from about:preferences#experimental.
(But I personally think that features implemented and enabled on Nightly should be removed from about:preferences#experimental on Nightly. By doing so, the user will be aware that the bug is after its experimental stage and will be encouraged to report it.)
In BMO, I sometimes find the "Enable foo by default on nightly only." bug that blocks "Enable foo by default on release.".
Comment 29•3 years ago
|
||
If you have more general concerns or proposals about how to handle about:preferences#experimental, we should probably discuss them on https://groups.google.com/a/mozilla.org/g/dev-platform rather than as a back-and-forth on this one particular bug.
As long as I'm here, though, I'll reply in an attempt to clarify a few things:
(In reply to Takanori MATSUURA from comment #28)
Oh, I misunderstood that features implemented and enabled on Nightly will be removed from about:preferences#experimental.
I'm not aware of that being a policy; I see a handful of things checked-by-default there, in Nightly (not only this one feature).
(But I personally think that features implemented and enabled on Nightly should be removed from about:preferences#experimental on Nightly. By doing so, the user will be aware that the bug is after its experimental stage and will be encouraged to report it.)
I think this is coming from a misconception. It sounds like you might be thinking that if a feature is enabled-by-default in Nightly, then that's an indication that a bug is "after its experimental stage" -- but that's not actually the case. It depends on how the feature is flagged as being enabled.
If the feature is unconditionally enabled-by-default in mozilla-central (e.g. if it just has value: true
in https://searchfox.org/mozilla-central/source/modules/libpref/init/StaticPrefList.yaml ), then yes, you're probably-correct that the feature is no longer experimental (since it's riding the trains to release), and it'd be a good candidate for removal from the about:preferences
experimental UI (if it happens to be listed there).
But if the feature is only conditionally-enabled via a guard like value: @IS_NIGHTLY_BUILD@
or EARLY_BETA_OR_EARLIER
, then that means it's not-yet-ready-for-release and it's still quite-legitimately "experimental".
In BMO, I sometimes find the "Enable foo by default on nightly only." bug that blocks "Enable foo by default on release.".
Yeah; in this case, the "enable foo on nightly only" bug was bug 1672807. It looks like we don't have an "enable on release" bug; I'll go ahead and file one for tracking purposes.
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Description
•