[css-grid-3][masonry] Introduce flow-start/flow-end as value aliases for flex-start/flex-end, which also work in masonry
Categories
(Core :: Layout: Flexbox, defect)
Tracking
()
People
(Reporter: mozilla-apprentice, Unassigned)
References
(Blocks 3 open bugs)
Details
A resolution was made for csswg-drafts/#14052.
[css-grid-3][masonry] For `align-items`/`justify-items`, should `fill-reverse` affect the definition of `start` and `end`?
- RESOLVED: Introduce flow-start/flow-end as value aliases for flex-start/flex-end; they respond to flex-flow as well as grid-auto-flow and any grid-lanes controllers; and canonical values are flow-* unless compat requires flex-*
Comment 1•2 months ago
|
||
This is a prerequisite for Grid Lanes, but it's something that can be done independently / first.
Comment 2•2 months ago
|
||
I'd suggest approaching this in 3 parts:
-
Part 1: Add the new keywords as aliases. Wherever we have "flex-start" and "flex-end" listed in this file...
https://searchfox.org/firefox-main/rev/73f46f2636b5677d7282764dd7afeaea7036f0ce/servo/components/style/values/specified/align.rs , also include "flow-start" and "flow-end" (as supported aliases, mapping to the same internalAlignFlags::FLEX_START/FLEX_ENDinternal values (excluding ToCSS which gets handled in part 2) -
Part 2: Tentatively make "flow-*" the new canonical serialization for these alias-pairs. Change
ToCSSto write "flow-start" and "flow-end", here:
https://searchfox.org/firefox-main/rev/73f46f2636b5677d7282764dd7afeaea7036f0ce/servo/components/style/values/specified/align.rs#105,127,132-133,632-640,643-644
It probably makes sense to guard this change with an about:config pref, so that we can rapidly react with a pref-flip if we find that websites depend on us serializing to the old keywords. -
Part 3: Change the internal naming for the
AlignFlagsvalues that are associated with these keywords to reflect thatflowis the canonical name. Basically just search-and-replaceAlignFlags::FLEX_withAlignFlags::FLOW_throughout the codebase, I think. (This part is probably best to hold off on until it's clear that part 2 is safe to ship preffed-on.)
Comment 3•2 months ago
|
||
(And then of course the implicit "part 4" would be, as we implement Grid Lanes, to make that code react to these keyword-values appropriately.)
Description
•