CSS 2.1 failure: overflow-applies-to-001 fails
https://bugs.webkit.org/show_bug.cgi?id=93148
Reviewed by Eric Seidel.
Source/WebCore:
Overflow no longer applies to table-rows or table-row-groups, it only applies
to block containers: http://www.w3.org/TR/CSS21/visufx.html#overflow
Tests: css2.1/20110323/overflow-applies-to-001.htm
css2.1/20110323/overflow-applies-to-002.htm
css2.1/20110323/overflow-applies-to-003.htm
css2.1/20110323/overflow-applies-to-004.htm
css2.1/20110323/overflow-applies-to-005.htm
css2.1/20110323/overflow-applies-to-006.htm
css2.1/20110323/overflow-applies-to-007.htm
css2.1/20110323/overflow-applies-to-008.htm
css2.1/20110323/overflow-applies-to-009.htm
css2.1/20110323/overflow-applies-to-010.htm
css2.1/20110323/overflow-applies-to-012.htm
css2.1/20110323/overflow-applies-to-013.htm
css2.1/20110323/overflow-applies-to-014.htm
css2.1/20110323/overflow-applies-to-015.htm
* rendering/RenderBox.cpp:
(WebCore::RenderBox::updateBoxModelInfoFromStyle):
LayoutTests:
* css2.1/20110323/overflow-applies-to-001-expected.html: Added.
* css2.1/20110323/overflow-applies-to-001.htm: Added.
* css2.1/20110323/overflow-applies-to-002-expected.html: Added.
* css2.1/20110323/overflow-applies-to-002.htm: Added.
* css2.1/20110323/overflow-applies-to-003-expected.html: Added.
* css2.1/20110323/overflow-applies-to-003.htm: Added.
* css2.1/20110323/overflow-applies-to-004-expected.html: Added.
* css2.1/20110323/overflow-applies-to-004.htm: Added.
* css2.1/20110323/overflow-applies-to-005-expected.html: Added.
* css2.1/20110323/overflow-applies-to-005.htm: Added.
* css2.1/20110323/overflow-applies-to-006-expected.html: Added.
* css2.1/20110323/overflow-applies-to-006.htm: Added.
* css2.1/20110323/overflow-applies-to-007-expected.html: Added.
* css2.1/20110323/overflow-applies-to-007.htm: Added.
* css2.1/20110323/overflow-applies-to-008-expected.html: Added.
* css2.1/20110323/overflow-applies-to-008.htm: Added.
* css2.1/20110323/overflow-applies-to-009-expected.html: Added.
* css2.1/20110323/overflow-applies-to-009.htm: Added.
* css2.1/20110323/overflow-applies-to-010-expected.html: Added.
* css2.1/20110323/overflow-applies-to-010.htm: Added.
* css2.1/20110323/overflow-applies-to-012-expected.html: Added.
* css2.1/20110323/overflow-applies-to-012.htm: Added.
* css2.1/20110323/overflow-applies-to-013-expected.html: Added.
* css2.1/20110323/overflow-applies-to-013.htm: Added.
* css2.1/20110323/overflow-applies-to-014-expected.html: Added.
* css2.1/20110323/overflow-applies-to-014.htm: Added.
* css2.1/20110323/overflow-applies-to-015-expected.html: Added.
* css2.1/20110323/overflow-applies-to-015.htm: Added.
Tests from the CSS test suite.
* fast/css/nested-layers-with-hover.html: Made this dumpAsText/waitUntilDone - the test relies on a simulated hover so
wasn't meaningful as a rendertree.
* platform/chromium-linux/tables/mozilla_expected_failures/bugs/bug106966-expected.png:
* platform/chromium-linux/tables/mozilla_expected_failures/marvin/table_overflow_hidden_tbody-expected.png:
* platform/chromium-linux/tables/mozilla_expected_failures/marvin/table_overflow_hidden_tr-expected.png:
* platform/chromium-win/fast/css/nested-layers-with-hover-expected.txt:
* platform/chromium-win/tables/mozilla_expected_failures/bugs/bug106966-expected.txt:
* platform/chromium-win/tables/mozilla_expected_failures/marvin/table_overflow_hidden_tbody-expected.txt:
* platform/chromium-win/tables/mozilla_expected_failures/marvin/table_overflow_hidden_tr-expected.txt:
These are all progressions and now render the same as FF and Opera.
* platform/chromium/TestExpectations:
* platform/efl/TestExpectations:
* platform/gtk/TestExpectations:
* platform/mac/TestExpectations:
* platform/qt/TestExpectations:
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@124697 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/LayoutTests/ChangeLog b/LayoutTests/ChangeLog
index a94049f..c956189 100644
--- a/LayoutTests/ChangeLog
+++ b/LayoutTests/ChangeLog
@@ -1,3 +1,58 @@
+2012-08-03 Robert Hogan <robert@webkit.org>
+
+ CSS 2.1 failure: overflow-applies-to-001 fails
+ https://bugs.webkit.org/show_bug.cgi?id=93148
+
+ Reviewed by Eric Seidel.
+
+ * css2.1/20110323/overflow-applies-to-001-expected.html: Added.
+ * css2.1/20110323/overflow-applies-to-001.htm: Added.
+ * css2.1/20110323/overflow-applies-to-002-expected.html: Added.
+ * css2.1/20110323/overflow-applies-to-002.htm: Added.
+ * css2.1/20110323/overflow-applies-to-003-expected.html: Added.
+ * css2.1/20110323/overflow-applies-to-003.htm: Added.
+ * css2.1/20110323/overflow-applies-to-004-expected.html: Added.
+ * css2.1/20110323/overflow-applies-to-004.htm: Added.
+ * css2.1/20110323/overflow-applies-to-005-expected.html: Added.
+ * css2.1/20110323/overflow-applies-to-005.htm: Added.
+ * css2.1/20110323/overflow-applies-to-006-expected.html: Added.
+ * css2.1/20110323/overflow-applies-to-006.htm: Added.
+ * css2.1/20110323/overflow-applies-to-007-expected.html: Added.
+ * css2.1/20110323/overflow-applies-to-007.htm: Added.
+ * css2.1/20110323/overflow-applies-to-008-expected.html: Added.
+ * css2.1/20110323/overflow-applies-to-008.htm: Added.
+ * css2.1/20110323/overflow-applies-to-009-expected.html: Added.
+ * css2.1/20110323/overflow-applies-to-009.htm: Added.
+ * css2.1/20110323/overflow-applies-to-010-expected.html: Added.
+ * css2.1/20110323/overflow-applies-to-010.htm: Added.
+ * css2.1/20110323/overflow-applies-to-012-expected.html: Added.
+ * css2.1/20110323/overflow-applies-to-012.htm: Added.
+ * css2.1/20110323/overflow-applies-to-013-expected.html: Added.
+ * css2.1/20110323/overflow-applies-to-013.htm: Added.
+ * css2.1/20110323/overflow-applies-to-014-expected.html: Added.
+ * css2.1/20110323/overflow-applies-to-014.htm: Added.
+ * css2.1/20110323/overflow-applies-to-015-expected.html: Added.
+ * css2.1/20110323/overflow-applies-to-015.htm: Added.
+ Tests from the CSS test suite.
+
+ * fast/css/nested-layers-with-hover.html: Made this dumpAsText/waitUntilDone - the test relies on a simulated hover so
+ wasn't meaningful as a rendertree.
+
+ * platform/chromium-linux/tables/mozilla_expected_failures/bugs/bug106966-expected.png:
+ * platform/chromium-linux/tables/mozilla_expected_failures/marvin/table_overflow_hidden_tbody-expected.png:
+ * platform/chromium-linux/tables/mozilla_expected_failures/marvin/table_overflow_hidden_tr-expected.png:
+ * platform/chromium-win/fast/css/nested-layers-with-hover-expected.txt:
+ * platform/chromium-win/tables/mozilla_expected_failures/bugs/bug106966-expected.txt:
+ * platform/chromium-win/tables/mozilla_expected_failures/marvin/table_overflow_hidden_tbody-expected.txt:
+ * platform/chromium-win/tables/mozilla_expected_failures/marvin/table_overflow_hidden_tr-expected.txt:
+ These are all progressions and now render the same as FF and Opera.
+
+ * platform/chromium/TestExpectations:
+ * platform/efl/TestExpectations:
+ * platform/gtk/TestExpectations:
+ * platform/mac/TestExpectations:
+ * platform/qt/TestExpectations:
+
2012-08-04 Mike West <mkwst@chromium.org>
Unskip http/tests/security/contentSecurityPolicy tests on various ports.
diff --git a/LayoutTests/css2.1/20110323/overflow-applies-to-001-expected.html b/LayoutTests/css2.1/20110323/overflow-applies-to-001-expected.html
new file mode 100644
index 0000000..8a5841a
--- /dev/null
+++ b/LayoutTests/css2.1/20110323/overflow-applies-to-001-expected.html
@@ -0,0 +1,40 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html>
+ <head>
+ <title>CSS Test: Reference Result</title>
+ <meta name="flags" content="ahem">
+ <style type="text/css">
+ #table
+ {
+ border: 5px solid transparent;
+ color: white;
+ display: table;
+ font: 20px/1em Ahem;
+ height: 5em;
+ table-layout: fixed;
+ width: 5em;
+ }
+ #row
+ {
+ display: table-row;
+ }
+ #cell
+ {
+ display: table-cell;
+ white-space: nowrap;
+ }
+ #span2
+ {
+ color: green;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if there is a green box below.</p>
+ <div id="table">
+ <div id="row">
+ <div id="cell"><span>XXXXX</span><span id="span2">XXXXX</span></div>
+ </div>
+ </div>
+ </body>
+</html>
\ No newline at end of file
diff --git a/LayoutTests/css2.1/20110323/overflow-applies-to-001.htm b/LayoutTests/css2.1/20110323/overflow-applies-to-001.htm
new file mode 100644
index 0000000..495f449
--- /dev/null
+++ b/LayoutTests/css2.1/20110323/overflow-applies-to-001.htm
@@ -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: overflow applied to elements with 'display' set to 'table-row-group'</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/">
+ <link rel="help" href="http://www.w3.org/TR/CSS21/visufx.html#propdef-overflow">
+ <link rel="help" href="http://www.w3.org/TR/CSS21/visufx.html#overflow">
+ <meta name="flags" content="ahem">
+ <meta name="assert" content="The 'overflow' property does not apply to elements with 'display' set to 'table-row-group'.">
+ <style type="text/css">
+ #test
+ {
+ display: table-row-group;
+ overflow: hidden;
+ }
+ #table
+ {
+ border: 5px solid transparent;
+ color: white;
+ display: table;
+ font: 20px/1em Ahem;
+ height: 5em;
+ table-layout: fixed;
+ width: 5em;
+ }
+ #row
+ {
+ display: table-row;
+ }
+ #cell
+ {
+ display: table-cell;
+ white-space: nowrap;
+ }
+ #span2
+ {
+ color: green;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if there is a green box below.</p>
+ <div id="table">
+ <div id="test">
+ <div id="row">
+ <div id="cell"><span>XXXXX</span><span id="span2">XXXXX</span></div>
+ </div>
+ </div>
+ </div>
+ </body>
+</html>
\ No newline at end of file
diff --git a/LayoutTests/css2.1/20110323/overflow-applies-to-002-expected.html b/LayoutTests/css2.1/20110323/overflow-applies-to-002-expected.html
new file mode 100644
index 0000000..8a5841a
--- /dev/null
+++ b/LayoutTests/css2.1/20110323/overflow-applies-to-002-expected.html
@@ -0,0 +1,40 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html>
+ <head>
+ <title>CSS Test: Reference Result</title>
+ <meta name="flags" content="ahem">
+ <style type="text/css">
+ #table
+ {
+ border: 5px solid transparent;
+ color: white;
+ display: table;
+ font: 20px/1em Ahem;
+ height: 5em;
+ table-layout: fixed;
+ width: 5em;
+ }
+ #row
+ {
+ display: table-row;
+ }
+ #cell
+ {
+ display: table-cell;
+ white-space: nowrap;
+ }
+ #span2
+ {
+ color: green;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if there is a green box below.</p>
+ <div id="table">
+ <div id="row">
+ <div id="cell"><span>XXXXX</span><span id="span2">XXXXX</span></div>
+ </div>
+ </div>
+ </body>
+</html>
\ No newline at end of file
diff --git a/LayoutTests/css2.1/20110323/overflow-applies-to-002.htm b/LayoutTests/css2.1/20110323/overflow-applies-to-002.htm
new file mode 100644
index 0000000..17aea93
--- /dev/null
+++ b/LayoutTests/css2.1/20110323/overflow-applies-to-002.htm
@@ -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: overflow applied to elements with 'display' set to 'table-header-group'</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/">
+ <link rel="help" href="http://www.w3.org/TR/CSS21/visufx.html#propdef-overflow">
+ <link rel="help" href="http://www.w3.org/TR/CSS21/visufx.html#overflow">
+ <meta name="flags" content="ahem">
+ <meta name="assert" content="The 'overflow' property does not apply to elements with 'display' set to 'table-header-group'.">
+ <style type="text/css">
+ #test
+ {
+ display: table-header-group;
+ overflow: hidden;
+ }
+ #table
+ {
+ border: 5px solid transparent;
+ color: white;
+ display: table;
+ font: 20px/1em Ahem;
+ height: 5em;
+ table-layout: fixed;
+ width: 5em;
+ }
+ #row
+ {
+ display: table-row;
+ }
+ #cell
+ {
+ display: table-cell;
+ white-space: nowrap;
+ }
+ #span2
+ {
+ color: green;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if there is a green box below.</p>
+ <div id="table">
+ <div id="test">
+ <div id="row">
+ <div id="cell"><span>XXXXX</span><span id="span2">XXXXX</span></div>
+ </div>
+ </div>
+ </div>
+ </body>
+</html>
\ No newline at end of file
diff --git a/LayoutTests/css2.1/20110323/overflow-applies-to-003-expected.html b/LayoutTests/css2.1/20110323/overflow-applies-to-003-expected.html
new file mode 100644
index 0000000..8a5841a
--- /dev/null
+++ b/LayoutTests/css2.1/20110323/overflow-applies-to-003-expected.html
@@ -0,0 +1,40 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html>
+ <head>
+ <title>CSS Test: Reference Result</title>
+ <meta name="flags" content="ahem">
+ <style type="text/css">
+ #table
+ {
+ border: 5px solid transparent;
+ color: white;
+ display: table;
+ font: 20px/1em Ahem;
+ height: 5em;
+ table-layout: fixed;
+ width: 5em;
+ }
+ #row
+ {
+ display: table-row;
+ }
+ #cell
+ {
+ display: table-cell;
+ white-space: nowrap;
+ }
+ #span2
+ {
+ color: green;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if there is a green box below.</p>
+ <div id="table">
+ <div id="row">
+ <div id="cell"><span>XXXXX</span><span id="span2">XXXXX</span></div>
+ </div>
+ </div>
+ </body>
+</html>
\ No newline at end of file
diff --git a/LayoutTests/css2.1/20110323/overflow-applies-to-003.htm b/LayoutTests/css2.1/20110323/overflow-applies-to-003.htm
new file mode 100644
index 0000000..24cdf96
--- /dev/null
+++ b/LayoutTests/css2.1/20110323/overflow-applies-to-003.htm
@@ -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: overflow applied to elements with 'display' set to 'table-footer-group'</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/">
+ <link rel="help" href="http://www.w3.org/TR/CSS21/visufx.html#propdef-overflow">
+ <link rel="help" href="http://www.w3.org/TR/CSS21/visufx.html#overflow">
+ <meta name="flags" content="ahem">
+ <meta name="assert" content="The 'overflow' property does not apply to elements with 'display' set to 'table-footer-group'.">
+ <style type="text/css">
+ #test
+ {
+ display: table-footer-group;
+ overflow: hidden;
+ }
+ #table
+ {
+ border: 5px solid transparent;
+ color: white;
+ display: table;
+ font: 20px/1em Ahem;
+ height: 5em;
+ table-layout: fixed;
+ width: 5em;
+ }
+ #row
+ {
+ display: table-row;
+ }
+ #cell
+ {
+ display: table-cell;
+ white-space: nowrap;
+ }
+ #span2
+ {
+ color: green;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if there is a green box below.</p>
+ <div id="table">
+ <div id="test">
+ <div id="row">
+ <div id="cell"><span>XXXXX</span><span id="span2">XXXXX</span></div>
+ </div>
+ </div>
+ </div>
+ </body>
+</html>
\ No newline at end of file
diff --git a/LayoutTests/css2.1/20110323/overflow-applies-to-004-expected.html b/LayoutTests/css2.1/20110323/overflow-applies-to-004-expected.html
new file mode 100644
index 0000000..8a5841a
--- /dev/null
+++ b/LayoutTests/css2.1/20110323/overflow-applies-to-004-expected.html
@@ -0,0 +1,40 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html>
+ <head>
+ <title>CSS Test: Reference Result</title>
+ <meta name="flags" content="ahem">
+ <style type="text/css">
+ #table
+ {
+ border: 5px solid transparent;
+ color: white;
+ display: table;
+ font: 20px/1em Ahem;
+ height: 5em;
+ table-layout: fixed;
+ width: 5em;
+ }
+ #row
+ {
+ display: table-row;
+ }
+ #cell
+ {
+ display: table-cell;
+ white-space: nowrap;
+ }
+ #span2
+ {
+ color: green;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if there is a green box below.</p>
+ <div id="table">
+ <div id="row">
+ <div id="cell"><span>XXXXX</span><span id="span2">XXXXX</span></div>
+ </div>
+ </div>
+ </body>
+</html>
\ No newline at end of file
diff --git a/LayoutTests/css2.1/20110323/overflow-applies-to-004.htm b/LayoutTests/css2.1/20110323/overflow-applies-to-004.htm
new file mode 100644
index 0000000..401d35c
--- /dev/null
+++ b/LayoutTests/css2.1/20110323/overflow-applies-to-004.htm
@@ -0,0 +1,45 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html>
+ <head>
+ <title>CSS Test: overflow applied to elements with 'display' set to 'table-row'</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/">
+ <link rel="help" href="http://www.w3.org/TR/CSS21/visufx.html#propdef-overflow">
+ <link rel="help" href="http://www.w3.org/TR/CSS21/visufx.html#overflow">
+ <meta name="flags" content="ahem">
+ <meta name="assert" content="The 'overflow' property does not apply to elements with 'display' set to 'table-row'.">
+ <style type="text/css">
+ #table
+ {
+ border: 5px solid transparent;
+ color: white;
+ display: table;
+ font: 20px/1em Ahem;
+ height: 5em;
+ table-layout: fixed;
+ width: 5em;
+ }
+ #row
+ {
+ display: table-row;
+ overflow: hidden;
+ }
+ #cell
+ {
+ display: table-cell;
+ white-space: nowrap;
+ }
+ #span2
+ {
+ color: green;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if there is a green box below.</p>
+ <div id="table">
+ <div id="row">
+ <div id="cell"><span>XXXXX</span><span id="span2">XXXXX</span></div>
+ </div>
+ </div>
+ </body>
+</html>
\ No newline at end of file
diff --git a/LayoutTests/css2.1/20110323/overflow-applies-to-005-expected.html b/LayoutTests/css2.1/20110323/overflow-applies-to-005-expected.html
new file mode 100644
index 0000000..8a5841a
--- /dev/null
+++ b/LayoutTests/css2.1/20110323/overflow-applies-to-005-expected.html
@@ -0,0 +1,40 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html>
+ <head>
+ <title>CSS Test: Reference Result</title>
+ <meta name="flags" content="ahem">
+ <style type="text/css">
+ #table
+ {
+ border: 5px solid transparent;
+ color: white;
+ display: table;
+ font: 20px/1em Ahem;
+ height: 5em;
+ table-layout: fixed;
+ width: 5em;
+ }
+ #row
+ {
+ display: table-row;
+ }
+ #cell
+ {
+ display: table-cell;
+ white-space: nowrap;
+ }
+ #span2
+ {
+ color: green;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if there is a green box below.</p>
+ <div id="table">
+ <div id="row">
+ <div id="cell"><span>XXXXX</span><span id="span2">XXXXX</span></div>
+ </div>
+ </div>
+ </body>
+</html>
\ No newline at end of file
diff --git a/LayoutTests/css2.1/20110323/overflow-applies-to-005.htm b/LayoutTests/css2.1/20110323/overflow-applies-to-005.htm
new file mode 100644
index 0000000..41d5f2c
--- /dev/null
+++ b/LayoutTests/css2.1/20110323/overflow-applies-to-005.htm
@@ -0,0 +1,50 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html>
+ <head>
+ <title>CSS Test: overflow applied to elements with 'display' set to 'table-column-group'</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/">
+ <link rel="help" href="http://www.w3.org/TR/CSS21/visufx.html#propdef-overflow">
+ <link rel="help" href="http://www.w3.org/TR/CSS21/visufx.html#overflow">
+ <meta name="flags" content="ahem">
+ <meta name="assert" content="The 'overflow' property does not apply to elements with 'display' set to 'table-column-group'.">
+ <style type="text/css">
+ #test
+ {
+ display: table-column-group;
+ overflow: hidden;
+ }
+ #table
+ {
+ border: 5px solid transparent;
+ color: white;
+ display: table;
+ font: 20px/1em Ahem;
+ height: 5em;
+ table-layout: fixed;
+ width: 5em;
+ }
+ #row
+ {
+ display: table-row;
+ }
+ #cell
+ {
+ display: table-cell;
+ white-space: nowrap;
+ }
+ #span2
+ {
+ color: green;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if there is a green box below.</p>
+ <div id="table">
+ <div id="test"></div>
+ <div id="row">
+ <div id="cell"><span>XXXXX</span><span id="span2">XXXXX</span></div>
+ </div>
+ </div>
+ </body>
+</html>
\ No newline at end of file
diff --git a/LayoutTests/css2.1/20110323/overflow-applies-to-006-expected.html b/LayoutTests/css2.1/20110323/overflow-applies-to-006-expected.html
new file mode 100644
index 0000000..8a5841a
--- /dev/null
+++ b/LayoutTests/css2.1/20110323/overflow-applies-to-006-expected.html
@@ -0,0 +1,40 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html>
+ <head>
+ <title>CSS Test: Reference Result</title>
+ <meta name="flags" content="ahem">
+ <style type="text/css">
+ #table
+ {
+ border: 5px solid transparent;
+ color: white;
+ display: table;
+ font: 20px/1em Ahem;
+ height: 5em;
+ table-layout: fixed;
+ width: 5em;
+ }
+ #row
+ {
+ display: table-row;
+ }
+ #cell
+ {
+ display: table-cell;
+ white-space: nowrap;
+ }
+ #span2
+ {
+ color: green;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if there is a green box below.</p>
+ <div id="table">
+ <div id="row">
+ <div id="cell"><span>XXXXX</span><span id="span2">XXXXX</span></div>
+ </div>
+ </div>
+ </body>
+</html>
\ No newline at end of file
diff --git a/LayoutTests/css2.1/20110323/overflow-applies-to-006.htm b/LayoutTests/css2.1/20110323/overflow-applies-to-006.htm
new file mode 100644
index 0000000..ed0a0c0
--- /dev/null
+++ b/LayoutTests/css2.1/20110323/overflow-applies-to-006.htm
@@ -0,0 +1,50 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html>
+ <head>
+ <title>CSS Test: overflow applied to elements with 'display' set to 'table-column'</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/">
+ <link rel="help" href="http://www.w3.org/TR/CSS21/visufx.html#propdef-overflow">
+ <link rel="help" href="http://www.w3.org/TR/CSS21/visufx.html#overflow">
+ <meta name="flags" content="ahem">
+ <meta name="assert" content="The 'overflow' property does not apply to elements with 'display' set to 'table-column'.">
+ <style type="text/css">
+ #test
+ {
+ display: table-column;
+ overflow: hidden;
+ }
+ #table
+ {
+ border: 5px solid transparent;
+ color: white;
+ display: table;
+ font: 20px/1em Ahem;
+ height: 5em;
+ table-layout: fixed;
+ width: 5em;
+ }
+ #row
+ {
+ display: table-row;
+ }
+ #cell
+ {
+ display: table-cell;
+ white-space: nowrap;
+ }
+ #span2
+ {
+ color: green;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if there is a green box below.</p>
+ <div id="table">
+ <div id="test"></div>
+ <div id="row">
+ <div id="cell"><span>XXXXX</span><span id="span2">XXXXX</span></div>
+ </div>
+ </div>
+ </body>
+</html>
\ No newline at end of file
diff --git a/LayoutTests/css2.1/20110323/overflow-applies-to-007-expected.html b/LayoutTests/css2.1/20110323/overflow-applies-to-007-expected.html
new file mode 100644
index 0000000..80f1c24
--- /dev/null
+++ b/LayoutTests/css2.1/20110323/overflow-applies-to-007-expected.html
@@ -0,0 +1,10 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html>
+ <head>
+ <title>CSS Test: Reference Result</title>
+ <meta name="flags" content="ahem">
+ </head>
+ <body>
+ <p>Test passes if there is no red visible on the page.</p>
+ </body>
+</html>
\ No newline at end of file
diff --git a/LayoutTests/css2.1/20110323/overflow-applies-to-007.htm b/LayoutTests/css2.1/20110323/overflow-applies-to-007.htm
new file mode 100644
index 0000000..a0420e7
--- /dev/null
+++ b/LayoutTests/css2.1/20110323/overflow-applies-to-007.htm
@@ -0,0 +1,45 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html>
+ <head>
+ <title>CSS Test: overflow applied to elements with 'display' set to 'table-cell'</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/">
+ <link rel="help" href="http://www.w3.org/TR/CSS21/visufx.html#propdef-overflow">
+ <link rel="help" href="http://www.w3.org/TR/CSS21/visufx.html#overflow">
+ <meta name="flags" content="ahem">
+ <meta name="assert" content="The 'overflow' property applies to elements with 'display' set to 'table-cell'.">
+ <style type="text/css">
+ #table
+ {
+ border: 5px solid transparent;
+ color: white;
+ display: table;
+ font: 20px/1em Ahem;
+ height: 5em;
+ table-layout: fixed;
+ width: 5em;
+ }
+ #row
+ {
+ display: table-row;
+ }
+ #cell
+ {
+ display: table-cell;
+ overflow: hidden;
+ white-space: nowrap;
+ }
+ #span2
+ {
+ color: red;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if there is no red visible on the page.</p>
+ <div id="table">
+ <div id="row">
+ <div id="cell"><span>XXXXX</span><span id="span2">XXXXX</span></div>
+ </div>
+ </div>
+ </body>
+</html>
\ No newline at end of file
diff --git a/LayoutTests/css2.1/20110323/overflow-applies-to-008-expected.html b/LayoutTests/css2.1/20110323/overflow-applies-to-008-expected.html
new file mode 100644
index 0000000..8a5841a
--- /dev/null
+++ b/LayoutTests/css2.1/20110323/overflow-applies-to-008-expected.html
@@ -0,0 +1,40 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html>
+ <head>
+ <title>CSS Test: Reference Result</title>
+ <meta name="flags" content="ahem">
+ <style type="text/css">
+ #table
+ {
+ border: 5px solid transparent;
+ color: white;
+ display: table;
+ font: 20px/1em Ahem;
+ height: 5em;
+ table-layout: fixed;
+ width: 5em;
+ }
+ #row
+ {
+ display: table-row;
+ }
+ #cell
+ {
+ display: table-cell;
+ white-space: nowrap;
+ }
+ #span2
+ {
+ color: green;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if there is a green box below.</p>
+ <div id="table">
+ <div id="row">
+ <div id="cell"><span>XXXXX</span><span id="span2">XXXXX</span></div>
+ </div>
+ </div>
+ </body>
+</html>
\ No newline at end of file
diff --git a/LayoutTests/css2.1/20110323/overflow-applies-to-008.htm b/LayoutTests/css2.1/20110323/overflow-applies-to-008.htm
new file mode 100644
index 0000000..d1d18f4
--- /dev/null
+++ b/LayoutTests/css2.1/20110323/overflow-applies-to-008.htm
@@ -0,0 +1,36 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html>
+ <head>
+ <title>CSS Test: overflow applied to elements with 'display' set to 'inline'</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/">
+ <link rel="help" href="http://www.w3.org/TR/CSS21/visufx.html#propdef-overflow">
+ <link rel="help" href="http://www.w3.org/TR/CSS21/visufx.html#overflow">
+ <meta name="flags" content="ahem">
+ <meta name="assert" content="The 'overflow' property does not apply to elements with 'display' set to 'inline'.">
+ <style type="text/css">
+ #parent
+ {
+ border: 5px solid transparent;
+ color: white;
+ font: 20px/1em Ahem;
+ width: 5em;
+ }
+ div div
+ {
+ display: inline;
+ overflow: hidden;
+ white-space: nowrap;
+ }
+ #span2
+ {
+ color: green;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if there is a green box below.</p>
+ <div id="parent">
+ <div><span>XXXXX</span><span id="span2">XXXXX</span></div>
+ </div>
+ </body>
+</html>
\ No newline at end of file
diff --git a/LayoutTests/css2.1/20110323/overflow-applies-to-009-expected.html b/LayoutTests/css2.1/20110323/overflow-applies-to-009-expected.html
new file mode 100644
index 0000000..80f1c24
--- /dev/null
+++ b/LayoutTests/css2.1/20110323/overflow-applies-to-009-expected.html
@@ -0,0 +1,10 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html>
+ <head>
+ <title>CSS Test: Reference Result</title>
+ <meta name="flags" content="ahem">
+ </head>
+ <body>
+ <p>Test passes if there is no red visible on the page.</p>
+ </body>
+</html>
\ No newline at end of file
diff --git a/LayoutTests/css2.1/20110323/overflow-applies-to-009.htm b/LayoutTests/css2.1/20110323/overflow-applies-to-009.htm
new file mode 100644
index 0000000..61dc3ea
--- /dev/null
+++ b/LayoutTests/css2.1/20110323/overflow-applies-to-009.htm
@@ -0,0 +1,33 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html>
+ <head>
+ <title>CSS Test: overflow applied to elements with 'display' set to 'block'</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/">
+ <link rel="help" href="http://www.w3.org/TR/CSS21/visufx.html#propdef-overflow">
+ <link rel="help" href="http://www.w3.org/TR/CSS21/visufx.html#overflow">
+ <meta name="flags" content="ahem">
+ <meta name="assert" content="The 'overflow' property applies to elements with 'display' set to 'block'.">
+ <style type="text/css">
+ span
+ {
+ border: 5px solid transparent;
+ color: white;
+ display: block;
+ font: 20px/1em Ahem;
+ height: 5em;
+ overflow: hidden;
+ width: 5em;
+ }
+ #test
+ {
+ color: red;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if there is no red visible on the page.</p>
+ <div>
+ <span><b>XXXXX</b><b id="test">XXXXX</b></span>
+ </div>
+ </body>
+</html>
\ No newline at end of file
diff --git a/LayoutTests/css2.1/20110323/overflow-applies-to-010-expected.html b/LayoutTests/css2.1/20110323/overflow-applies-to-010-expected.html
new file mode 100644
index 0000000..287ed46
--- /dev/null
+++ b/LayoutTests/css2.1/20110323/overflow-applies-to-010-expected.html
@@ -0,0 +1,24 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html>
+ <head>
+ <title>CSS Test: Reference Result</title>
+ <meta name="flags" content="ahem">
+ <style type="text/css">
+ body
+ {
+ margin-left: 50px;
+ }
+ div
+ {
+ border: 5px solid transparent;
+ font: 20px/1em Ahem;
+ height: 5em;
+ width: 5em;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if there is a black box below and there is no red visible on the page. To the left of the box can be list marker but is it not required.</p>
+ <div><span>XXXXX</span></div>
+ </body>
+</html>
\ No newline at end of file
diff --git a/LayoutTests/css2.1/20110323/overflow-applies-to-010.htm b/LayoutTests/css2.1/20110323/overflow-applies-to-010.htm
new file mode 100644
index 0000000..2c252af
--- /dev/null
+++ b/LayoutTests/css2.1/20110323/overflow-applies-to-010.htm
@@ -0,0 +1,34 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html>
+ <head>
+ <title>CSS Test: overflow applied to elements with 'display' set to 'list-item'</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/">
+ <link rel="help" href="http://www.w3.org/TR/CSS21/visufx.html#propdef-overflow">
+ <link rel="help" href="http://www.w3.org/TR/CSS21/visufx.html#overflow">
+ <meta name="flags" content="ahem">
+ <meta name="assert" content="The 'overflow' property applies to elements with 'display' set to 'list-item'.">
+ <style type="text/css">
+ body
+ {
+ margin-left: 50px;
+ }
+ div
+ {
+ border: 5px solid transparent;
+ display: list-item;
+ font: 20px/1em Ahem;
+ height: 5em;
+ overflow: hidden;
+ width: 5em;
+ }
+ #span2
+ {
+ color: red;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if there is a black box below and there is no red visible on the page. To the left of the box can be list marker but is it not required.</p>
+ <div><span>XXXXX</span><span id="span2">XXXXX</span></div>
+ </body>
+</html>
\ No newline at end of file
diff --git a/LayoutTests/css2.1/20110323/overflow-applies-to-012-expected.html b/LayoutTests/css2.1/20110323/overflow-applies-to-012-expected.html
new file mode 100644
index 0000000..80f1c24
--- /dev/null
+++ b/LayoutTests/css2.1/20110323/overflow-applies-to-012-expected.html
@@ -0,0 +1,10 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html>
+ <head>
+ <title>CSS Test: Reference Result</title>
+ <meta name="flags" content="ahem">
+ </head>
+ <body>
+ <p>Test passes if there is no red visible on the page.</p>
+ </body>
+</html>
\ No newline at end of file
diff --git a/LayoutTests/css2.1/20110323/overflow-applies-to-012.htm b/LayoutTests/css2.1/20110323/overflow-applies-to-012.htm
new file mode 100644
index 0000000..6d5b300
--- /dev/null
+++ b/LayoutTests/css2.1/20110323/overflow-applies-to-012.htm
@@ -0,0 +1,31 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html>
+ <head>
+ <title>CSS Test: overflow applied to elements with 'display' set to 'inline-block'</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/">
+ <link rel="help" href="http://www.w3.org/TR/CSS21/visufx.html#propdef-overflow">
+ <link rel="help" href="http://www.w3.org/TR/CSS21/visufx.html#overflow">
+ <meta name="flags" content="ahem">
+ <meta name="assert" content="The 'overflow' property applies to elements with 'display' set to 'inline-block'.">
+ <style type="text/css">
+ div
+ {
+ border: 5px solid transparent;
+ color: white;
+ display: inline-block;
+ font: 20px/1em Ahem;
+ height: 5em;
+ overflow: hidden;
+ width: 5em;
+ }
+ #span2
+ {
+ color: red;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if there is no red visible on the page.</p>
+ <div><span>XXXXX</span><span id="span2">XXXXX</span></div>
+ </body>
+</html>
\ No newline at end of file
diff --git a/LayoutTests/css2.1/20110323/overflow-applies-to-013-expected.html b/LayoutTests/css2.1/20110323/overflow-applies-to-013-expected.html
new file mode 100644
index 0000000..80f1c24
--- /dev/null
+++ b/LayoutTests/css2.1/20110323/overflow-applies-to-013-expected.html
@@ -0,0 +1,10 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html>
+ <head>
+ <title>CSS Test: Reference Result</title>
+ <meta name="flags" content="ahem">
+ </head>
+ <body>
+ <p>Test passes if there is no red visible on the page.</p>
+ </body>
+</html>
\ No newline at end of file
diff --git a/LayoutTests/css2.1/20110323/overflow-applies-to-013.htm b/LayoutTests/css2.1/20110323/overflow-applies-to-013.htm
new file mode 100644
index 0000000..a83836c
--- /dev/null
+++ b/LayoutTests/css2.1/20110323/overflow-applies-to-013.htm
@@ -0,0 +1,46 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html>
+ <head>
+ <title>CSS Test: overflow applied to elements with 'display' set to 'table'</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/">
+ <link rel="help" href="http://www.w3.org/TR/CSS21/visufx.html#propdef-overflow">
+ <link rel="help" href="http://www.w3.org/TR/CSS21/visufx.html#overflow">
+ <meta name="flags" content="ahem">
+ <meta name="assert" content="The 'overflow' property does apply to elements with 'display' set to 'table'.">
+ <style type="text/css">
+ #table
+ {
+ border: 5px solid transparent;
+ color: white;
+ display: table;
+ table-layout: fixed;
+ font: 20px/1em Ahem;
+ height: 5em;
+ overflow: hidden;
+ table-layout: fixed;
+ width: 5em;
+ }
+ #row
+ {
+ display: table-row;
+ }
+ #cell
+ {
+ display: table-cell;
+ white-space: nowrap;
+ }
+ #span2
+ {
+ color: red;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if there is no red visible on the page.</p>
+ <div id="table">
+ <div id="row">
+ <div id="cell"><span>XXXXX</span><span id="span2">XXXXX</span></div>
+ </div>
+ </div>
+ </body>
+</html>
\ No newline at end of file
diff --git a/LayoutTests/css2.1/20110323/overflow-applies-to-014-expected.html b/LayoutTests/css2.1/20110323/overflow-applies-to-014-expected.html
new file mode 100644
index 0000000..80f1c24
--- /dev/null
+++ b/LayoutTests/css2.1/20110323/overflow-applies-to-014-expected.html
@@ -0,0 +1,10 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html>
+ <head>
+ <title>CSS Test: Reference Result</title>
+ <meta name="flags" content="ahem">
+ </head>
+ <body>
+ <p>Test passes if there is no red visible on the page.</p>
+ </body>
+</html>
\ No newline at end of file
diff --git a/LayoutTests/css2.1/20110323/overflow-applies-to-014.htm b/LayoutTests/css2.1/20110323/overflow-applies-to-014.htm
new file mode 100644
index 0000000..8d8c7f9
--- /dev/null
+++ b/LayoutTests/css2.1/20110323/overflow-applies-to-014.htm
@@ -0,0 +1,45 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html>
+ <head>
+ <title>CSS Test: overflow applied to elements with 'display' set to 'inline-table'</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/">
+ <link rel="help" href="http://www.w3.org/TR/CSS21/visufx.html#propdef-overflow">
+ <link rel="help" href="http://www.w3.org/TR/CSS21/visufx.html#overflow">
+ <meta name="flags" content="ahem">
+ <meta name="assert" content="The 'overflow' property does apply to elements with 'display' set to 'inline-table'.">
+ <style type="text/css">
+ #table
+ {
+ border: 5px solid transparent;
+ color: white;
+ display: inline-table;
+ font: 20px/1em Ahem;
+ height: 5em;
+ overflow: hidden;
+ table-layout: fixed;
+ width: 5em;
+ }
+ #row
+ {
+ display: table-row;
+ }
+ #cell
+ {
+ display: table-cell;
+ white-space: nowrap;
+ }
+ #span2
+ {
+ color: red;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if there is no red visible on the page.</p>
+ <div id="table">
+ <div id="row">
+ <div id="cell"><span>XXXXX</span><span id="span2">XXXXX</span></div>
+ </div>
+ </div>
+ </body>
+</html>
\ No newline at end of file
diff --git a/LayoutTests/css2.1/20110323/overflow-applies-to-015-expected.html b/LayoutTests/css2.1/20110323/overflow-applies-to-015-expected.html
new file mode 100644
index 0000000..80f1c24
--- /dev/null
+++ b/LayoutTests/css2.1/20110323/overflow-applies-to-015-expected.html
@@ -0,0 +1,10 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html>
+ <head>
+ <title>CSS Test: Reference Result</title>
+ <meta name="flags" content="ahem">
+ </head>
+ <body>
+ <p>Test passes if there is no red visible on the page.</p>
+ </body>
+</html>
\ No newline at end of file
diff --git a/LayoutTests/css2.1/20110323/overflow-applies-to-015.htm b/LayoutTests/css2.1/20110323/overflow-applies-to-015.htm
new file mode 100644
index 0000000..339b401
--- /dev/null
+++ b/LayoutTests/css2.1/20110323/overflow-applies-to-015.htm
@@ -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: overflow applied to elements with 'display' set to 'table-caption'</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/">
+ <link rel="help" href="http://www.w3.org/TR/CSS21/visufx.html#propdef-overflow">
+ <link rel="help" href="http://www.w3.org/TR/CSS21/visufx.html#overflow">
+ <meta name="flags" content="ahem">
+ <meta name="assert" content="The 'overflow' property does apply to elements with 'display' set to 'table-caption'.">
+ <style type="text/css">
+ #test
+ {
+ border: 5px solid transparent;
+ color: white;
+ display: table-caption;
+ font: 20px/1em Ahem;
+ height: 5em;
+ overflow: hidden;
+ table-layout: fixed;
+ white-space: nowrap;
+ width: 5em;
+ }
+ #table
+ {
+ display: table;
+ }
+ #row
+ {
+ display: table-row;
+ }
+ #cell
+ {
+ display: table-cell;
+ white-space: nowrap;
+ }
+ #span2
+ {
+ color: red;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if there is no red visible on the page.</p>
+ <div id="table">
+ <div id="test"><span>XXXXX</span><span id="span2">XXXXX</span></div>
+ <div id="row">
+ <div id="cell"></div>
+ </div>
+ </div>
+ </body>
+</html>
\ No newline at end of file
diff --git a/LayoutTests/fast/css/nested-layers-with-hover.html b/LayoutTests/fast/css/nested-layers-with-hover.html
index 83aab21..86e897c 100644
--- a/LayoutTests/fast/css/nested-layers-with-hover.html
+++ b/LayoutTests/fast/css/nested-layers-with-hover.html
@@ -6,6 +6,10 @@
}
</style>
<script>
+ if (window.testRunner) {
+ testRunner.waitUntilDone();
+ testRunner.dumpAsText();
+ }
function log(msg) {
var console = document.getElementById('console');
console.innerText = msg;
@@ -22,6 +26,8 @@
log("PASSED: The hover effect works!");
else
log("FAILED: The hover effect did not correctly propagate down the layer chain.");
+ if (window.testRunner)
+ testRunner.notifyDone();
}
function runTest() {
diff --git a/LayoutTests/platform/chromium-linux/tables/mozilla_expected_failures/bugs/bug106966-expected.png b/LayoutTests/platform/chromium-linux/tables/mozilla_expected_failures/bugs/bug106966-expected.png
index c860bf7..28848d5 100644
--- a/LayoutTests/platform/chromium-linux/tables/mozilla_expected_failures/bugs/bug106966-expected.png
+++ b/LayoutTests/platform/chromium-linux/tables/mozilla_expected_failures/bugs/bug106966-expected.png
Binary files differ
diff --git a/LayoutTests/platform/chromium-linux/tables/mozilla_expected_failures/marvin/table_overflow_hidden_tbody-expected.png b/LayoutTests/platform/chromium-linux/tables/mozilla_expected_failures/marvin/table_overflow_hidden_tbody-expected.png
index f0d0c51..aaa5af8 100644
--- a/LayoutTests/platform/chromium-linux/tables/mozilla_expected_failures/marvin/table_overflow_hidden_tbody-expected.png
+++ b/LayoutTests/platform/chromium-linux/tables/mozilla_expected_failures/marvin/table_overflow_hidden_tbody-expected.png
Binary files differ
diff --git a/LayoutTests/platform/chromium-linux/tables/mozilla_expected_failures/marvin/table_overflow_hidden_tr-expected.png b/LayoutTests/platform/chromium-linux/tables/mozilla_expected_failures/marvin/table_overflow_hidden_tr-expected.png
index 46db5ab..aaa5af8 100644
--- a/LayoutTests/platform/chromium-linux/tables/mozilla_expected_failures/marvin/table_overflow_hidden_tr-expected.png
+++ b/LayoutTests/platform/chromium-linux/tables/mozilla_expected_failures/marvin/table_overflow_hidden_tr-expected.png
Binary files differ
diff --git a/LayoutTests/platform/chromium-win/fast/css/nested-layers-with-hover-expected.txt b/LayoutTests/platform/chromium-win/fast/css/nested-layers-with-hover-expected.txt
index 14e11ba..9d452cd 100644
--- a/LayoutTests/platform/chromium-win/fast/css/nested-layers-with-hover-expected.txt
+++ b/LayoutTests/platform/chromium-win/fast/css/nested-layers-with-hover-expected.txt
@@ -1,17 +1,2 @@
-layer at (0,0) size 800x600
- RenderView at (0,0) size 800x600
-layer at (0,0) size 800x600
- RenderBlock {HTML} at (0,0) size 800x600
- RenderBody {BODY} at (8,8) size 784x584
- RenderBlock {DIV} at (0,20) size 784x20
- RenderText {#text} at (0,0) size 210x19
- text run at (0,0) width 210: "PASSED: The hover effect works!"
-layer at (8,8) size 784x20
- RenderBlock {DIV} at (0,0) size 784x20
- RenderTable at (0,0) size 770x20
- RenderTableSection (anonymous) at (0,0) size 770x20
-layer at (8,8) size 770x20
- RenderTableRow {DIV} at (0,0) size 770x20 [bgcolor=#0000FF]
- RenderTableCell (anonymous) at (0,0) size 770x20 [r=0 c=0 rs=1 cs=1]
- RenderText {#text} at (0,0) size 770x19
- text run at (0,0) width 770: "To test this manually, first make sure you can see this text at all, and then hover over it and make sure the background turns blue."
+To test this manually, first make sure you can see this text at all, and then hover over it and make sure the background turns blue.
+PASSED: The hover effect works!
diff --git a/LayoutTests/platform/chromium-win/tables/mozilla_expected_failures/bugs/bug106966-expected.txt b/LayoutTests/platform/chromium-win/tables/mozilla_expected_failures/bugs/bug106966-expected.txt
index ce8fa4b..5cbbcfd 100644
--- a/LayoutTests/platform/chromium-win/tables/mozilla_expected_failures/bugs/bug106966-expected.txt
+++ b/LayoutTests/platform/chromium-win/tables/mozilla_expected_failures/bugs/bug106966-expected.txt
@@ -22,6 +22,13 @@
RenderText {#text} at (75,0) size 50x19
text run at (75,0) width 50: "clip at tr"
RenderTableSection {TBODY} at (25,45) size 150x89
+ RenderTableRow {TR} at (0,15) size 150x22
+ RenderTableCell {TD} at (15,15) size 52x22 [bgcolor=#FFFF00] [r=0 c=0 rs=1 cs=1]
+ RenderText {#text} at (1,1) size 28x19
+ text run at (1,1) width 28: "cell1"
+ RenderTableCell {TD} at (82,15) size 53x22 [bgcolor=#FFFF00] [r=0 c=1 rs=1 cs=1]
+ RenderText {#text} at (1,1) size 123x19
+ text run at (1,1) width 123: "contentwithoutspace"
RenderTableRow {TR} at (0,52) size 150x22
RenderTableCell {TD} at (15,52) size 52x22 [bgcolor=#FFFF00] [r=1 c=0 rs=1 cs=1]
RenderText {#text} at (1,1) size 28x19
@@ -78,6 +85,14 @@
RenderBlock {CAPTION} at (0,0) size 200x20
RenderText {#text} at (71,0) size 58x19
text run at (71,0) width 58: "clip thead"
+ RenderTableSection {THEAD} at (25,45) size 150x52
+ RenderTableRow {TR} at (0,15) size 150x22
+ RenderTableCell {TD} at (15,15) size 52x22 [bgcolor=#FFFF00] [r=0 c=0 rs=1 cs=1]
+ RenderText {#text} at (1,1) size 28x19
+ text run at (1,1) width 28: "cell1"
+ RenderTableCell {TD} at (82,15) size 53x22 [bgcolor=#FFFF00] [r=0 c=1 rs=1 cs=1]
+ RenderText {#text} at (1,1) size 123x19
+ text run at (1,1) width 123: "contentwithoutspace"
RenderTableSection {TBODY} at (25,97) size 150x52
RenderTableRow {TR} at (0,15) size 150x22
RenderTableCell {TD} at (15,15) size 52x22 [bgcolor=#FFFF00] [r=0 c=0 rs=1 cs=1]
@@ -98,6 +113,14 @@
RenderTableCell {TD} at (82,15) size 53x22 [bgcolor=#FFFF00] [r=0 c=1 rs=1 cs=1]
RenderText {#text} at (1,1) size 123x19
text run at (1,1) width 123: "contentwithoutspace"
+ RenderTableSection {TBODY} at (25,97) size 150x52
+ RenderTableRow {TR} at (0,15) size 150x22
+ RenderTableCell {TD} at (15,15) size 52x22 [bgcolor=#FFFF00] [r=0 c=0 rs=1 cs=1]
+ RenderText {#text} at (1,1) size 28x19
+ text run at (1,1) width 28: "cell1"
+ RenderTableCell {TD} at (82,15) size 53x22 [bgcolor=#FFFF00] [r=0 c=1 rs=1 cs=1]
+ RenderText {#text} at (1,1) size 123x19
+ text run at (1,1) width 123: "contentwithoutspace"
RenderTable {TABLE} at (0,1089) size 200x174 [bgcolor=#FFA500] [border: (10px solid #0000FF)]
RenderBlock {CAPTION} at (0,0) size 200x20
RenderText {#text} at (73,0) size 54x19
@@ -110,6 +133,14 @@
RenderTableCell {TD} at (82,15) size 53x22 [bgcolor=#FFFF00] [r=0 c=1 rs=1 cs=1]
RenderText {#text} at (1,1) size 123x19
text run at (1,1) width 123: "contentwithoutspace"
+ RenderTableSection {TFOOT} at (25,97) size 150x52
+ RenderTableRow {TR} at (0,15) size 150x22
+ RenderTableCell {TD} at (15,15) size 52x22 [bgcolor=#FFFF00] [r=0 c=0 rs=1 cs=1]
+ RenderText {#text} at (1,1) size 28x19
+ text run at (1,1) width 28: "cell1"
+ RenderTableCell {TD} at (82,15) size 53x22 [bgcolor=#FFFF00] [r=0 c=1 rs=1 cs=1]
+ RenderText {#text} at (1,1) size 123x19
+ text run at (1,1) width 123: "contentwithoutspace"
RenderTable {TABLE} at (0,1263) size 200x174 [bgcolor=#FFA500] [border: (10px solid #0000FF)]
RenderBlock {CAPTION} at (0,0) size 200x20
RenderText {#text} at (81,0) size 38x19
@@ -122,6 +153,11 @@
RenderTableCell {TD} at (82,15) size 53x22 [bgcolor=#FFFF00] [r=0 c=1 rs=1 cs=1]
RenderText {#text} at (1,1) size 123x19
text run at (1,1) width 123: "contentwithoutspace"
+ RenderTableSection {TFOOT} at (25,97) size 150x52
+ RenderTableRow {TR} at (0,15) size 150x22
+ RenderTableCell {TD} at (15,15) size 52x22 [bgcolor=#FFFF00] [r=0 c=0 rs=1 cs=1]
+ RenderText {#text} at (1,1) size 28x19
+ text run at (1,1) width 28: "cell1"
layer at (8,150) size 200x122 clip at (18,150) size 180x122 scrollWidth 221
RenderTable {TABLE} at (0,142) size 200x122 [bgcolor=#FFA500] [border: (10px solid #0000FF)]
RenderBlock {CAPTION} at (0,0) size 200x20
@@ -135,47 +171,6 @@
RenderTableCell {TD} at (82,15) size 53x22 [bgcolor=#FFFF00] [r=0 c=1 rs=1 cs=1]
RenderText {#text} at (1,1) size 123x19
text run at (1,1) width 123: "contentwithoutspace"
-layer at (33,332) size 150x22
- RenderTableRow {TR} at (0,15) size 150x22
- RenderTableCell {TD} at (15,15) size 52x22 [bgcolor=#FFFF00] [r=0 c=0 rs=1 cs=1]
- RenderText {#text} at (1,1) size 28x19
- text run at (1,1) width 28: "cell1"
- RenderTableCell {TD} at (82,15) size 53x22 [bgcolor=#FFFF00] [r=0 c=1 rs=1 cs=1]
- RenderText {#text} at (1,1) size 123x19
- text run at (1,1) width 123: "contentwithoutspace"
-layer at (33,794) size 150x52 scrollWidth 206
- RenderTableSection {THEAD} at (25,45) size 150x52
- RenderTableRow {TR} at (0,15) size 150x22
- RenderTableCell {TD} at (15,15) size 52x22 [bgcolor=#FFFF00] [r=0 c=0 rs=1 cs=1]
- RenderText {#text} at (1,1) size 28x19
- text run at (1,1) width 28: "cell1"
- RenderTableCell {TD} at (82,15) size 53x22 [bgcolor=#FFFF00] [r=0 c=1 rs=1 cs=1]
- RenderText {#text} at (1,1) size 123x19
- text run at (1,1) width 123: "contentwithoutspace"
-layer at (33,1020) size 150x52 scrollWidth 206
- RenderTableSection {TBODY} at (25,97) size 150x52
- RenderTableRow {TR} at (0,15) size 150x22
- RenderTableCell {TD} at (15,15) size 52x22 [bgcolor=#FFFF00] [r=0 c=0 rs=1 cs=1]
- RenderText {#text} at (1,1) size 28x19
- text run at (1,1) width 28: "cell1"
- RenderTableCell {TD} at (82,15) size 53x22 [bgcolor=#FFFF00] [r=0 c=1 rs=1 cs=1]
- RenderText {#text} at (1,1) size 123x19
- text run at (1,1) width 123: "contentwithoutspace"
-layer at (33,1194) size 150x52 scrollWidth 206
- RenderTableSection {TFOOT} at (25,97) size 150x52
- RenderTableRow {TR} at (0,15) size 150x22
- RenderTableCell {TD} at (15,15) size 52x22 [bgcolor=#FFFF00] [r=0 c=0 rs=1 cs=1]
- RenderText {#text} at (1,1) size 28x19
- text run at (1,1) width 28: "cell1"
- RenderTableCell {TD} at (82,15) size 53x22 [bgcolor=#FFFF00] [r=0 c=1 rs=1 cs=1]
- RenderText {#text} at (1,1) size 123x19
- text run at (1,1) width 123: "contentwithoutspace"
-layer at (33,1368) size 150x52
- RenderTableSection {TFOOT} at (25,97) size 150x52
- RenderTableRow {TR} at (0,15) size 150x22
- RenderTableCell {TD} at (15,15) size 52x22 [bgcolor=#FFFF00] [r=0 c=0 rs=1 cs=1]
- RenderText {#text} at (1,1) size 28x19
- text run at (1,1) width 28: "cell1"
layer at (115,1383) size 53x22 scrollWidth 125
RenderTableCell {TD} at (82,15) size 53x22 [bgcolor=#FFFF00] [r=0 c=1 rs=1 cs=1]
RenderText {#text} at (1,1) size 123x19
diff --git a/LayoutTests/platform/chromium-win/tables/mozilla_expected_failures/marvin/table_overflow_hidden_tbody-expected.txt b/LayoutTests/platform/chromium-win/tables/mozilla_expected_failures/marvin/table_overflow_hidden_tbody-expected.txt
index 9365037..bfa5a2c 100644
--- a/LayoutTests/platform/chromium-win/tables/mozilla_expected_failures/marvin/table_overflow_hidden_tbody-expected.txt
+++ b/LayoutTests/platform/chromium-win/tables/mozilla_expected_failures/marvin/table_overflow_hidden_tbody-expected.txt
@@ -4,11 +4,10 @@
RenderBlock {HTML} at (0,0) size 800x38
RenderBody {BODY} at (8,8) size 784x22
RenderTable {TABLE} at (0,0) size 22x22 [border: (1px outset #808080)]
-layer at (9,9) size 20x20 scrollWidth 707 scrollHeight 507
- RenderTableSection {TBODY} at (1,1) size 20x20
- RenderTableRow {TR} at (0,2) size 20x16
- RenderTableCell {TD} at (2,2) size 16x16 [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
- RenderBlock {DIV} at (2,2) size 12x12 [border: (1px solid #008000)]
- RenderBlock {DIV} at (1,1) size 702x502 [border: (1px solid #FF0000)]
- RenderText {#text} at (1,1) size 58x19
- text run at (1,1) width 58: "scrollbars"
+ RenderTableSection {TBODY} at (1,1) size 20x20
+ RenderTableRow {TR} at (0,2) size 20x16
+ RenderTableCell {TD} at (2,2) size 16x16 [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
+ RenderBlock {DIV} at (2,2) size 12x12 [border: (1px solid #008000)]
+ RenderBlock {DIV} at (1,1) size 702x502 [border: (1px solid #FF0000)]
+ RenderText {#text} at (1,1) size 58x19
+ text run at (1,1) width 58: "scrollbars"
diff --git a/LayoutTests/platform/chromium-win/tables/mozilla_expected_failures/marvin/table_overflow_hidden_tr-expected.txt b/LayoutTests/platform/chromium-win/tables/mozilla_expected_failures/marvin/table_overflow_hidden_tr-expected.txt
index 4300903..bfa5a2c 100644
--- a/LayoutTests/platform/chromium-win/tables/mozilla_expected_failures/marvin/table_overflow_hidden_tr-expected.txt
+++ b/LayoutTests/platform/chromium-win/tables/mozilla_expected_failures/marvin/table_overflow_hidden_tr-expected.txt
@@ -5,10 +5,9 @@
RenderBody {BODY} at (8,8) size 784x22
RenderTable {TABLE} at (0,0) size 22x22 [border: (1px outset #808080)]
RenderTableSection {TBODY} at (1,1) size 20x20
-layer at (9,11) size 20x16
- RenderTableRow {TR} at (0,2) size 20x16
- RenderTableCell {TD} at (2,2) size 16x16 [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
- RenderBlock {DIV} at (2,2) size 12x12 [border: (1px solid #008000)]
- RenderBlock {DIV} at (1,1) size 702x502 [border: (1px solid #FF0000)]
- RenderText {#text} at (1,1) size 58x19
- text run at (1,1) width 58: "scrollbars"
+ RenderTableRow {TR} at (0,2) size 20x16
+ RenderTableCell {TD} at (2,2) size 16x16 [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
+ RenderBlock {DIV} at (2,2) size 12x12 [border: (1px solid #008000)]
+ RenderBlock {DIV} at (1,1) size 702x502 [border: (1px solid #FF0000)]
+ RenderText {#text} at (1,1) size 58x19
+ text run at (1,1) width 58: "scrollbars"
diff --git a/LayoutTests/platform/chromium/TestExpectations b/LayoutTests/platform/chromium/TestExpectations
index c34e931..fdc65d7 100644
--- a/LayoutTests/platform/chromium/TestExpectations
+++ b/LayoutTests/platform/chromium/TestExpectations
@@ -3483,3 +3483,9 @@
BUGWK92968 SKIP : http/tests/appcache/abort-cache-onchecking.html = PASS
BUGWK92968 SKIP : http/tests/appcache/abort-cache-ondownloading.html = PASS
BUGWK92968 SKIP : http/tests/appcache/abort-cache-onprogress.html = PASS
+
+// Require rebaseline after bug 93148
+BUGWK93148 MAC WIN : tables/mozilla_expected_failures/bugs/bug106966.html = IMAGE+TEXT
+BUGWK93148 MAC WIN : tables/mozilla_expected_failures/marvin/table_overflow_hidden_tbody.html = IMAGE+TEXT
+BUGWK93148 MAC WIN : tables/mozilla_expected_failures/marvin/table_overflow_hidden_tr.html = IMAGE+TEXT
+BUGWK93148 MAC WIN : fast/css/nested-layers-with-hover.html = TEXT
diff --git a/LayoutTests/platform/efl/TestExpectations b/LayoutTests/platform/efl/TestExpectations
index 426bda5..c536d37 100644
--- a/LayoutTests/platform/efl/TestExpectations
+++ b/LayoutTests/platform/efl/TestExpectations
@@ -847,3 +847,9 @@
BUGWK93073 : mathml/presentation/tokenElements.xhtml = TEXT
BUGWK93073 : mathml/presentation/under.xhtml = TEXT
BUGWK93073 : mathml/presentation/underover.xhtml = TEXT
+
+// Require rebaseline after bug 93148
+BUGWK93148 : tables/mozilla_expected_failures/bugs/bug106966.html = TEXT
+BUGWK93148 : tables/mozilla_expected_failures/marvin/table_overflow_hidden_tbody.html = TEXT
+BUGWK93148 : tables/mozilla_expected_failures/marvin/table_overflow_hidden_tr.html = TEXT
+BUGWK93148 : fast/css/nested-layers-with-hover.html = TEXT
diff --git a/LayoutTests/platform/gtk/TestExpectations b/LayoutTests/platform/gtk/TestExpectations
index 11d2ff5..4ae86eb 100644
--- a/LayoutTests/platform/gtk/TestExpectations
+++ b/LayoutTests/platform/gtk/TestExpectations
@@ -36,6 +36,11 @@
// Tests that require new results.
//////////////////////////////////////////////////////////////////////////////////////////
+// Require rebaseline after bug 93148
+BUGWK93148 : tables/mozilla_expected_failures/bugs/bug106966.html = TEXT
+BUGWK93148 : tables/mozilla_expected_failures/marvin/table_overflow_hidden_tbody.html = TEXT
+BUGWK93148 : tables/mozilla_expected_failures/marvin/table_overflow_hidden_tr.html = TEXT
+BUGWK93148 : fast/css/nested-layers-with-hover.html = TEXT
//////////////////////////////////////////////////////////////////////////////////////////
// Expected failures
diff --git a/LayoutTests/platform/mac/TestExpectations b/LayoutTests/platform/mac/TestExpectations
index ae2365f..f61dc34 100644
--- a/LayoutTests/platform/mac/TestExpectations
+++ b/LayoutTests/platform/mac/TestExpectations
@@ -309,3 +309,9 @@
// Needs rebaseline after https://bugs.webkit.org/show_bug.cgi?id=80219
BUGWK80219 : fast/box-sizing/box-sizing.html = IMAGE+TEXT
BUGWK80219 : compositing/overflow/clip-descendents.html = TEXT
+
+// Require rebaseline after bug 93148
+BUGWK93148 : tables/mozilla_expected_failures/bugs/bug106966.html = TEXT
+BUGWK93148 : tables/mozilla_expected_failures/marvin/table_overflow_hidden_tbody.html = TEXT
+BUGWK93148 : tables/mozilla_expected_failures/marvin/table_overflow_hidden_tr.html = TEXT
+BUGWK93148 : fast/css/nested-layers-with-hover.html = TEXT
diff --git a/LayoutTests/platform/qt/TestExpectations b/LayoutTests/platform/qt/TestExpectations
index 5985333..aae3047 100644
--- a/LayoutTests/platform/qt/TestExpectations
+++ b/LayoutTests/platform/qt/TestExpectations
@@ -128,3 +128,9 @@
// Needs rebaseline after https://bugs.webkit.org/show_bug.cgi?id=80219
BUGWK80219 : fast/box-sizing/box-sizing.html = IMAGE+TEXT
BUGWK80219 : compositing/overflow/clip-descendents.html = TEXT
+
+// Require rebaseline after bug 93148
+BUGWK93148 : tables/mozilla_expected_failures/bugs/bug106966.html = TEXT
+BUGWK93148 : tables/mozilla_expected_failures/marvin/table_overflow_hidden_tbody.html = TEXT
+BUGWK93148 : tables/mozilla_expected_failures/marvin/table_overflow_hidden_tr.html = TEXT
+BUGWK93148 : fast/css/nested-layers-with-hover.html = TEXT
diff --git a/Source/WebCore/ChangeLog b/Source/WebCore/ChangeLog
index cac5c40..d11d748 100644
--- a/Source/WebCore/ChangeLog
+++ b/Source/WebCore/ChangeLog
@@ -1,3 +1,31 @@
+2012-08-03 Robert Hogan <robert@webkit.org>
+
+ CSS 2.1 failure: overflow-applies-to-001 fails
+ https://bugs.webkit.org/show_bug.cgi?id=93148
+
+ Reviewed by Eric Seidel.
+
+ Overflow no longer applies to table-rows or table-row-groups, it only applies
+ to block containers: http://www.w3.org/TR/CSS21/visufx.html#overflow
+
+ Tests: css2.1/20110323/overflow-applies-to-001.htm
+ css2.1/20110323/overflow-applies-to-002.htm
+ css2.1/20110323/overflow-applies-to-003.htm
+ css2.1/20110323/overflow-applies-to-004.htm
+ css2.1/20110323/overflow-applies-to-005.htm
+ css2.1/20110323/overflow-applies-to-006.htm
+ css2.1/20110323/overflow-applies-to-007.htm
+ css2.1/20110323/overflow-applies-to-008.htm
+ css2.1/20110323/overflow-applies-to-009.htm
+ css2.1/20110323/overflow-applies-to-010.htm
+ css2.1/20110323/overflow-applies-to-012.htm
+ css2.1/20110323/overflow-applies-to-013.htm
+ css2.1/20110323/overflow-applies-to-014.htm
+ css2.1/20110323/overflow-applies-to-015.htm
+
+ * rendering/RenderBox.cpp:
+ (WebCore::RenderBox::updateBoxModelInfoFromStyle):
+
2012-08-04 Adam Barth <abarth@webkit.org>
BindingSecurity::shouldAllowAccessToNode shouldn't detour through Frame to find the node's document
diff --git a/Source/WebCore/rendering/RenderBox.cpp b/Source/WebCore/rendering/RenderBox.cpp
index 574499f..3abe39b 100644
--- a/Source/WebCore/rendering/RenderBox.cpp
+++ b/Source/WebCore/rendering/RenderBox.cpp
@@ -309,7 +309,7 @@
setFloating(!isOutOfFlowPositioned() && styleToUse->isFloating());
// We also handle <body> and <html>, whose overflow applies to the viewport.
- if (styleToUse->overflowX() != OVISIBLE && !isRootObject && (isRenderBlock() || isTableRow() || isTableSection())) {
+ if (styleToUse->overflowX() != OVISIBLE && !isRootObject && isRenderBlock()) {
bool boxHasOverflowClip = true;
if (isBody()) {
// Overflow on the body can propagate to the viewport under the following conditions.