- From: Gérard Talbot <css21testsuite@gtalbot.org>
- Date: Tue, 31 May 2011 06:13:27 -0700
- To: "Arron Eicholz" <arron.eicholz@microsoft.com>
- Cc: "Public CSS test suite mailing list" <public-css-testsuite@w3.org>
Arron,
http://test.csswg.org/suites/css2.1/20110323/html4/overflow-ancestors-001.htm
http://test.csswg.org/suites/css2.1/nightly-unstable/html4/overflow-ancestors-001.htm
The meta assert says:
<meta name="assert" content="Overflow clipping does not affect elements
which are ancestors to the element being clipped.">
but, even though this may be correct, this is not what the testcase is
about.
An ancestor that has overflow: scroll and a defined/set width will be
clipped while its descendant(s) will not be clipped.
Actual code
-----------
<meta name="assert" content="Overflow clipping does not affect
elements which are ancestors to the element being clipped.">
<style type="text/css">
#div1
{
border: solid;
height: 50px;
overflow: scroll;
width: 100px;
}
div div
{
width: 200px;
}
</style>
</head>
<body>
<p>Test passes if there is an active scrolling mechanism in the
box below that can horizontally scroll the "Filler Text".</p>
<div id="div1">
<div>Filler Text</div>
</div>
Proposed correction
-------------------
<meta name="assert" content="Overflow clipping which can apply
on an ancestor will not apply to its descendants (child,
grand-child, children, grand-children, etc).">
<style type="text/css">
div#ancestor
{
border: solid;
height: 50px;
overflow: scroll;
width: 100px;
}
div#descendant
{
width: 200px;
}
</style>
</head>
<body>
<p>Test passes if there is an active scrolling mechanism in the
box below that can horizontally scroll the "Filler Text".</p>
<div id="ancestor">
<div id="descendant">Filler Text</div>
</div>
regards, Gérard
--
Contributions to the CSS 2.1 test suite:
http://www.gtalbot.org/BrowserBugsSection/css21testsuite/
CSS 2.1 Test suite RC6, March 23rd 2011
http://test.csswg.org/suites/css2.1/20110323/html4/toc.html
CSS 2.1 test suite contributors:
http://test.csswg.org/source/contributors/
Received on Tuesday, 31 May 2011 13:14:00 UTC