User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:2.0b8pre) Gecko/20101202 Firefox/4.0b8pre
Build Identifier: Mozilla/5.0 (Windows NT 6.1; rv:2.0b8pre) Gecko/20101202 Firefox/4.0b8pre
I would like to propose the inclusion of plans to develop a draft standard for firefox CSS Grid Alignment Level 3.
Please also ensure that absolute-positioned children are supported inside of grid "cells".
I've noticed that IE 10 supports this in both "grid alignment" layouts as well as in "flexbox" layouts.
I bring this up because Mozilla does not support absolute-positioned children inside of flexbox boxes as seen in Mozilla bug 649701.
Support was added in IE10 and this is the demo page they use to showcase it:
(obviously the "-ms" prefixes would need to be changed to "-moz" etc.)
It has graduated from the dev.w3.org server as "Grid Layout":
I suspect that css3-grid-layout will supersede/replace css3-layout (see bug 466974). I think implementing css3-grid-layout (this bug) is a better option. The sooner this is implemented the better.
Renaming the bug to reflect the new spec name.
In addition to IE10, there is work happening in WebKit : https://bugs.webkit.org/show_bug.cgi?id=60731
I'm not strongly asking for this particular module but it is clear to me that one layout system needs to be implemented.
*** Bug 466974 has been marked as a duplicate of this bug. ***
Any update here? Is that something we want to have?
FWIW, Hyatt's Webkit implementation never progressed, but Julien Chaffraix and others at Google have recently picked this up and are actively developing it: https://lists.webkit.org/pipermail/webkit-dev/2011-November/018570.html
(In reply to Paul Rouget [:paul] from comment #7)
> Any update here? Is that something we want to have?
It is something I want to have, but nobody's working on it (yet).
Note: The CSS3 Grid spec uses "display: grid". However, in current Gecko releases, the style "display: -moz-grid" triggers _XUL_ grid layout (not CSS3 grid layout, which of course isn't implemented yet, since this bug is still open).
When we fix this bug & add support for CSS3 grid, we'll need to either...
(a) commandeer the existing keyword ("display: -moz-grid") and potentially break existing content that expects the XUL grid model
(b) use a different display value ("display: -moz-css3-grid" or something)
(c) ship it unprefixed ("display: grid")
Not sure about the cost-benefits -- just wanted to get that out there (and clarify this for people who might already be using -moz-grid and expecting CSS3 grid behavior).
W3C has published a new update about the draft of CSS Grid Layout:
Yup, thanks! This bug's URL field actually points to an even more up-to-date (and volatile) version than that (the editor's draft)
--> /me updates URL to point to where the old URL redirects.(s/grid-align/grid-layout/)
Should look like http://www.thegridsystem.org/
(In reply to Daniel Holbert [:dholbert] from comment #10)
> When we fix this bug & add support for CSS3 grid, we'll need to either...
> (a) commandeer the existing keyword ("display: -moz-grid") and potentially
> break existing content that expects the XUL grid model
> (b) use a different display value ("display: -moz-css3-grid" or something)
> (c) ship it unprefixed ("display: grid")
So I think the current approach is (option c) to implement everything unprefixed but behind a pref (`display: grid;` needs Bug 872301 to be fixed then, I think). That means it won't interfere with XUL Grid.
However, I think it's worth assessing the option of disabling XUL Grid for web content to not confuse web devs. Is there actually any use of XUL Grid in Web content? I though XUL for Web content was disabled at some point, anyway?
New working draft: CSS Grid Layout Module Level 1
[Removing "level 3" from bug title, as the spec is now titled "CSS Grid Layout Module Level 1"]
[It's still part of "css3", so that keyword still applies; but each module levels independently now, starting at level 1, except for modules that were covered in css2.1]
Created attachment 8413787 [details]
A basic testcase
Created attachment 8413788 [details]
Not much, but it's something :-)
Just filed bug 1181227 to have some kind of css grid layout inspector over in devtools.
I don't think this has been discussed in the intent to implement thread, but having a way for users to just see the grid, and areas would probably help them a lot debug problems, and therefore help with adoption.
I suspect just drawing the lines will require a new chrome-only API to be created.
Also, what's the state of the implementation of the spec? It seems that many of the blocking bugs have been fixed already, so I'm wondering if one can already experiment with this.