CSS 2.1 failure: height-width-table-001.htm
authorrobert@webkit.org <robert@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 15 Oct 2011 11:32:40 +0000 (11:32 +0000)
committerrobert@webkit.org <robert@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 15 Oct 2011 11:32:40 +0000 (11:32 +0000)
https://bugs.webkit.org/show_bug.cgi?id=69709

Reviewed by Simon Fraser.

Source/WebCore:

CSS 2.1 expects CSS table elements to treat fixed height/width as
excluding table borders, but HTML table elements to treat fixed height/width as
including them.

See http://lists.w3.org/Archives/Public/www-style/2011Jan/0178.html
    http://lists.w3.org/Archives/Public/public-css-testsuite/2011Oct/0005.html

It looks like some clarification is pending in the specs, but the new behaviour
lets WebKit pass the following tests in the suite CSS and also match FF:
  height-width-table-001.htm
  height-width-inline-table-001.htm
  abspos-containing-block-initial-004d.htm

* rendering/RenderTable.cpp:
(WebCore::RenderTable::computeLogicalWidth):
(WebCore::RenderTable::layout):

LayoutTests:

* css2.1/20110323/abspos-containing-block-initial-001-ref.htm: Added.
* css2.1/20110323/abspos-containing-block-initial-001.htm: Added.
* css2.1/20110323/abspos-containing-block-initial-004-ref-expected.png: Added
* css2.1/20110323/abspos-containing-block-initial-004-ref-expected.txt: Added.
* css2.1/20110323/abspos-containing-block-initial-004-ref.htm: Added.
* css2.1/20110323/abspos-containing-block-initial-004a-expected.png: Added
* css2.1/20110323/abspos-containing-block-initial-004a-expected.txt: Added.
* css2.1/20110323/abspos-containing-block-initial-004a.htm: Added.
* css2.1/20110323/abspos-containing-block-initial-004b-expected.png: Added
* css2.1/20110323/abspos-containing-block-initial-004b-expected.txt: Added.
* css2.1/20110323/abspos-containing-block-initial-004b.htm: Added.
* css2.1/20110323/abspos-containing-block-initial-004c-expected.png: Added
* css2.1/20110323/abspos-containing-block-initial-004c-expected.txt: Added.
* css2.1/20110323/abspos-containing-block-initial-004c.htm: Added.
* css2.1/20110323/abspos-containing-block-initial-004d-expected.png: Added
* css2.1/20110323/abspos-containing-block-initial-004d-expected.txt: Added.
* css2.1/20110323/abspos-containing-block-initial-004d.htm: Added.
* css2.1/20110323/abspos-containing-block-initial-004d.htm.1: Added.
* css2.1/20110323/abspos-containing-block-initial-004e-expected.png: Added
* css2.1/20110323/abspos-containing-block-initial-004e-expected.txt: Added.
* css2.1/20110323/abspos-containing-block-initial-004e.htm: Added.
* css2.1/20110323/abspos-containing-block-initial-004f-expected.png: Added
* css2.1/20110323/abspos-containing-block-initial-004f-expected.txt: Added.
* css2.1/20110323/abspos-containing-block-initial-004f.htm: Added.
* css2.1/20110323/abspos-containing-block-initial-005-ref-expected.png: Added
* css2.1/20110323/abspos-containing-block-initial-005-ref-expected.txt: Added.
* css2.1/20110323/abspos-containing-block-initial-005-ref.htm: Added.
* css2.1/20110323/abspos-containing-block-initial-005a-expected.png: Added
* css2.1/20110323/abspos-containing-block-initial-005a-expected.txt: Added.
* css2.1/20110323/abspos-containing-block-initial-005a.htm: Added.
* css2.1/20110323/abspos-containing-block-initial-005b-expected.png: Added
* css2.1/20110323/abspos-containing-block-initial-005b-expected.txt: Added.
* css2.1/20110323/abspos-containing-block-initial-005b.htm: Added.
* css2.1/20110323/abspos-containing-block-initial-005c-expected.png: Added
* css2.1/20110323/abspos-containing-block-initial-005c-expected.txt: Added.
* css2.1/20110323/abspos-containing-block-initial-005c.htm: Added.
* css2.1/20110323/abspos-containing-block-initial-005d-expected.png: Added
* css2.1/20110323/abspos-containing-block-initial-005d-expected.txt: Added.
* css2.1/20110323/abspos-containing-block-initial-005d.htm: Added.
* css2.1/20110323/abspos-containing-block-initial-007-ref.htm: Added.
* css2.1/20110323/abspos-containing-block-initial-007.htm: Added.
* css2.1/20110323/abspos-containing-block-initial-009-ref-expected.png: Added
* css2.1/20110323/abspos-containing-block-initial-009-ref-expected.txt: Added.
* css2.1/20110323/abspos-containing-block-initial-009-ref.htm: Added.
* css2.1/20110323/abspos-containing-block-initial-009a-expected.png: Added
* css2.1/20110323/abspos-containing-block-initial-009a-expected.txt: Added.
* css2.1/20110323/abspos-containing-block-initial-009a.htm: Added.
* css2.1/20110323/abspos-containing-block-initial-009b-expected.png: Added
* css2.1/20110323/abspos-containing-block-initial-009b-expected.txt: Added.
* css2.1/20110323/abspos-containing-block-initial-009b.htm: Added.
* css2.1/20110323/abspos-containing-block-initial-009e-expected.png: Added
* css2.1/20110323/abspos-containing-block-initial-009e-expected.txt: Added.
* css2.1/20110323/abspos-containing-block-initial-009e.htm: Added.
* css2.1/20110323/abspos-containing-block-initial-009f-expected.png: Added.
* css2.1/20110323/abspos-containing-block-initial-009f-expected.txt: Added.
* css2.1/20110323/abspos-containing-block-initial-009f.htm: Added.
* css2.1/20110323/height-width-inline-table-001.htm: Added.
* css2.1/20110323/height-width-table-001.htm: Added.
* platform/chromium-linux/css2.1/20110323/abspos-containing-block-initial-001-expected.png: Added.
* platform/chromium-linux/css2.1/20110323/abspos-containing-block-initial-001-expected.txt: Added.
* platform/chromium-linux/css2.1/20110323/abspos-containing-block-initial-001-ref-expected.png: Added.
* platform/chromium-linux/css2.1/20110323/abspos-containing-block-initial-001-ref-expected.txt: Added.
* platform/chromium-linux/css2.1/20110323/abspos-containing-block-initial-007-expected.png: Added
* platform/chromium-linux/css2.1/20110323/abspos-containing-block-initial-007-expected.txt: Added.
* platform/chromium-linux/css2.1/20110323/abspos-containing-block-initial-007-ref-expected.png: Added
* platform/chromium-linux/css2.1/20110323/abspos-containing-block-initial-007-ref-expected.txt: Added.
* platform/chromium-linux/css2.1/20110323/height-width-inline-table-001-expected.png: Added.
* platform/chromium-linux/css2.1/20110323/height-width-inline-table-001-expected.txt: Added.
* platform/chromium-linux/css2.1/20110323/height-width-table-001-expected.png: Added.
* platform/chromium-linux/css2.1/20110323/height-width-table-001-expected.txt: Added.
* platform/gtk/fast/backgrounds/table-root-expected.txt: Removed.
* platform/mac/fast/backgrounds/positioned-root-expected.png: Removed.
* platform/mac/fast/backgrounds/table-root-expected.png: Removed.
* platform/mac/fast/backgrounds/table-root-expected.txt: Removed.
* platform/qt/fast/backgrounds/positioned-root-expected.png: Removed.
* platform/qt/fast/backgrounds/positioned-root-expected.txt: Removed.
* platform/qt/fast/backgrounds/table-root-expected.png: Removed.
* platform/qt/fast/backgrounds/table-root-expected.txt: Removed.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@97555 268f45cc-cd09-0410-ab3c-d52691b4dbfc

81 files changed:
LayoutTests/ChangeLog
LayoutTests/css2.1/20110323/abspos-containing-block-initial-001-ref.htm [new file with mode: 0644]
LayoutTests/css2.1/20110323/abspos-containing-block-initial-001.htm [new file with mode: 0644]
LayoutTests/css2.1/20110323/abspos-containing-block-initial-004-ref-expected.png [moved from LayoutTests/platform/gtk/fast/backgrounds/positioned-root-expected.png with 98% similarity]
LayoutTests/css2.1/20110323/abspos-containing-block-initial-004-ref-expected.txt [new file with mode: 0644]
LayoutTests/css2.1/20110323/abspos-containing-block-initial-004-ref.htm [new file with mode: 0644]
LayoutTests/css2.1/20110323/abspos-containing-block-initial-004a-expected.png [new file with mode: 0644]
LayoutTests/css2.1/20110323/abspos-containing-block-initial-004a-expected.txt [moved from LayoutTests/platform/gtk/fast/backgrounds/positioned-root-expected.txt with 100% similarity]
LayoutTests/css2.1/20110323/abspos-containing-block-initial-004a.htm [moved from LayoutTests/fast/backgrounds/positioned-root.html with 73% similarity]
LayoutTests/css2.1/20110323/abspos-containing-block-initial-004b-expected.png [new file with mode: 0644]
LayoutTests/css2.1/20110323/abspos-containing-block-initial-004b-expected.txt [moved from LayoutTests/platform/mac/fast/backgrounds/positioned-root-expected.txt with 100% similarity]
LayoutTests/css2.1/20110323/abspos-containing-block-initial-004b.htm [moved from LayoutTests/fast/backgrounds/table-root.html with 72% similarity]
LayoutTests/css2.1/20110323/abspos-containing-block-initial-004c-expected.png [new file with mode: 0644]
LayoutTests/css2.1/20110323/abspos-containing-block-initial-004c-expected.txt [new file with mode: 0644]
LayoutTests/css2.1/20110323/abspos-containing-block-initial-004c.htm [new file with mode: 0644]
LayoutTests/css2.1/20110323/abspos-containing-block-initial-004d-expected.png [new file with mode: 0644]
LayoutTests/css2.1/20110323/abspos-containing-block-initial-004d-expected.txt [new file with mode: 0644]
LayoutTests/css2.1/20110323/abspos-containing-block-initial-004d.htm [new file with mode: 0644]
LayoutTests/css2.1/20110323/abspos-containing-block-initial-004d.htm.1 [new file with mode: 0644]
LayoutTests/css2.1/20110323/abspos-containing-block-initial-004e-expected.png [new file with mode: 0644]
LayoutTests/css2.1/20110323/abspos-containing-block-initial-004e-expected.txt [new file with mode: 0644]
LayoutTests/css2.1/20110323/abspos-containing-block-initial-004e.htm [new file with mode: 0644]
LayoutTests/css2.1/20110323/abspos-containing-block-initial-004f-expected.png [new file with mode: 0644]
LayoutTests/css2.1/20110323/abspos-containing-block-initial-004f-expected.txt [new file with mode: 0644]
LayoutTests/css2.1/20110323/abspos-containing-block-initial-004f.htm [new file with mode: 0644]
LayoutTests/css2.1/20110323/abspos-containing-block-initial-005-ref-expected.png [new file with mode: 0644]
LayoutTests/css2.1/20110323/abspos-containing-block-initial-005-ref-expected.txt [new file with mode: 0644]
LayoutTests/css2.1/20110323/abspos-containing-block-initial-005-ref.htm [new file with mode: 0644]
LayoutTests/css2.1/20110323/abspos-containing-block-initial-005a-expected.png [new file with mode: 0644]
LayoutTests/css2.1/20110323/abspos-containing-block-initial-005a-expected.txt [new file with mode: 0644]
LayoutTests/css2.1/20110323/abspos-containing-block-initial-005a.htm [new file with mode: 0644]
LayoutTests/css2.1/20110323/abspos-containing-block-initial-005b-expected.png [new file with mode: 0644]
LayoutTests/css2.1/20110323/abspos-containing-block-initial-005b-expected.txt [new file with mode: 0644]
LayoutTests/css2.1/20110323/abspos-containing-block-initial-005b.htm [new file with mode: 0644]
LayoutTests/css2.1/20110323/abspos-containing-block-initial-005c-expected.png [new file with mode: 0644]
LayoutTests/css2.1/20110323/abspos-containing-block-initial-005c-expected.txt [new file with mode: 0644]
LayoutTests/css2.1/20110323/abspos-containing-block-initial-005c.htm [new file with mode: 0644]
LayoutTests/css2.1/20110323/abspos-containing-block-initial-005d-expected.png [new file with mode: 0644]
LayoutTests/css2.1/20110323/abspos-containing-block-initial-005d-expected.txt [new file with mode: 0644]
LayoutTests/css2.1/20110323/abspos-containing-block-initial-005d.htm [new file with mode: 0644]
LayoutTests/css2.1/20110323/abspos-containing-block-initial-007-ref.htm [new file with mode: 0644]
LayoutTests/css2.1/20110323/abspos-containing-block-initial-007.htm [new file with mode: 0644]
LayoutTests/css2.1/20110323/abspos-containing-block-initial-009-ref-expected.png [new file with mode: 0644]
LayoutTests/css2.1/20110323/abspos-containing-block-initial-009-ref-expected.txt [new file with mode: 0644]
LayoutTests/css2.1/20110323/abspos-containing-block-initial-009-ref.htm [new file with mode: 0644]
LayoutTests/css2.1/20110323/abspos-containing-block-initial-009a-expected.png [new file with mode: 0644]
LayoutTests/css2.1/20110323/abspos-containing-block-initial-009a-expected.txt [new file with mode: 0644]
LayoutTests/css2.1/20110323/abspos-containing-block-initial-009a.htm [new file with mode: 0644]
LayoutTests/css2.1/20110323/abspos-containing-block-initial-009b-expected.png [new file with mode: 0644]
LayoutTests/css2.1/20110323/abspos-containing-block-initial-009b-expected.txt [new file with mode: 0644]
LayoutTests/css2.1/20110323/abspos-containing-block-initial-009b.htm [new file with mode: 0644]
LayoutTests/css2.1/20110323/abspos-containing-block-initial-009e-expected.png [new file with mode: 0644]
LayoutTests/css2.1/20110323/abspos-containing-block-initial-009e-expected.txt [new file with mode: 0644]
LayoutTests/css2.1/20110323/abspos-containing-block-initial-009e.htm [new file with mode: 0644]
LayoutTests/css2.1/20110323/abspos-containing-block-initial-009f-expected.png [new file with mode: 0644]
LayoutTests/css2.1/20110323/abspos-containing-block-initial-009f-expected.txt [new file with mode: 0644]
LayoutTests/css2.1/20110323/abspos-containing-block-initial-009f.htm [new file with mode: 0644]
LayoutTests/css2.1/20110323/height-width-inline-table-001.htm [new file with mode: 0644]
LayoutTests/css2.1/20110323/height-width-table-001.htm [new file with mode: 0644]
LayoutTests/platform/chromium-linux/css2.1/20110323/abspos-containing-block-initial-001-expected.png [moved from LayoutTests/platform/gtk/fast/backgrounds/table-root-expected.png with 55% similarity]
LayoutTests/platform/chromium-linux/css2.1/20110323/abspos-containing-block-initial-001-expected.txt [new file with mode: 0644]
LayoutTests/platform/chromium-linux/css2.1/20110323/abspos-containing-block-initial-001-ref-expected.png [new file with mode: 0644]
LayoutTests/platform/chromium-linux/css2.1/20110323/abspos-containing-block-initial-001-ref-expected.txt [new file with mode: 0644]
LayoutTests/platform/chromium-linux/css2.1/20110323/abspos-containing-block-initial-007-expected.png [new file with mode: 0644]
LayoutTests/platform/chromium-linux/css2.1/20110323/abspos-containing-block-initial-007-expected.txt [new file with mode: 0644]
LayoutTests/platform/chromium-linux/css2.1/20110323/abspos-containing-block-initial-007-ref-expected.png [new file with mode: 0644]
LayoutTests/platform/chromium-linux/css2.1/20110323/abspos-containing-block-initial-007-ref-expected.txt [new file with mode: 0644]
LayoutTests/platform/chromium-linux/css2.1/20110323/height-width-inline-table-001-expected.png [new file with mode: 0644]
LayoutTests/platform/chromium-linux/css2.1/20110323/height-width-inline-table-001-expected.txt [new file with mode: 0644]
LayoutTests/platform/chromium-linux/css2.1/20110323/height-width-table-001-expected.png [new file with mode: 0644]
LayoutTests/platform/chromium-linux/css2.1/20110323/height-width-table-001-expected.txt [new file with mode: 0644]
LayoutTests/platform/gtk/fast/backgrounds/table-root-expected.txt [deleted file]
LayoutTests/platform/mac/fast/backgrounds/positioned-root-expected.png [deleted file]
LayoutTests/platform/mac/fast/backgrounds/table-root-expected.png [deleted file]
LayoutTests/platform/mac/fast/backgrounds/table-root-expected.txt [deleted file]
LayoutTests/platform/qt/fast/backgrounds/positioned-root-expected.png [deleted file]
LayoutTests/platform/qt/fast/backgrounds/positioned-root-expected.txt [deleted file]
LayoutTests/platform/qt/fast/backgrounds/table-root-expected.png [deleted file]
LayoutTests/platform/qt/fast/backgrounds/table-root-expected.txt [deleted file]
Source/WebCore/ChangeLog
Source/WebCore/rendering/RenderTable.cpp

index 3047e4c..ecff5f1 100644 (file)
@@ -1,3 +1,89 @@
+2011-10-08  Robert Hogan  <robert@webkit.org>
+
+        CSS 2.1 failure: height-width-table-001.htm
+        https://bugs.webkit.org/show_bug.cgi?id=69709
+
+        Reviewed by Simon Fraser.
+
+        * css2.1/20110323/abspos-containing-block-initial-001-ref.htm: Added.
+        * css2.1/20110323/abspos-containing-block-initial-001.htm: Added.
+        * css2.1/20110323/abspos-containing-block-initial-004-ref-expected.png: Added
+        * css2.1/20110323/abspos-containing-block-initial-004-ref-expected.txt: Added.
+        * css2.1/20110323/abspos-containing-block-initial-004-ref.htm: Added.
+        * css2.1/20110323/abspos-containing-block-initial-004a-expected.png: Added
+        * css2.1/20110323/abspos-containing-block-initial-004a-expected.txt: Added.
+        * css2.1/20110323/abspos-containing-block-initial-004a.htm: Added.
+        * css2.1/20110323/abspos-containing-block-initial-004b-expected.png: Added
+        * css2.1/20110323/abspos-containing-block-initial-004b-expected.txt: Added.
+        * css2.1/20110323/abspos-containing-block-initial-004b.htm: Added.
+        * css2.1/20110323/abspos-containing-block-initial-004c-expected.png: Added
+        * css2.1/20110323/abspos-containing-block-initial-004c-expected.txt: Added.
+        * css2.1/20110323/abspos-containing-block-initial-004c.htm: Added.
+        * css2.1/20110323/abspos-containing-block-initial-004d-expected.png: Added
+        * css2.1/20110323/abspos-containing-block-initial-004d-expected.txt: Added.
+        * css2.1/20110323/abspos-containing-block-initial-004d.htm: Added.
+        * css2.1/20110323/abspos-containing-block-initial-004d.htm.1: Added.
+        * css2.1/20110323/abspos-containing-block-initial-004e-expected.png: Added
+        * css2.1/20110323/abspos-containing-block-initial-004e-expected.txt: Added.
+        * css2.1/20110323/abspos-containing-block-initial-004e.htm: Added.
+        * css2.1/20110323/abspos-containing-block-initial-004f-expected.png: Added
+        * css2.1/20110323/abspos-containing-block-initial-004f-expected.txt: Added.
+        * css2.1/20110323/abspos-containing-block-initial-004f.htm: Added.
+        * css2.1/20110323/abspos-containing-block-initial-005-ref-expected.png: Added
+        * css2.1/20110323/abspos-containing-block-initial-005-ref-expected.txt: Added.
+        * css2.1/20110323/abspos-containing-block-initial-005-ref.htm: Added.
+        * css2.1/20110323/abspos-containing-block-initial-005a-expected.png: Added
+        * css2.1/20110323/abspos-containing-block-initial-005a-expected.txt: Added.
+        * css2.1/20110323/abspos-containing-block-initial-005a.htm: Added.
+        * css2.1/20110323/abspos-containing-block-initial-005b-expected.png: Added
+        * css2.1/20110323/abspos-containing-block-initial-005b-expected.txt: Added.
+        * css2.1/20110323/abspos-containing-block-initial-005b.htm: Added.
+        * css2.1/20110323/abspos-containing-block-initial-005c-expected.png: Added
+        * css2.1/20110323/abspos-containing-block-initial-005c-expected.txt: Added.
+        * css2.1/20110323/abspos-containing-block-initial-005c.htm: Added.
+        * css2.1/20110323/abspos-containing-block-initial-005d-expected.png: Added
+        * css2.1/20110323/abspos-containing-block-initial-005d-expected.txt: Added.
+        * css2.1/20110323/abspos-containing-block-initial-005d.htm: Added.
+        * css2.1/20110323/abspos-containing-block-initial-007-ref.htm: Added.
+        * css2.1/20110323/abspos-containing-block-initial-007.htm: Added.
+        * css2.1/20110323/abspos-containing-block-initial-009-ref-expected.png: Added
+        * css2.1/20110323/abspos-containing-block-initial-009-ref-expected.txt: Added.
+        * css2.1/20110323/abspos-containing-block-initial-009-ref.htm: Added.
+        * css2.1/20110323/abspos-containing-block-initial-009a-expected.png: Added
+        * css2.1/20110323/abspos-containing-block-initial-009a-expected.txt: Added.
+        * css2.1/20110323/abspos-containing-block-initial-009a.htm: Added.
+        * css2.1/20110323/abspos-containing-block-initial-009b-expected.png: Added
+        * css2.1/20110323/abspos-containing-block-initial-009b-expected.txt: Added.
+        * css2.1/20110323/abspos-containing-block-initial-009b.htm: Added.
+        * css2.1/20110323/abspos-containing-block-initial-009e-expected.png: Added
+        * css2.1/20110323/abspos-containing-block-initial-009e-expected.txt: Added.
+        * css2.1/20110323/abspos-containing-block-initial-009e.htm: Added.
+        * css2.1/20110323/abspos-containing-block-initial-009f-expected.png: Added.
+        * css2.1/20110323/abspos-containing-block-initial-009f-expected.txt: Added.
+        * css2.1/20110323/abspos-containing-block-initial-009f.htm: Added.
+        * css2.1/20110323/height-width-inline-table-001.htm: Added.
+        * css2.1/20110323/height-width-table-001.htm: Added.
+        * platform/chromium-linux/css2.1/20110323/abspos-containing-block-initial-001-expected.png: Added.
+        * platform/chromium-linux/css2.1/20110323/abspos-containing-block-initial-001-expected.txt: Added.
+        * platform/chromium-linux/css2.1/20110323/abspos-containing-block-initial-001-ref-expected.png: Added.
+        * platform/chromium-linux/css2.1/20110323/abspos-containing-block-initial-001-ref-expected.txt: Added.
+        * platform/chromium-linux/css2.1/20110323/abspos-containing-block-initial-007-expected.png: Added
+        * platform/chromium-linux/css2.1/20110323/abspos-containing-block-initial-007-expected.txt: Added.
+        * platform/chromium-linux/css2.1/20110323/abspos-containing-block-initial-007-ref-expected.png: Added
+        * platform/chromium-linux/css2.1/20110323/abspos-containing-block-initial-007-ref-expected.txt: Added.
+        * platform/chromium-linux/css2.1/20110323/height-width-inline-table-001-expected.png: Added.
+        * platform/chromium-linux/css2.1/20110323/height-width-inline-table-001-expected.txt: Added.
+        * platform/chromium-linux/css2.1/20110323/height-width-table-001-expected.png: Added.
+        * platform/chromium-linux/css2.1/20110323/height-width-table-001-expected.txt: Added.
+        * platform/gtk/fast/backgrounds/table-root-expected.txt: Removed.
+        * platform/mac/fast/backgrounds/positioned-root-expected.png: Removed.
+        * platform/mac/fast/backgrounds/table-root-expected.png: Removed.
+        * platform/mac/fast/backgrounds/table-root-expected.txt: Removed.
+        * platform/qt/fast/backgrounds/positioned-root-expected.png: Removed.
+        * platform/qt/fast/backgrounds/positioned-root-expected.txt: Removed.
+        * platform/qt/fast/backgrounds/table-root-expected.png: Removed.
+        * platform/qt/fast/backgrounds/table-root-expected.txt: Removed.
+
 2011-10-15  Joshua Bell  <jsbell@chromium.org>
 
         IndexedDB: some string keys not properly stored and retrieved
diff --git a/LayoutTests/css2.1/20110323/abspos-containing-block-initial-001-ref.htm b/LayoutTests/css2.1/20110323/abspos-containing-block-initial-001-ref.htm
new file mode 100644 (file)
index 0000000..3374457
--- /dev/null
@@ -0,0 +1,23 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html><head>
+<title>CSS Test: Test for containing block for absolutely positioned elements being initial containing block</title>
+<link rel="author" title="Robert O'Callahan" href="mailto:robert@ocallahan.org">
+<link rel="author" title="Mozilla Corporation" href="http://mozilla.com/">
+<style type="text/css">
+body { margin:0; }
+.pos { position:absolute; width:100px; height:100px; }
+</style>
+</head>
+<body>
+<div style="height:10000px; margin:0; margin:10px; border:20px solid black; padding:30px;"></div>
+<script type="text/javascript">
+window.scrollTo(0,50);
+</script>
+<div style="top:0; left:60px; background:yellow;" class="pos"></div>
+<div style="right:0; top:60px; background:orange;" class="pos"></div>
+<div style="bottom:0; left:60px; background:brown;" class="pos"></div>
+<div style="left:0; top:60px; background:pink;" class="pos"></div>
+
+
+
+</body></html>
\ No newline at end of file
diff --git a/LayoutTests/css2.1/20110323/abspos-containing-block-initial-001.htm b/LayoutTests/css2.1/20110323/abspos-containing-block-initial-001.htm
new file mode 100644 (file)
index 0000000..ba548cc
--- /dev/null
@@ -0,0 +1,26 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html><head>
+<title>CSS Test: Test for containing block for absolutely positioned elements being initial containing block</title>
+<link rel="author" title="Robert O'Callahan" href="mailto:robert@ocallahan.org">
+<link rel="author" title="Mozilla Corporation" href="http://mozilla.com/">
+<link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#containing-block-details">
+<link rel="match" href="abspos-containing-block-initial-001-ref.htm">
+<meta name="assert" content="If there is no such ancestor, the containing block is the initial containing block.">
+<meta name="flags" content="dom">
+<style type="text/css">
+html { margin:10px; border:20px solid black; padding:30px; }
+body { height:10000px; margin:0; }
+div { position:absolute; width:100px; height:100px; }
+</style>
+</head>
+<body>
+<script type="text/javascript">
+window.scrollTo(0,50);
+</script>
+<div style="top:0; background:yellow;"></div>
+<div style="right:0; background:orange;"></div>
+<div style="bottom:0; background:brown;"></div>
+<div style="left:0; background:pink;"></div>
+
+
+</body></html>
\ No newline at end of file
similarity index 98%
rename from LayoutTests/platform/gtk/fast/backgrounds/positioned-root-expected.png
rename to LayoutTests/css2.1/20110323/abspos-containing-block-initial-004-ref-expected.png
index 991121c..9437aec 100644 (file)
Binary files a/LayoutTests/platform/gtk/fast/backgrounds/positioned-root-expected.png and b/LayoutTests/css2.1/20110323/abspos-containing-block-initial-004-ref-expected.png differ
diff --git a/LayoutTests/css2.1/20110323/abspos-containing-block-initial-004-ref-expected.txt b/LayoutTests/css2.1/20110323/abspos-containing-block-initial-004-ref-expected.txt
new file mode 100644 (file)
index 0000000..a473e5d
--- /dev/null
@@ -0,0 +1,7 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x8
+  RenderBlock {HTML} at (0,0) size 800x8 [bgcolor=#FFFF00]
+    RenderBody {BODY} at (8,8) size 784x0
+layer at (100,100) size 120x120
+  RenderBlock (positioned) {DIV} at (100,100) size 120x120 [border: (10px solid #000000)]
diff --git a/LayoutTests/css2.1/20110323/abspos-containing-block-initial-004-ref.htm b/LayoutTests/css2.1/20110323/abspos-containing-block-initial-004-ref.htm
new file mode 100644 (file)
index 0000000..d5ec9a8
--- /dev/null
@@ -0,0 +1,9 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html style="background:yellow;"><head><title>CSS Test: Test for containing block for absolutely positioned elements being initial containing block</title>
+<link rel="author" title="Robert O'Callahan" href="mailto:robert@ocallahan.org">
+<link rel="author" title="Mozilla Corporation" href="http://mozilla.com/">
+</head><body>
+<div style="position:absolute; top:100px; left:100px; width:100px; height:100px;             border:10px solid black;"></div>
+
+
+</body></html>
\ No newline at end of file
diff --git a/LayoutTests/css2.1/20110323/abspos-containing-block-initial-004a-expected.png b/LayoutTests/css2.1/20110323/abspos-containing-block-initial-004a-expected.png
new file mode 100644 (file)
index 0000000..9437aec
Binary files /dev/null and b/LayoutTests/css2.1/20110323/abspos-containing-block-initial-004a-expected.png differ
@@ -1,8 +1,9 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
-<html style="position:absolute; left:100px; top:100px; width:100px; height:100px;              background:yellow; border:10px solid black;"><head><link rel="reference" href="abspos-containing-block-initial-004-ref.xht"><title>CSS Test: Test for containing block for absolutely positioned elements being initial containing block</title>
+<html style="position:absolute; left:100px; top:100px; width:100px; height:100px;              background:yellow; border:10px solid black;"><head><title>CSS Test: Test for containing block for absolutely positioned elements being initial containing block</title>
 <link rel="author" title="Robert O'Callahan" href="mailto:robert@ocallahan.org">
 <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/">
 <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#containing-block-details">
+<link rel="match" href="abspos-containing-block-initial-004-ref.htm">
 <meta name="assert" content="If there is no such ancestor, the containing block is the initial containing block.">
 <meta name="flags" content="">
 </head><body>
diff --git a/LayoutTests/css2.1/20110323/abspos-containing-block-initial-004b-expected.png b/LayoutTests/css2.1/20110323/abspos-containing-block-initial-004b-expected.png
new file mode 100644 (file)
index 0000000..9437aec
Binary files /dev/null and b/LayoutTests/css2.1/20110323/abspos-containing-block-initial-004b-expected.png differ
@@ -1,8 +1,9 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
-<html style="position:fixed; left:100px; top:100px; width:100px; height:100px;              background:yellow; border:10px solid black; display:table"><head><link rel="reference" href="abspos-containing-block-initial-004-ref.xht"><title>CSS Test: Test for containing block for absolutely positioned elements being initial containing block</title>
+<html style="position:fixed; left:100px; top:100px; width:100px; height:100px;              background:yellow; border:10px solid black;"><head><title>CSS Test: Test for containing block for absolutely positioned elements being initial containing block</title>
 <link rel="author" title="Robert O'Callahan" href="mailto:robert@ocallahan.org">
 <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/">
 <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#containing-block-details">
+<link rel="match" href="abspos-containing-block-initial-004-ref.htm">
 <meta name="assert" content="If there is no such ancestor, the containing block is the initial containing block.">
 <meta name="flags" content="">
 </head><body>
diff --git a/LayoutTests/css2.1/20110323/abspos-containing-block-initial-004c-expected.png b/LayoutTests/css2.1/20110323/abspos-containing-block-initial-004c-expected.png
new file mode 100644 (file)
index 0000000..9437aec
Binary files /dev/null and b/LayoutTests/css2.1/20110323/abspos-containing-block-initial-004c-expected.png differ
diff --git a/LayoutTests/css2.1/20110323/abspos-containing-block-initial-004c-expected.txt b/LayoutTests/css2.1/20110323/abspos-containing-block-initial-004c-expected.txt
new file mode 100644 (file)
index 0000000..ff69782
--- /dev/null
@@ -0,0 +1,8 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (100,100) size 120x120
+  RenderTable {HTML} at (100,100) size 120x120 [bgcolor=#FFFF00] [border: (10px solid #000000)]
+    RenderTableSection (anonymous) at (10,10) size 100x100
+      RenderTableRow (anonymous) at (0,0) size 100x100
+        RenderTableCell (anonymous) at (0,0) size 100x8 [r=0 c=0 rs=1 cs=1]
+          RenderBody {BODY} at (8,8) size 84x0
diff --git a/LayoutTests/css2.1/20110323/abspos-containing-block-initial-004c.htm b/LayoutTests/css2.1/20110323/abspos-containing-block-initial-004c.htm
new file mode 100644 (file)
index 0000000..3d897c1
--- /dev/null
@@ -0,0 +1,12 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html style="position:absolute; left:100px; top:100px; width:100px; height:100px;              background:yellow; border:10px solid black; display:table;"><head><title>CSS Test: Test for containing block for absolutely positioned elements being initial containing block</title>
+<link rel="author" title="Robert O'Callahan" href="mailto:robert@ocallahan.org">
+<link rel="author" title="Mozilla Corporation" href="http://mozilla.com/">
+<link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#containing-block-details">
+<link rel="match" href="abspos-containing-block-initial-004-ref.htm">
+<meta name="assert" content="If there is no such ancestor, the containing block is the initial containing block.">
+<meta name="flags" content="">
+</head><body>
+
+
+</body></html>
\ No newline at end of file
diff --git a/LayoutTests/css2.1/20110323/abspos-containing-block-initial-004d-expected.png b/LayoutTests/css2.1/20110323/abspos-containing-block-initial-004d-expected.png
new file mode 100644 (file)
index 0000000..9437aec
Binary files /dev/null and b/LayoutTests/css2.1/20110323/abspos-containing-block-initial-004d-expected.png differ
diff --git a/LayoutTests/css2.1/20110323/abspos-containing-block-initial-004d-expected.txt b/LayoutTests/css2.1/20110323/abspos-containing-block-initial-004d-expected.txt
new file mode 100644 (file)
index 0000000..ff69782
--- /dev/null
@@ -0,0 +1,8 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (100,100) size 120x120
+  RenderTable {HTML} at (100,100) size 120x120 [bgcolor=#FFFF00] [border: (10px solid #000000)]
+    RenderTableSection (anonymous) at (10,10) size 100x100
+      RenderTableRow (anonymous) at (0,0) size 100x100
+        RenderTableCell (anonymous) at (0,0) size 100x8 [r=0 c=0 rs=1 cs=1]
+          RenderBody {BODY} at (8,8) size 84x0
diff --git a/LayoutTests/css2.1/20110323/abspos-containing-block-initial-004d.htm b/LayoutTests/css2.1/20110323/abspos-containing-block-initial-004d.htm
new file mode 100644 (file)
index 0000000..8274d55
--- /dev/null
@@ -0,0 +1,12 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html style="position:fixed; left:100px; top:100px; width:100px; height:100px;              background:yellow; border:10px solid black; display:table"><head><title>CSS Test: Test for containing block for absolutely positioned elements being initial containing block</title>
+<link rel="author" title="Robert O'Callahan" href="mailto:robert@ocallahan.org">
+<link rel="author" title="Mozilla Corporation" href="http://mozilla.com/">
+<link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#containing-block-details">
+<link rel="match" href="abspos-containing-block-initial-004-ref.htm">
+<meta name="assert" content="If there is no such ancestor, the containing block is the initial containing block.">
+<meta name="flags" content="">
+</head><body>
+
+
+</body></html>
\ No newline at end of file
diff --git a/LayoutTests/css2.1/20110323/abspos-containing-block-initial-004d.htm.1 b/LayoutTests/css2.1/20110323/abspos-containing-block-initial-004d.htm.1
new file mode 100644 (file)
index 0000000..8274d55
--- /dev/null
@@ -0,0 +1,12 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html style="position:fixed; left:100px; top:100px; width:100px; height:100px;              background:yellow; border:10px solid black; display:table"><head><title>CSS Test: Test for containing block for absolutely positioned elements being initial containing block</title>
+<link rel="author" title="Robert O'Callahan" href="mailto:robert@ocallahan.org">
+<link rel="author" title="Mozilla Corporation" href="http://mozilla.com/">
+<link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#containing-block-details">
+<link rel="match" href="abspos-containing-block-initial-004-ref.htm">
+<meta name="assert" content="If there is no such ancestor, the containing block is the initial containing block.">
+<meta name="flags" content="">
+</head><body>
+
+
+</body></html>
\ No newline at end of file
diff --git a/LayoutTests/css2.1/20110323/abspos-containing-block-initial-004e-expected.png b/LayoutTests/css2.1/20110323/abspos-containing-block-initial-004e-expected.png
new file mode 100644 (file)
index 0000000..9437aec
Binary files /dev/null and b/LayoutTests/css2.1/20110323/abspos-containing-block-initial-004e-expected.png differ
diff --git a/LayoutTests/css2.1/20110323/abspos-containing-block-initial-004e-expected.txt b/LayoutTests/css2.1/20110323/abspos-containing-block-initial-004e-expected.txt
new file mode 100644 (file)
index 0000000..174ce44
--- /dev/null
@@ -0,0 +1,9 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 1x0
+  RenderTable {HTML} at (0,0) size 1x0
+    RenderTableSection (anonymous) at (0,0) size 1x0
+      RenderTableRow (anonymous) at (0,0) size 1x0
+        RenderTableCell (anonymous) at (0,0) size 1x0 [r=0 c=0 rs=1 cs=1]
+layer at (100,100) size 120x120
+  RenderBody {BODY} at (100,100) size 120x120 [bgcolor=#FFFF00] [border: (10px solid #000000)]
diff --git a/LayoutTests/css2.1/20110323/abspos-containing-block-initial-004e.htm b/LayoutTests/css2.1/20110323/abspos-containing-block-initial-004e.htm
new file mode 100644 (file)
index 0000000..f7b626a
--- /dev/null
@@ -0,0 +1,12 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html style="display:table"><head><title>CSS Test: Test for containing block for absolutely positioned elements being initial containing block</title>
+<link rel="author" title="Robert O'Callahan" href="mailto:robert@ocallahan.org">
+<link rel="author" title="Mozilla Corporation" href="http://mozilla.com/">
+<link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#containing-block-details">
+<link rel="match" href="abspos-containing-block-initial-004-ref.htm">
+<meta name="assert" content="If there is no such ancestor, the containing block is the initial containing block.">
+<meta name="flags" content="">
+</head><body style="position:absolute; left:100px; top:100px; width:100px; height:100px; border:10px solid black;              background:yellow; margin:0">
+
+
+</body></html>
\ No newline at end of file
diff --git a/LayoutTests/css2.1/20110323/abspos-containing-block-initial-004f-expected.png b/LayoutTests/css2.1/20110323/abspos-containing-block-initial-004f-expected.png
new file mode 100644 (file)
index 0000000..9437aec
Binary files /dev/null and b/LayoutTests/css2.1/20110323/abspos-containing-block-initial-004f-expected.png differ
diff --git a/LayoutTests/css2.1/20110323/abspos-containing-block-initial-004f-expected.txt b/LayoutTests/css2.1/20110323/abspos-containing-block-initial-004f-expected.txt
new file mode 100644 (file)
index 0000000..174ce44
--- /dev/null
@@ -0,0 +1,9 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 1x0
+  RenderTable {HTML} at (0,0) size 1x0
+    RenderTableSection (anonymous) at (0,0) size 1x0
+      RenderTableRow (anonymous) at (0,0) size 1x0
+        RenderTableCell (anonymous) at (0,0) size 1x0 [r=0 c=0 rs=1 cs=1]
+layer at (100,100) size 120x120
+  RenderBody {BODY} at (100,100) size 120x120 [bgcolor=#FFFF00] [border: (10px solid #000000)]
diff --git a/LayoutTests/css2.1/20110323/abspos-containing-block-initial-004f.htm b/LayoutTests/css2.1/20110323/abspos-containing-block-initial-004f.htm
new file mode 100644 (file)
index 0000000..54ce5a8
--- /dev/null
@@ -0,0 +1,12 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html style="display:table"><head><title>CSS Test: Test for containing block for absolutely positioned elements being initial containing block</title>
+<link rel="author" title="Robert O'Callahan" href="mailto:robert@ocallahan.org">
+<link rel="author" title="Mozilla Corporation" href="http://mozilla.com/">
+<link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#containing-block-details">
+<link rel="match" href="abspos-containing-block-initial-004-ref.htm">
+<meta name="assert" content="If there is no such ancestor, the containing block is the initial containing block.">
+<meta name="flags" content="">
+</head><body style="position:fixed; left:100px; top:100px; width:100px; height:100px; border:10px solid black;              background:yellow; margin:0">
+
+
+</body></html>
\ No newline at end of file
diff --git a/LayoutTests/css2.1/20110323/abspos-containing-block-initial-005-ref-expected.png b/LayoutTests/css2.1/20110323/abspos-containing-block-initial-005-ref-expected.png
new file mode 100644 (file)
index 0000000..590d85b
Binary files /dev/null and b/LayoutTests/css2.1/20110323/abspos-containing-block-initial-005-ref-expected.png differ
diff --git a/LayoutTests/css2.1/20110323/abspos-containing-block-initial-005-ref-expected.txt b/LayoutTests/css2.1/20110323/abspos-containing-block-initial-005-ref-expected.txt
new file mode 100644 (file)
index 0000000..3591320
--- /dev/null
@@ -0,0 +1,6 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x120
+  RenderBlock {HTML} at (0,0) size 800x120 [bgcolor=#FFFF00]
+    RenderBody {BODY} at (0,0) size 800x120
+      RenderBlock {DIV} at (0,0) size 120x120 [border: (10px solid #000000)]
diff --git a/LayoutTests/css2.1/20110323/abspos-containing-block-initial-005-ref.htm b/LayoutTests/css2.1/20110323/abspos-containing-block-initial-005-ref.htm
new file mode 100644 (file)
index 0000000..12457f6
--- /dev/null
@@ -0,0 +1,9 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html style="background:yellow;"><head><title>CSS Test: Test for containing block for absolutely positioned elements being initial containing block</title>
+<link rel="author" title="Robert O'Callahan" href="mailto:robert@ocallahan.org">
+<link rel="author" title="Mozilla Corporation" href="http://mozilla.com/">
+</head><body style="margin:0">
+<div style="border:10px solid black; width:100px; height:100px;"></div>
+
+
+</body></html>
\ No newline at end of file
diff --git a/LayoutTests/css2.1/20110323/abspos-containing-block-initial-005a-expected.png b/LayoutTests/css2.1/20110323/abspos-containing-block-initial-005a-expected.png
new file mode 100644 (file)
index 0000000..590d85b
Binary files /dev/null and b/LayoutTests/css2.1/20110323/abspos-containing-block-initial-005a-expected.png differ
diff --git a/LayoutTests/css2.1/20110323/abspos-containing-block-initial-005a-expected.txt b/LayoutTests/css2.1/20110323/abspos-containing-block-initial-005a-expected.txt
new file mode 100644 (file)
index 0000000..fd660d4
--- /dev/null
@@ -0,0 +1,5 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 120x120
+  RenderBlock (positioned) {HTML} at (0,0) size 120x120 [bgcolor=#FFFF00] [border: (10px solid #000000)]
+    RenderBody {BODY} at (18,18) size 84x0
diff --git a/LayoutTests/css2.1/20110323/abspos-containing-block-initial-005a.htm b/LayoutTests/css2.1/20110323/abspos-containing-block-initial-005a.htm
new file mode 100644 (file)
index 0000000..be9b0ab
--- /dev/null
@@ -0,0 +1,12 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html style="position:absolute; width:100px; height:100px;              background:yellow; border:10px solid black;"><head><title>CSS Test: Test for containing block for absolutely positioned elements being initial containing block</title>
+<link rel="author" title="Robert O'Callahan" href="mailto:robert@ocallahan.org">
+<link rel="author" title="Mozilla Corporation" href="http://mozilla.com/">
+<link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#containing-block-details">
+<link rel="match" href="abspos-containing-block-initial-005-ref.htm">
+<meta name="assert" content="If there is no such ancestor, the containing block is the initial containing block.">
+<meta name="flags" content="">
+</head><body>
+
+
+</body></html>
\ No newline at end of file
diff --git a/LayoutTests/css2.1/20110323/abspos-containing-block-initial-005b-expected.png b/LayoutTests/css2.1/20110323/abspos-containing-block-initial-005b-expected.png
new file mode 100644 (file)
index 0000000..590d85b
Binary files /dev/null and b/LayoutTests/css2.1/20110323/abspos-containing-block-initial-005b-expected.png differ
diff --git a/LayoutTests/css2.1/20110323/abspos-containing-block-initial-005b-expected.txt b/LayoutTests/css2.1/20110323/abspos-containing-block-initial-005b-expected.txt
new file mode 100644 (file)
index 0000000..ddf6a3c
--- /dev/null
@@ -0,0 +1,8 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 120x120
+  RenderTable {HTML} at (0,0) size 120x120 [bgcolor=#FFFF00] [border: (10px solid #000000)]
+    RenderTableSection (anonymous) at (10,10) size 100x100
+      RenderTableRow (anonymous) at (0,0) size 100x100
+        RenderTableCell (anonymous) at (0,0) size 100x8 [r=0 c=0 rs=1 cs=1]
+          RenderBody {BODY} at (8,8) size 84x0
diff --git a/LayoutTests/css2.1/20110323/abspos-containing-block-initial-005b.htm b/LayoutTests/css2.1/20110323/abspos-containing-block-initial-005b.htm
new file mode 100644 (file)
index 0000000..3ef71f5
--- /dev/null
@@ -0,0 +1,12 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html style="position:absolute; width:100px; height:100px; display:table;              background:yellow; border:10px solid black;"><head><title>CSS Test: Test for containing block for absolutely positioned elements being initial containing block</title>
+<link rel="author" title="Robert O'Callahan" href="mailto:robert@ocallahan.org">
+<link rel="author" title="Mozilla Corporation" href="http://mozilla.com/">
+<link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#containing-block-details">
+<link rel="match" href="abspos-containing-block-initial-005-ref.htm">
+<meta name="assert" content="If there is no such ancestor, the containing block is the initial containing block.">
+<meta name="flags" content="">
+</head><body>
+
+
+</body></html>
\ No newline at end of file
diff --git a/LayoutTests/css2.1/20110323/abspos-containing-block-initial-005c-expected.png b/LayoutTests/css2.1/20110323/abspos-containing-block-initial-005c-expected.png
new file mode 100644 (file)
index 0000000..590d85b
Binary files /dev/null and b/LayoutTests/css2.1/20110323/abspos-containing-block-initial-005c-expected.png differ
diff --git a/LayoutTests/css2.1/20110323/abspos-containing-block-initial-005c-expected.txt b/LayoutTests/css2.1/20110323/abspos-containing-block-initial-005c-expected.txt
new file mode 100644 (file)
index 0000000..fd660d4
--- /dev/null
@@ -0,0 +1,5 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 120x120
+  RenderBlock (positioned) {HTML} at (0,0) size 120x120 [bgcolor=#FFFF00] [border: (10px solid #000000)]
+    RenderBody {BODY} at (18,18) size 84x0
diff --git a/LayoutTests/css2.1/20110323/abspos-containing-block-initial-005c.htm b/LayoutTests/css2.1/20110323/abspos-containing-block-initial-005c.htm
new file mode 100644 (file)
index 0000000..a075263
--- /dev/null
@@ -0,0 +1,12 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html style="position:fixed; width:100px; height:100px;              background:yellow; border:10px solid black;"><head><title>CSS Test: Test for containing block for absolutely positioned elements being initial containing block</title>
+<link rel="author" title="Robert O'Callahan" href="mailto:robert@ocallahan.org">
+<link rel="author" title="Mozilla Corporation" href="http://mozilla.com/">
+<link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#containing-block-details">
+<link rel="match" href="abspos-containing-block-initial-005-ref.htm">
+<meta name="assert" content="If there is no such ancestor, the containing block is the initial containing block.">
+<meta name="flags" content="">
+</head><body>
+
+
+</body></html>
\ No newline at end of file
diff --git a/LayoutTests/css2.1/20110323/abspos-containing-block-initial-005d-expected.png b/LayoutTests/css2.1/20110323/abspos-containing-block-initial-005d-expected.png
new file mode 100644 (file)
index 0000000..590d85b
Binary files /dev/null and b/LayoutTests/css2.1/20110323/abspos-containing-block-initial-005d-expected.png differ
diff --git a/LayoutTests/css2.1/20110323/abspos-containing-block-initial-005d-expected.txt b/LayoutTests/css2.1/20110323/abspos-containing-block-initial-005d-expected.txt
new file mode 100644 (file)
index 0000000..ddf6a3c
--- /dev/null
@@ -0,0 +1,8 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 120x120
+  RenderTable {HTML} at (0,0) size 120x120 [bgcolor=#FFFF00] [border: (10px solid #000000)]
+    RenderTableSection (anonymous) at (10,10) size 100x100
+      RenderTableRow (anonymous) at (0,0) size 100x100
+        RenderTableCell (anonymous) at (0,0) size 100x8 [r=0 c=0 rs=1 cs=1]
+          RenderBody {BODY} at (8,8) size 84x0
diff --git a/LayoutTests/css2.1/20110323/abspos-containing-block-initial-005d.htm b/LayoutTests/css2.1/20110323/abspos-containing-block-initial-005d.htm
new file mode 100644 (file)
index 0000000..f3f6304
--- /dev/null
@@ -0,0 +1,12 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html style="position:fixed; width:100px; height:100px; display:table;              background:yellow; border:10px solid black;"><head><title>CSS Test: Test for containing block for absolutely positioned elements being initial containing block</title>
+<link rel="author" title="Robert O'Callahan" href="mailto:robert@ocallahan.org">
+<link rel="author" title="Mozilla Corporation" href="http://mozilla.com/">
+<link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#containing-block-details">
+<link rel="match" href="abspos-containing-block-initial-005-ref.htm">
+<meta name="assert" content="If there is no such ancestor, the containing block is the initial containing block.">
+<meta name="flags" content="">
+</head><body>
+
+
+</body></html>
\ No newline at end of file
diff --git a/LayoutTests/css2.1/20110323/abspos-containing-block-initial-007-ref.htm b/LayoutTests/css2.1/20110323/abspos-containing-block-initial-007-ref.htm
new file mode 100644 (file)
index 0000000..b499898
--- /dev/null
@@ -0,0 +1,11 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html><head><title>CSS Test: Test for containing block for absolutely positioned elements being initial containing block</title>
+<link rel="author" title="Robert O'Callahan" href="mailto:robert@ocallahan.org">
+<link rel="author" title="Mozilla Corporation" href="http://mozilla.com/">
+</head><body style="margin:0;">
+<div style="position:relative; top:100px; left:100px; height:100px; border:10px solid black;">
+  <div style="position:absolute; bottom:0; height:30px; border:10px solid orange;">
+  </div>
+
+
+</div></body></html>
\ No newline at end of file
diff --git a/LayoutTests/css2.1/20110323/abspos-containing-block-initial-007.htm b/LayoutTests/css2.1/20110323/abspos-containing-block-initial-007.htm
new file mode 100644 (file)
index 0000000..c7c7762
--- /dev/null
@@ -0,0 +1,12 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html style="position:relative; top:100px; left:100px; height:100px; border:10px solid black;"><head><title>CSS Test: Test for containing block for absolutely positioned elements being initial containing block</title>
+<link rel="author" title="Robert O'Callahan" href="mailto:robert@ocallahan.org">
+<link rel="author" title="Mozilla Corporation" href="http://mozilla.com/">
+<link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#containing-block-details">
+<link rel="match" href="abspos-containing-block-initial-007-ref.htm">
+<meta name="assert" content="If there is no such ancestor, the containing block is the initial containing block.">
+<meta name="flags" content="">
+</head><body style="position:absolute; margin:0; bottom:0; height:30px; border:10px solid orange;">
+
+
+</body></html>
\ No newline at end of file
diff --git a/LayoutTests/css2.1/20110323/abspos-containing-block-initial-009-ref-expected.png b/LayoutTests/css2.1/20110323/abspos-containing-block-initial-009-ref-expected.png
new file mode 100644 (file)
index 0000000..34ffc17
Binary files /dev/null and b/LayoutTests/css2.1/20110323/abspos-containing-block-initial-009-ref-expected.png differ
diff --git a/LayoutTests/css2.1/20110323/abspos-containing-block-initial-009-ref-expected.txt b/LayoutTests/css2.1/20110323/abspos-containing-block-initial-009-ref-expected.txt
new file mode 100644 (file)
index 0000000..966d4f3
--- /dev/null
@@ -0,0 +1,7 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x0
+  RenderBlock {HTML} at (0,0) size 800x0
+    RenderBody {BODY} at (0,0) size 800x0
+layer at (50,50) size 420x320
+  RenderBlock (positioned) {DIV} at (50,50) size 420x320 [border: (10px solid #000000)]
diff --git a/LayoutTests/css2.1/20110323/abspos-containing-block-initial-009-ref.htm b/LayoutTests/css2.1/20110323/abspos-containing-block-initial-009-ref.htm
new file mode 100644 (file)
index 0000000..599de93
--- /dev/null
@@ -0,0 +1,9 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html><head><title>CSS Test: Test for containing block for absolutely positioned elements being initial containing block</title>
+<link rel="author" title="Robert O'Callahan" href="mailto:robert@ocallahan.org">
+<link rel="author" title="Mozilla Corporation" href="http://mozilla.com/">
+</head><body style="margin:0">
+<div style="position:fixed; width:50%; height:50%; left:50px; top:50px; border:10px solid black;"></div>
+
+
+</body></html>
\ No newline at end of file
diff --git a/LayoutTests/css2.1/20110323/abspos-containing-block-initial-009a-expected.png b/LayoutTests/css2.1/20110323/abspos-containing-block-initial-009a-expected.png
new file mode 100644 (file)
index 0000000..34ffc17
Binary files /dev/null and b/LayoutTests/css2.1/20110323/abspos-containing-block-initial-009a-expected.png differ
diff --git a/LayoutTests/css2.1/20110323/abspos-containing-block-initial-009a-expected.txt b/LayoutTests/css2.1/20110323/abspos-containing-block-initial-009a-expected.txt
new file mode 100644 (file)
index 0000000..08d5dcf
--- /dev/null
@@ -0,0 +1,5 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (50,50) size 420x320
+  RenderBlock {HTML} at (50,50) size 420x320 [border: (10px solid #000000)]
+    RenderBody {BODY} at (18,18) size 384x0
diff --git a/LayoutTests/css2.1/20110323/abspos-containing-block-initial-009a.htm b/LayoutTests/css2.1/20110323/abspos-containing-block-initial-009a.htm
new file mode 100644 (file)
index 0000000..47c825a
--- /dev/null
@@ -0,0 +1,10 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html style="width:50%; height:50%; margin:50px; border:10px solid black;"><head><title>CSS Test: Test for containing block for absolutely positioned elements being initial containing block</title>
+<link rel="author" title="Robert O'Callahan" href="mailto:robert@ocallahan.org">
+<link rel="author" title="Mozilla Corporation" href="http://mozilla.com/">
+<link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#containing-block-details">
+<link rel="match" href="abspos-containing-block-initial-009-ref.htm">
+<meta name="assert" content="If there is no such ancestor, the containing block is the initial containing block.">
+<meta name="flags" content="">
+</head><body>
+</body></html>
\ No newline at end of file
diff --git a/LayoutTests/css2.1/20110323/abspos-containing-block-initial-009b-expected.png b/LayoutTests/css2.1/20110323/abspos-containing-block-initial-009b-expected.png
new file mode 100644 (file)
index 0000000..34ffc17
Binary files /dev/null and b/LayoutTests/css2.1/20110323/abspos-containing-block-initial-009b-expected.png differ
diff --git a/LayoutTests/css2.1/20110323/abspos-containing-block-initial-009b-expected.txt b/LayoutTests/css2.1/20110323/abspos-containing-block-initial-009b-expected.txt
new file mode 100644 (file)
index 0000000..6d23e9f
--- /dev/null
@@ -0,0 +1,5 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (50,50) size 420x320
+  RenderBlock (positioned) {HTML} at (50,50) size 420x320 [border: (10px solid #000000)]
+    RenderBody {BODY} at (18,18) size 384x0
diff --git a/LayoutTests/css2.1/20110323/abspos-containing-block-initial-009b.htm b/LayoutTests/css2.1/20110323/abspos-containing-block-initial-009b.htm
new file mode 100644 (file)
index 0000000..93aff80
--- /dev/null
@@ -0,0 +1,10 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html style="position:absolute; left:50px; top:50px; width:50%; height:50%; border:10px solid black;"><head><title>CSS Test: Test for containing block for absolutely positioned elements being initial containing block</title>
+<link rel="author" title="Robert O'Callahan" href="mailto:robert@ocallahan.org">
+<link rel="author" title="Mozilla Corporation" href="http://mozilla.com/">
+<link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#containing-block-details">
+<link rel="match" href="abspos-containing-block-initial-009-ref.htm">
+<meta name="assert" content="If there is no such ancestor, the containing block is the initial containing block.">
+<meta name="flags" content="">
+</head><body>
+</body></html>
\ No newline at end of file
diff --git a/LayoutTests/css2.1/20110323/abspos-containing-block-initial-009e-expected.png b/LayoutTests/css2.1/20110323/abspos-containing-block-initial-009e-expected.png
new file mode 100644 (file)
index 0000000..34ffc17
Binary files /dev/null and b/LayoutTests/css2.1/20110323/abspos-containing-block-initial-009e-expected.png differ
diff --git a/LayoutTests/css2.1/20110323/abspos-containing-block-initial-009e-expected.txt b/LayoutTests/css2.1/20110323/abspos-containing-block-initial-009e-expected.txt
new file mode 100644 (file)
index 0000000..203384b
--- /dev/null
@@ -0,0 +1,6 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x0
+  RenderBlock {HTML} at (0,0) size 800x0
+layer at (50,50) size 420x320
+  RenderBody {BODY} at (50,50) size 420x320 [border: (10px solid #000000)]
diff --git a/LayoutTests/css2.1/20110323/abspos-containing-block-initial-009e.htm b/LayoutTests/css2.1/20110323/abspos-containing-block-initial-009e.htm
new file mode 100644 (file)
index 0000000..903b4a3
--- /dev/null
@@ -0,0 +1,12 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html><head><title>CSS Test: Test for containing block for absolutely positioned elements being initial containing block</title>
+<link rel="author" title="Robert O'Callahan" href="mailto:robert@ocallahan.org">
+<link rel="author" title="Mozilla Corporation" href="http://mozilla.com/">
+<link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#containing-block-details">
+<link rel="match" href="abspos-containing-block-initial-009-ref.htm">
+<meta name="assert" content="If there is no such ancestor, the containing block is the initial containing block.">
+<meta name="flags" content="">
+</head><body style="position:absolute; width:50%; height:50%; top:50px; left:50px; margin:0; border:10px solid black;">
+
+
+</body></html>
\ No newline at end of file
diff --git a/LayoutTests/css2.1/20110323/abspos-containing-block-initial-009f-expected.png b/LayoutTests/css2.1/20110323/abspos-containing-block-initial-009f-expected.png
new file mode 100644 (file)
index 0000000..34ffc17
Binary files /dev/null and b/LayoutTests/css2.1/20110323/abspos-containing-block-initial-009f-expected.png differ
diff --git a/LayoutTests/css2.1/20110323/abspos-containing-block-initial-009f-expected.txt b/LayoutTests/css2.1/20110323/abspos-containing-block-initial-009f-expected.txt
new file mode 100644 (file)
index 0000000..1175a1c
--- /dev/null
@@ -0,0 +1,6 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x300
+  RenderBlock (relative positioned) {HTML} at (0,0) size 800x300
+layer at (50,50) size 420x320
+  RenderBody {BODY} at (50,50) size 420x320 [border: (10px solid #000000)]
diff --git a/LayoutTests/css2.1/20110323/abspos-containing-block-initial-009f.htm b/LayoutTests/css2.1/20110323/abspos-containing-block-initial-009f.htm
new file mode 100644 (file)
index 0000000..c42b3e5
--- /dev/null
@@ -0,0 +1,12 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html style="position:relative; height:50%;"><head><title>CSS Test: Test for containing block for absolutely positioned elements being initial containing block</title>
+<link rel="author" title="Robert O'Callahan" href="mailto:robert@ocallahan.org">
+<link rel="author" title="Mozilla Corporation" href="http://mozilla.com/">
+<link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#containing-block-details">
+<link rel="match" href="abspos-containing-block-initial-009-ref.htm">
+<meta name="assert" content="If there is no such ancestor, the containing block is the initial containing block.">
+<meta name="flags" content="">
+</head><body style="position:absolute; width:50%; top:50px; left:50px; height:100%; margin:0; border:10px solid black;">
+
+
+</body></html>
\ No newline at end of file
diff --git a/LayoutTests/css2.1/20110323/height-width-inline-table-001.htm b/LayoutTests/css2.1/20110323/height-width-inline-table-001.htm
new file mode 100644 (file)
index 0000000..28d8c60
--- /dev/null
@@ -0,0 +1,51 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html>
+
+ <head>
+        
+  <title>CSS Test: height and width of element set to 'display: inline-table'</title>
+
+  <!--
+  Inspired by
+  http://test.csswg.org/suites/css2.1/20101210/html4/empty-cells-applies-to-007.htm
+  -->
+
+  <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
+  <link rel="help" href="http://www.w3.org/TR/CSS21/tables.html#height-layout" title="17.5.3 Table height algorithms">
+  <link rel="bookmark" href="http://lists.w3.org/Archives/Public/www-style/2011Jan/0178.html" title="[CSS21] Question on section 17.6.1 The separated borders model and width of inline-table">
+  <meta name="flags" content="">
+  <meta name="assert" content="The height and width of an element styled with display set to 'inline-table' is given by its height and width properties when specified.">
+
+  <style type="text/css">
+  div#overlapped-red-reference
+  {
+  background-color: red;
+  height: 100px;
+  position: absolute;
+  width: 100px;
+  z-index: -1;
+  }
+
+  div#overlapping-green-test
+  {
+  background-color: green;
+  border: green solid 25px;
+  border-collapse: separate;
+  display: inline-table;
+  height: 50px;
+  width: 50px;        
+  }
+  </style>
+
+ </head>
+
+ <body>
+
+  <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
+
+  <div id="overlapped-red-reference"></div>
+
+  <div id="overlapping-green-test"></div>
+
+ </body>
+</html>
\ No newline at end of file
diff --git a/LayoutTests/css2.1/20110323/height-width-table-001.htm b/LayoutTests/css2.1/20110323/height-width-table-001.htm
new file mode 100644 (file)
index 0000000..9806222
--- /dev/null
@@ -0,0 +1,51 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html>
+
+ <head>
+        
+  <title>CSS Test: height and width of element set to 'display: table'</title>
+
+  <!--
+  Inspired by
+  http://test.csswg.org/suites/css2.1/20101210/html4/empty-cells-applies-to-007.htm
+  -->
+
+  <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
+  <link rel="help" href="http://www.w3.org/TR/CSS21/tables.html#height-layout" title="17.5.3 Table height algorithms">
+  <link rel="bookmark" href="http://lists.w3.org/Archives/Public/www-style/2011Jan/0178.html" title="[CSS21] Question on section 17.6.1 The separated borders model and width of inline-table">
+  <meta name="flags" content="">
+  <meta name="assert" content="The height and width of an element styled with display set to 'table' is given by its height and width properties when specified.">
+
+  <style type="text/css">
+  div#overlapped-red-reference
+  {
+  background-color: red;
+  height: 100px;
+  position: absolute;
+  width: 100px;
+  z-index: -1;
+  }
+
+  div#overlapping-green-test
+  {
+  background-color: green;
+  border: green solid 25px;
+  border-collapse: separate;
+  display: table;
+  height: 50px;
+  width: 50px;        
+  }
+  </style>
+
+ </head>
+
+ <body>
+
+  <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
+
+  <div id="overlapped-red-reference"></div>
+
+  <div id="overlapping-green-test"></div>
+
+ </body>
+</html>
\ No newline at end of file
similarity index 55%
rename from LayoutTests/platform/gtk/fast/backgrounds/table-root-expected.png
rename to LayoutTests/platform/chromium-linux/css2.1/20110323/abspos-containing-block-initial-001-expected.png
index c6aca40..74f8605 100644 (file)
Binary files a/LayoutTests/platform/gtk/fast/backgrounds/table-root-expected.png and b/LayoutTests/platform/chromium-linux/css2.1/20110323/abspos-containing-block-initial-001-expected.png differ
diff --git a/LayoutTests/platform/chromium-linux/css2.1/20110323/abspos-containing-block-initial-001-expected.txt b/LayoutTests/platform/chromium-linux/css2.1/20110323/abspos-containing-block-initial-001-expected.txt
new file mode 100644 (file)
index 0000000..053cc28
--- /dev/null
@@ -0,0 +1,14 @@
+layer at (0,0) size 785x10110
+  RenderView at (0,0) size 785x600
+layer at (10,10) size 765x10100
+  RenderBlock {HTML} at (10,10) size 765x10100 [border: (20px solid #000000)]
+    RenderBody {BODY} at (50,50) size 665x10000
+layer at (60,0) size 100x100
+  RenderBlock (positioned) {DIV} at (60,0) size 100x100 [bgcolor=#FFFF00]
+layer at (685,60) size 100x100
+  RenderBlock (positioned) {DIV} at (685,60) size 100x100 [bgcolor=#FFA500]
+layer at (60,500) size 100x100
+  RenderBlock (positioned) {DIV} at (60,500) size 100x100 [bgcolor=#A52A2A]
+layer at (0,60) size 100x100
+  RenderBlock (positioned) {DIV} at (0,60) size 100x100 [bgcolor=#FFC0CB]
+scrolled to 0,50
diff --git a/LayoutTests/platform/chromium-linux/css2.1/20110323/abspos-containing-block-initial-001-ref-expected.png b/LayoutTests/platform/chromium-linux/css2.1/20110323/abspos-containing-block-initial-001-ref-expected.png
new file mode 100644 (file)
index 0000000..74f8605
Binary files /dev/null and b/LayoutTests/platform/chromium-linux/css2.1/20110323/abspos-containing-block-initial-001-ref-expected.png differ
diff --git a/LayoutTests/platform/chromium-linux/css2.1/20110323/abspos-containing-block-initial-001-ref-expected.txt b/LayoutTests/platform/chromium-linux/css2.1/20110323/abspos-containing-block-initial-001-ref-expected.txt
new file mode 100644 (file)
index 0000000..202fbab
--- /dev/null
@@ -0,0 +1,15 @@
+layer at (0,0) size 785x10120
+  RenderView at (0,0) size 785x600
+layer at (0,0) size 785x10120
+  RenderBlock {HTML} at (0,0) size 785x10120
+    RenderBody {BODY} at (0,10) size 785x10100
+      RenderBlock {DIV} at (10,0) size 765x10100 [border: (20px solid #000000)]
+layer at (60,0) size 100x100
+  RenderBlock (positioned) {DIV} at (60,0) size 100x100 [bgcolor=#FFFF00]
+layer at (685,60) size 100x100
+  RenderBlock (positioned) {DIV} at (685,60) size 100x100 [bgcolor=#FFA500]
+layer at (60,500) size 100x100
+  RenderBlock (positioned) {DIV} at (60,500) size 100x100 [bgcolor=#A52A2A]
+layer at (0,60) size 100x100
+  RenderBlock (positioned) {DIV} at (0,60) size 100x100 [bgcolor=#FFC0CB]
+scrolled to 0,50
diff --git a/LayoutTests/platform/chromium-linux/css2.1/20110323/abspos-containing-block-initial-007-expected.png b/LayoutTests/platform/chromium-linux/css2.1/20110323/abspos-containing-block-initial-007-expected.png
new file mode 100644 (file)
index 0000000..b13b732
Binary files /dev/null and b/LayoutTests/platform/chromium-linux/css2.1/20110323/abspos-containing-block-initial-007-expected.png differ
diff --git a/LayoutTests/platform/chromium-linux/css2.1/20110323/abspos-containing-block-initial-007-expected.txt b/LayoutTests/platform/chromium-linux/css2.1/20110323/abspos-containing-block-initial-007-expected.txt
new file mode 100644 (file)
index 0000000..244d0e3
--- /dev/null
@@ -0,0 +1,6 @@
+layer at (0,0) size 900x585
+  RenderView at (0,0) size 800x585
+layer at (100,100) size 800x120
+  RenderBlock (relative positioned) {HTML} at (0,0) size 800x120 [border: (10px solid #000000)]
+layer at (110,160) size 20x50
+  RenderBody {BODY} at (10,60) size 20x50 [border: (10px solid #FFA500)]
diff --git a/LayoutTests/platform/chromium-linux/css2.1/20110323/abspos-containing-block-initial-007-ref-expected.png b/LayoutTests/platform/chromium-linux/css2.1/20110323/abspos-containing-block-initial-007-ref-expected.png
new file mode 100644 (file)
index 0000000..b13b732
Binary files /dev/null and b/LayoutTests/platform/chromium-linux/css2.1/20110323/abspos-containing-block-initial-007-ref-expected.png differ
diff --git a/LayoutTests/platform/chromium-linux/css2.1/20110323/abspos-containing-block-initial-007-ref-expected.txt b/LayoutTests/platform/chromium-linux/css2.1/20110323/abspos-containing-block-initial-007-ref-expected.txt
new file mode 100644 (file)
index 0000000..625436b
--- /dev/null
@@ -0,0 +1,9 @@
+layer at (0,0) size 900x585
+  RenderView at (0,0) size 800x585
+layer at (0,0) size 800x120
+  RenderBlock {HTML} at (0,0) size 800x120
+    RenderBody {BODY} at (0,0) size 800x120
+layer at (100,100) size 800x120
+  RenderBlock (relative positioned) {DIV} at (0,0) size 800x120 [border: (10px solid #000000)]
+layer at (110,160) size 20x50
+  RenderBlock (positioned) {DIV} at (10,60) size 20x50 [border: (10px solid #FFA500)]
diff --git a/LayoutTests/platform/chromium-linux/css2.1/20110323/height-width-inline-table-001-expected.png b/LayoutTests/platform/chromium-linux/css2.1/20110323/height-width-inline-table-001-expected.png
new file mode 100644 (file)
index 0000000..81a1545
Binary files /dev/null and b/LayoutTests/platform/chromium-linux/css2.1/20110323/height-width-inline-table-001-expected.png differ
diff --git a/LayoutTests/platform/chromium-linux/css2.1/20110323/height-width-inline-table-001-expected.txt b/LayoutTests/platform/chromium-linux/css2.1/20110323/height-width-inline-table-001-expected.txt
new file mode 100644 (file)
index 0000000..37ad7e1
--- /dev/null
@@ -0,0 +1,19 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x165 layerType: background only
+layer at (8,52) size 100x100
+  RenderBlock (positioned) zI: -1 {DIV} at (8,52) size 100x100 [bgcolor=#FF0000]
+layer at (0,0) size 800x165 layerType: foreground only
+  RenderBlock {HTML} at (0,0) size 800x165
+    RenderBody {BODY} at (8,16) size 784x141
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 282x19
+          text run at (0,0) width 282: "Test passes if there is a filled green square and "
+        RenderInline {STRONG} at (0,0) size 42x19
+          RenderText {#text} at (282,0) size 42x19
+            text run at (282,0) width 42: "no red"
+        RenderText {#text} at (324,0) size 4x19
+          text run at (324,0) width 4: "."
+      RenderBlock (anonymous) at (0,36) size 784x105
+        RenderTable {DIV} at (0,0) size 100x100 [bgcolor=#008000] [border: (25px solid #008000)]
+        RenderText {#text} at (0,0) size 0x0
diff --git a/LayoutTests/platform/chromium-linux/css2.1/20110323/height-width-table-001-expected.png b/LayoutTests/platform/chromium-linux/css2.1/20110323/height-width-table-001-expected.png
new file mode 100644 (file)
index 0000000..81a1545
Binary files /dev/null and b/LayoutTests/platform/chromium-linux/css2.1/20110323/height-width-table-001-expected.png differ
diff --git a/LayoutTests/platform/chromium-linux/css2.1/20110323/height-width-table-001-expected.txt b/LayoutTests/platform/chromium-linux/css2.1/20110323/height-width-table-001-expected.txt
new file mode 100644 (file)
index 0000000..57a494b
--- /dev/null
@@ -0,0 +1,17 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x160 layerType: background only
+layer at (8,52) size 100x100
+  RenderBlock (positioned) zI: -1 {DIV} at (8,52) size 100x100 [bgcolor=#FF0000]
+layer at (0,0) size 800x160 layerType: foreground only
+  RenderBlock {HTML} at (0,0) size 800x160
+    RenderBody {BODY} at (8,16) size 784x136
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 282x19
+          text run at (0,0) width 282: "Test passes if there is a filled green square and "
+        RenderInline {STRONG} at (0,0) size 42x19
+          RenderText {#text} at (282,0) size 42x19
+            text run at (282,0) width 42: "no red"
+        RenderText {#text} at (324,0) size 4x19
+          text run at (324,0) width 4: "."
+      RenderTable {DIV} at (0,36) size 100x100 [bgcolor=#008000] [border: (25px solid #008000)]
diff --git a/LayoutTests/platform/gtk/fast/backgrounds/table-root-expected.txt b/LayoutTests/platform/gtk/fast/backgrounds/table-root-expected.txt
deleted file mode 100644 (file)
index 5a26e5d..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-layer at (0,0) size 800x600
-  RenderView at (0,0) size 800x600
-layer at (100,100) size 100x100
-  RenderTable {HTML} at (100,100) size 100x100 [bgcolor=#FFFF00] [border: (10px solid #000000)]
-    RenderTableSection (anonymous) at (10,10) size 80x80
-      RenderTableRow (anonymous) at (0,0) size 80x80
-        RenderTableCell (anonymous) at (0,0) size 80x8 [r=0 c=0 rs=1 cs=1]
-          RenderBody {BODY} at (8,8) size 64x0
diff --git a/LayoutTests/platform/mac/fast/backgrounds/positioned-root-expected.png b/LayoutTests/platform/mac/fast/backgrounds/positioned-root-expected.png
deleted file mode 100644 (file)
index e1c1cb1..0000000
Binary files a/LayoutTests/platform/mac/fast/backgrounds/positioned-root-expected.png and /dev/null differ
diff --git a/LayoutTests/platform/mac/fast/backgrounds/table-root-expected.png b/LayoutTests/platform/mac/fast/backgrounds/table-root-expected.png
deleted file mode 100644 (file)
index 20883b7..0000000
Binary files a/LayoutTests/platform/mac/fast/backgrounds/table-root-expected.png and /dev/null differ
diff --git a/LayoutTests/platform/mac/fast/backgrounds/table-root-expected.txt b/LayoutTests/platform/mac/fast/backgrounds/table-root-expected.txt
deleted file mode 100644 (file)
index 5a26e5d..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-layer at (0,0) size 800x600
-  RenderView at (0,0) size 800x600
-layer at (100,100) size 100x100
-  RenderTable {HTML} at (100,100) size 100x100 [bgcolor=#FFFF00] [border: (10px solid #000000)]
-    RenderTableSection (anonymous) at (10,10) size 80x80
-      RenderTableRow (anonymous) at (0,0) size 80x80
-        RenderTableCell (anonymous) at (0,0) size 80x8 [r=0 c=0 rs=1 cs=1]
-          RenderBody {BODY} at (8,8) size 64x0
diff --git a/LayoutTests/platform/qt/fast/backgrounds/positioned-root-expected.png b/LayoutTests/platform/qt/fast/backgrounds/positioned-root-expected.png
deleted file mode 100644 (file)
index 5fc394b..0000000
Binary files a/LayoutTests/platform/qt/fast/backgrounds/positioned-root-expected.png and /dev/null differ
diff --git a/LayoutTests/platform/qt/fast/backgrounds/positioned-root-expected.txt b/LayoutTests/platform/qt/fast/backgrounds/positioned-root-expected.txt
deleted file mode 100644 (file)
index 2801573..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-layer at (0,0) size 800x600
-  RenderView at (0,0) size 800x600
-layer at (100,100) size 120x120
-  RenderBlock (positioned) {HTML} at (100,100) size 120x120 [bgcolor=#FFFF00] [border: (10px solid #000000)]
-    RenderBody {BODY} at (18,18) size 84x0
diff --git a/LayoutTests/platform/qt/fast/backgrounds/table-root-expected.png b/LayoutTests/platform/qt/fast/backgrounds/table-root-expected.png
deleted file mode 100644 (file)
index 02649aa..0000000
Binary files a/LayoutTests/platform/qt/fast/backgrounds/table-root-expected.png and /dev/null differ
diff --git a/LayoutTests/platform/qt/fast/backgrounds/table-root-expected.txt b/LayoutTests/platform/qt/fast/backgrounds/table-root-expected.txt
deleted file mode 100644 (file)
index 5a26e5d..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-layer at (0,0) size 800x600
-  RenderView at (0,0) size 800x600
-layer at (100,100) size 100x100
-  RenderTable {HTML} at (100,100) size 100x100 [bgcolor=#FFFF00] [border: (10px solid #000000)]
-    RenderTableSection (anonymous) at (10,10) size 80x80
-      RenderTableRow (anonymous) at (0,0) size 80x80
-        RenderTableCell (anonymous) at (0,0) size 80x8 [r=0 c=0 rs=1 cs=1]
-          RenderBody {BODY} at (8,8) size 64x0
index c8c523e..0e488e8 100644 (file)
@@ -1,3 +1,27 @@
+2011-10-08  Robert Hogan  <robert@webkit.org>
+
+        CSS 2.1 failure: height-width-table-001.htm
+        https://bugs.webkit.org/show_bug.cgi?id=69709
+
+        Reviewed by Simon Fraser.
+
+        CSS 2.1 expects CSS table elements to treat fixed height/width as
+        excluding table borders, but HTML table elements to treat fixed height/width as
+        including them.
+        
+        See http://lists.w3.org/Archives/Public/www-style/2011Jan/0178.html
+            http://lists.w3.org/Archives/Public/public-css-testsuite/2011Oct/0005.html
+            
+        It looks like some clarification is pending in the specs, but the new behaviour
+        lets WebKit pass the following tests in the suite CSS and also match FF:
+          height-width-table-001.htm
+          height-width-inline-table-001.htm
+          abspos-containing-block-initial-004d.htm
+
+        * rendering/RenderTable.cpp:
+        (WebCore::RenderTable::computeLogicalWidth):
+        (WebCore::RenderTable::layout):
+
 2011-10-15  Darin Adler  <darin@apple.com>
 
         Make toHTMLElement fail to compile if you try to use it on an HTMLElement*
index 10ba1a0..28b836c 100644 (file)
@@ -237,7 +237,15 @@ void RenderTable::computeLogicalWidth()
     LengthType logicalWidthType = style()->logicalWidth().type();
     if (logicalWidthType > Relative && style()->logicalWidth().isPositive()) {
         // Percent or fixed table
-        setLogicalWidth(style()->logicalWidth().calcMinValue(containerWidthInInlineDirection));
+        // HTML tables size as though CSS width includes border/padding, CSS tables do not.
+        LayoutUnit borders = 0;
+        if (!node()->hasTagName(tableTag)) {
+            bool collapsing = collapseBorders();
+            LayoutUnit borderAndPaddingBefore = borderBefore() + (collapsing ? 0 : paddingBefore());
+            LayoutUnit borderAndPaddingAfter = borderAfter() + (collapsing ? 0 : paddingAfter());
+            borders = borderAndPaddingBefore + borderAndPaddingAfter;
+        }
+        setLogicalWidth(style()->logicalWidth().calcMinValue(containerWidthInInlineDirection) + borders);
         setLogicalWidth(max(minPreferredLogicalWidth(), logicalWidth()));
     } else {
         // Subtract out any fixed margins from our available width for auto width tables.
@@ -360,8 +368,9 @@ void RenderTable::layout()
     Length logicalHeightLength = style()->logicalHeight();
     LayoutUnit computedLogicalHeight = 0;
     if (logicalHeightLength.isFixed()) {
-        // Tables size as though CSS height includes border/padding.
-        computedLogicalHeight = logicalHeightLength.value() - (borderAndPaddingBefore + borderAndPaddingAfter);
+        // HTML tables size as though CSS height includes border/padding, CSS tables do not.
+        LayoutUnit borders = node()->hasTagName(tableTag) ? (borderAndPaddingBefore + borderAndPaddingAfter) : 0;
+        computedLogicalHeight = logicalHeightLength.value() - borders;
     } else if (logicalHeightLength.isPercent())
         computedLogicalHeight = computePercentageLogicalHeight(logicalHeightLength);
     computedLogicalHeight = max<LayoutUnit>(0, computedLogicalHeight);