diff --git a/layout/xul/base/src/grid/examples/borderedcolumns.xul b/layout/xul/base/src/grid/examples/borderedcolumns.xul
new file mode 100644
index 000000000000..71f71cd2a1f9
--- /dev/null
+++ b/layout/xul/base/src/grid/examples/borderedcolumns.xul
@@ -0,0 +1,40 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/layout/xul/base/src/grid/examples/borderedrowscolumns.xul b/layout/xul/base/src/grid/examples/borderedrowscolumns.xul
new file mode 100644
index 000000000000..b2eb1843596b
--- /dev/null
+++ b/layout/xul/base/src/grid/examples/borderedrowscolumns.xul
@@ -0,0 +1,52 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/layout/xul/base/src/grid/examples/borderedrowscolumns2.xul b/layout/xul/base/src/grid/examples/borderedrowscolumns2.xul
new file mode 100644
index 000000000000..2ba316ad0698
--- /dev/null
+++ b/layout/xul/base/src/grid/examples/borderedrowscolumns2.xul
@@ -0,0 +1,41 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/layout/xul/base/src/grid/examples/borderedrowscolumns3.xul b/layout/xul/base/src/grid/examples/borderedrowscolumns3.xul
new file mode 100644
index 000000000000..1c9387ba7936
--- /dev/null
+++ b/layout/xul/base/src/grid/examples/borderedrowscolumns3.xul
@@ -0,0 +1,54 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/layout/xul/base/src/grid/examples/bordermargincolumns1.xul b/layout/xul/base/src/grid/examples/bordermargincolumns1.xul
new file mode 100644
index 000000000000..1326f4eabd20
--- /dev/null
+++ b/layout/xul/base/src/grid/examples/bordermargincolumns1.xul
@@ -0,0 +1,41 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/layout/xul/base/src/grid/examples/collapsetest.xul b/layout/xul/base/src/grid/examples/collapsetest.xul
new file mode 100644
index 000000000000..a419ec8d207c
--- /dev/null
+++ b/layout/xul/base/src/grid/examples/collapsetest.xul
@@ -0,0 +1,64 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/layout/xul/base/src/grid/examples/divcolumngrid.xul b/layout/xul/base/src/grid/examples/divcolumngrid.xul
new file mode 100644
index 000000000000..71aa63f061b2
--- /dev/null
+++ b/layout/xul/base/src/grid/examples/divcolumngrid.xul
@@ -0,0 +1,30 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+ hello
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/layout/xul/base/src/grid/examples/divrowgrid.xul b/layout/xul/base/src/grid/examples/divrowgrid.xul
new file mode 100644
index 000000000000..fb03fa38a99e
--- /dev/null
+++ b/layout/xul/base/src/grid/examples/divrowgrid.xul
@@ -0,0 +1,33 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ this is some html in the row this should wrap if it is big enough.
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/layout/xul/base/src/grid/examples/dynamicgrid.xul b/layout/xul/base/src/grid/examples/dynamicgrid.xul
new file mode 100644
index 000000000000..b3c8b4f54cf5
--- /dev/null
+++ b/layout/xul/base/src/grid/examples/dynamicgrid.xul
@@ -0,0 +1,367 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/layout/xul/base/src/grid/examples/flexgroupgrid.xul b/layout/xul/base/src/grid/examples/flexgroupgrid.xul
new file mode 100644
index 000000000000..8740eb558b44
--- /dev/null
+++ b/layout/xul/base/src/grid/examples/flexgroupgrid.xul
@@ -0,0 +1,44 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/layout/xul/base/src/grid/examples/javascriptappend.xul b/layout/xul/base/src/grid/examples/javascriptappend.xul
new file mode 100644
index 000000000000..98135c178c0e
--- /dev/null
+++ b/layout/xul/base/src/grid/examples/javascriptappend.xul
@@ -0,0 +1,39 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/layout/xul/base/src/grid/examples/jumpygrid.xul b/layout/xul/base/src/grid/examples/jumpygrid.xul
new file mode 100644
index 000000000000..3b68f0e95e08
--- /dev/null
+++ b/layout/xul/base/src/grid/examples/jumpygrid.xul
@@ -0,0 +1,79 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/layout/xul/base/src/grid/examples/nestedrows.xul b/layout/xul/base/src/grid/examples/nestedrows.xul
new file mode 100644
index 000000000000..078356faac21
--- /dev/null
+++ b/layout/xul/base/src/grid/examples/nestedrows.xul
@@ -0,0 +1,45 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/layout/xul/base/src/grid/examples/rowspan.xul b/layout/xul/base/src/grid/examples/rowspan.xul
new file mode 100644
index 000000000000..517e62883707
--- /dev/null
+++ b/layout/xul/base/src/grid/examples/rowspan.xul
@@ -0,0 +1,38 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/layout/xul/base/src/grid/examples/scrollingcolumns.xul b/layout/xul/base/src/grid/examples/scrollingcolumns.xul
new file mode 100644
index 000000000000..a57a33d8537d
--- /dev/null
+++ b/layout/xul/base/src/grid/examples/scrollingcolumns.xul
@@ -0,0 +1,77 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/layout/xul/base/src/grid/examples/scrollingrows.xul b/layout/xul/base/src/grid/examples/scrollingrows.xul
new file mode 100644
index 000000000000..af207dc40b51
--- /dev/null
+++ b/layout/xul/base/src/grid/examples/scrollingrows.xul
@@ -0,0 +1,77 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/layout/xul/base/src/grid/examples/splitter.xul b/layout/xul/base/src/grid/examples/splitter.xul
new file mode 100644
index 000000000000..cec71ee708ed
--- /dev/null
+++ b/layout/xul/base/src/grid/examples/splitter.xul
@@ -0,0 +1,37 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+