mirror of
https://github.com/servo/servo.git
synced 2025-09-04 03:58:23 +01:00
Update web-platform-tests to revision 58eb04cecbbec2e18531ab440225e38944a9c444
This commit is contained in:
parent
25e8bf69e6
commit
665817d2a6
35333 changed files with 1818077 additions and 16036 deletions
|
@ -0,0 +1,24 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
|
||||
<head>
|
||||
<title>CSS Test: :active (basic test)</title>
|
||||
<link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
|
||||
<link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/selectors/active/004.html" type="text/html"/>
|
||||
<link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#dynamic-pseudo-classes" />
|
||||
<meta content="may interact" name="flags" />
|
||||
<style type="text/css">
|
||||
p, span { display: block; margin: 0; padding: 1em; color: navy; }
|
||||
.a :active { background: green; color: white; }
|
||||
.b *:active { background: green; color: white; }
|
||||
.c :active { background: green; color: white; }
|
||||
.d p:active { background: green; color: white; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>Activating any of the text below may change its background to green. Test still passes if the text background does not change to green.</p>
|
||||
<div class="a"> <span>Activate this text.</span> </div>
|
||||
<div class="b"> <span>Activate this text.</span> </div>
|
||||
<div class="c"> <p>Activate this text.</p> </div>
|
||||
<div class="d"> <p>Activate this text.</p> </div>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,13 @@
|
|||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<link rel="help" href="http://www.w3.org/TR/CSS2/conform.html#conformance" />
|
||||
<link rel="stylesheet" href="001c.css" type="text/css" title="Green" />
|
||||
<link rel="alternate stylesheet" href="001a.css" type="text/css" title="Red" />
|
||||
<link rel="alternate stylesheet" href="001b.css" type="text/css" title="Red" />
|
||||
<link rel="alternate stylesheet" href="001d.css" type="text/css" title="Blue" />
|
||||
</head>
|
||||
<body>
|
||||
<h1>Alternate stylesheet test</h1>
|
||||
<p>There should be four alternate stylesheets, and "Green" should be the selected one.</p>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1 @@
|
|||
:root { color: yellow; }
|
|
@ -0,0 +1 @@
|
|||
:root { background: maroon; }
|
|
@ -0,0 +1 @@
|
|||
:root { color: black; background: #459b75; }
|
|
@ -0,0 +1 @@
|
|||
:root { color: white; background: blue; }
|
|
@ -0,0 +1,80 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Alternates and generated content (poorly written test)</title>
|
||||
<link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
|
||||
<link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/cascade/alternates/002.html"/>
|
||||
<link rel="help" href="http://www.w3.org/TR/CSS2/conform.html#conformance" />
|
||||
<style type="text/css">
|
||||
table td { border: solid; padding: 1em; }
|
||||
</style>
|
||||
<style type="text/css" title="Alternate one (Preferred)">
|
||||
#failed { display: none; }
|
||||
#a:before { content: 'Welcome to an alternate stylesheet test.'; display: block; }
|
||||
#ac:before { display: block; content: '\A0'; border-top: solid orange thick; }
|
||||
#b *, #b :before { float: left; border: solid; content: ' '; padding: 1em; margin: 1em; display: block; }
|
||||
#b:after { content: 'All the content on this page is generated using :before and :after pseudo-elements.'
|
||||
'Switch to the other stylesheet, then switch back, then reload and see if anything changes.'
|
||||
'Note that there should be some brief text on the other sheet too.'; }
|
||||
#c { float: right; border: dotted; }
|
||||
#ca { float: left; margin: 1em; font: 900 3em cursive; border: solid navy; -moz-border-radius: 100% 100% 0 100%; padding: 0.25em 0.75em; background: blue ; color: white; }
|
||||
#ca:before { content: 'M'; }
|
||||
#ca :after { content: 'O'; }
|
||||
#c:after { display: block; content: 'cow'; background: url(002a.jpeg); clear: left; margin: -6em 0 0 13em; width: 250px; height: 195px; }
|
||||
</style>
|
||||
<style type="text/css" title="Alternate two">
|
||||
#failed { display: none; }
|
||||
#ca:after { content: 'This is a different stylesheeet.'; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p id="failed">Failed.</p>
|
||||
<div id="test">
|
||||
<div id="a">
|
||||
<div id="aa">
|
||||
</div>
|
||||
<div id="ab">
|
||||
<span id="aba"></span>
|
||||
<span id="abb"></span>
|
||||
</div>
|
||||
<div id="ac">
|
||||
</div>
|
||||
<div id="ad">
|
||||
</div>
|
||||
</div>
|
||||
<div id="b">
|
||||
<div id="bd">
|
||||
<span id="baa"></span>
|
||||
</div>
|
||||
<div id="bb">
|
||||
</div>
|
||||
<div id="bc">
|
||||
</div>
|
||||
<div id="bd">
|
||||
</div>
|
||||
</div>
|
||||
<div id="c">
|
||||
<div id="ca">
|
||||
<span id="caa"></span>
|
||||
<span id="cab"></span>
|
||||
</div>
|
||||
<div id="cb">
|
||||
</div>
|
||||
<div id="cc">
|
||||
</div>
|
||||
<div id="cd">
|
||||
</div>
|
||||
<div id="d">
|
||||
<div id="da">
|
||||
</div>
|
||||
<div id="db">
|
||||
</div>
|
||||
<div id="dc">
|
||||
</div>
|
||||
<div id="dd">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
Binary file not shown.
After Width: | Height: | Size: 7.7 KiB |
|
@ -0,0 +1,29 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Alternates and generated content (poorly written test)</title>
|
||||
<link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
|
||||
<link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/cascade/alternates/003.html"/>
|
||||
<link rel="help" href="http://www.w3.org/TR/CSS2/conform.html#conformance" />
|
||||
<style type="text/css">
|
||||
.control { display: inline; font: 1em/1 Ahem, sans-serif; background: red; color: white; }
|
||||
.undersheet { height: 100px; width: 100px; background: red; margin: 0 0 -100px 0; }
|
||||
.pass-condition { margin: 1em 0; }
|
||||
p, div { color: navy; margin: 0; }
|
||||
</style>
|
||||
<style type="text/css" title="Alternate one (Preferred)">
|
||||
p:before { content: 'x'; font: 50px/1 Ahem; border: 25px solid; display: block; width: 50px; }
|
||||
</style>
|
||||
<style type="text/css" title="Alternate two">
|
||||
p:before { content: 'xxxx'; font: 25px/1 Ahem; color: green; }
|
||||
p:after { content: '\A0'; height: 75px; width: 100px; background: green; display: block; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="control">Ahem_font_required_for_this_test.</div>
|
||||
<div class="pass-condition">Switch to the alternate stylesheet. The blue block should turn green.</div>
|
||||
<div class="undersheet"></div>
|
||||
<p></p>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,24 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Multiple Preferred Stylesheets</title>
|
||||
<link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
|
||||
<link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/cascade/alternates/004.html"/>
|
||||
<link rel="help" href="http://www.w3.org/TR/CSS2/conform.html#conformance" />
|
||||
<link rel="stylesheet" title="Preferred" href="004a.css">
|
||||
<link rel="stylesheet" title="Alternate One" href="004b.css">
|
||||
<link rel="alternate stylesheet" title="Alternate Two" href="004c.css">
|
||||
<link rel="stylesheet" title="Preferred" href="004d.css">
|
||||
<link rel="stylesheet" title="Alternate One" href="004e.css">
|
||||
<link rel="alternate stylesheet" title="Alternate Two" href="004f.css">
|
||||
</head>
|
||||
<body>
|
||||
<p class="a">This should be green.</p>
|
||||
<p class="b">This should be green.</p>
|
||||
<p class="c">This should be green.</p>
|
||||
<p class="d">This should be green.</p>
|
||||
<p class="e">This should be green.</p>
|
||||
<p class="f">This should be green.</p>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1 @@
|
|||
.a, .b, .c, .e, .f { color: green; }
|
|
@ -0,0 +1 @@
|
|||
.b { color: yellow; background: red; }
|
|
@ -0,0 +1 @@
|
|||
.c { color: yellow; background: red; }
|
|
@ -0,0 +1 @@
|
|||
.d { color: green; }
|
|
@ -0,0 +1 @@
|
|||
.e { color: yellow; background: red; }
|
|
@ -0,0 +1 @@
|
|||
.f { color: yellow; background: red; }
|
|
@ -0,0 +1,29 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Multiple Preferred Stylesheets and the Disabled Attribute</title>
|
||||
<link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
|
||||
<link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/cascade/alternates/005.html"/>
|
||||
<link rel="help" href="http://www.w3.org/TR/CSS2/conform.html#conformance" />
|
||||
<link rel="stylesheet" title="Preferred" href="005a.css">
|
||||
<link rel="stylesheet" title="Alternate One" href="005b.css">
|
||||
<script type="text/javascript">
|
||||
var links = document.getElementsByTagName('LINK');
|
||||
links[0].disabled = true;
|
||||
links[1].disabled = false;
|
||||
</script>
|
||||
<link rel="alternate stylesheet" title="Alternate Two" href="005c.css">
|
||||
<link rel="stylesheet" title="Preferred" href="005d.css">
|
||||
<link rel="stylesheet" title="Alternate One" href="005e.css">
|
||||
<link rel="alternate stylesheet" title="Alternate Two" href="005f.css">
|
||||
</head>
|
||||
<body>
|
||||
<p class="a">This should be green.</p>
|
||||
<p class="b">This should be green.</p>
|
||||
<p class="c">This should be green.</p>
|
||||
<p class="d">This should be green.</p>
|
||||
<p class="e">This should be green.</p>
|
||||
<p class="f">This should be green.</p>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1 @@
|
|||
.a { color: yellow; background: red; }
|
|
@ -0,0 +1 @@
|
|||
.b { color: green; }
|
|
@ -0,0 +1 @@
|
|||
.c { color: yellow; background: red; }
|
|
@ -0,0 +1 @@
|
|||
.d { color: yellow; background: red; }
|
|
@ -0,0 +1 @@
|
|||
.a, .c, .d, .e, .f { color: green; }
|
|
@ -0,0 +1 @@
|
|||
.f { color: yellow; background: red; }
|
|
@ -0,0 +1,21 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Preferred Stylesheets (Control Test)</title>
|
||||
<link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
|
||||
<link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/cascade/alternates/006-no-script.html"/>
|
||||
<link rel="help" href="http://www.w3.org/TR/CSS2/conform.html#conformance" />
|
||||
<link rel="alternate stylesheet" title="Alternate One" href="006a.css">
|
||||
<link rel="alternate stylesheet" title="Preferred" href="006b.css">
|
||||
<link rel="stylesheet" title="Preferred" href="006c.css"> <!-- enables 006b -->
|
||||
<link rel="alternate stylesheet" title="Alternate One" href="006d.css">
|
||||
</head>
|
||||
<body>
|
||||
<p class="a">This should be green.</p>
|
||||
<p class="b">This should be green.</p>
|
||||
<p class="c">This should be green.</p>
|
||||
<p class="d">This should be green.</p>
|
||||
<p>If this test fails, then <a href="006.html">test 006</a> is meaningless.</p>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,24 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Preferred Stylesheets and the Disabled Attribute</title>
|
||||
<link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
|
||||
<link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/cascade/alternates/006.html"/>
|
||||
<link rel="help" href="http://www.w3.org/TR/CSS2/conform.html#conformance" />
|
||||
<link rel="alternate stylesheet" title="Alternate One" href="006a.css">
|
||||
<link rel="alternate stylesheet" title="Preferred" href="006b.css">
|
||||
<script type="text/javascript">
|
||||
document.getElementsByTagName('LINK')[0].disabled = false; // enables 006a
|
||||
</script>
|
||||
<link rel="stylesheet" title="Preferred" href="006c.css"> <!-- redisables 006a, enables 006b -->
|
||||
<link rel="alternate stylesheet" title="Alternate One" href="006d.css">
|
||||
</head>
|
||||
<body>
|
||||
<p class="a">This should be green.</p>
|
||||
<p class="b">This should be green.</p>
|
||||
<p class="c">This should be green.</p>
|
||||
<p class="d">This should be green.</p>
|
||||
<p>This test is meaningless if <a href="006.html">test 006-no-script</a> fails.</p>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1 @@
|
|||
.a { color: yellow; background: red; }
|
|
@ -0,0 +1 @@
|
|||
.a, .b, .d { color: green; }
|
|
@ -0,0 +1 @@
|
|||
.c { color: green; }
|
|
@ -0,0 +1 @@
|
|||
.d { color: yellow; background: red; }
|
|
@ -0,0 +1,4 @@
|
|||
See also:
|
||||
http://www.hixie.ch/tests/adhoc/css/cascade/import/
|
||||
http://www.hixie.ch/tests/evil/mixed/cascade/altcascade.html
|
||||
http://www.hixie.ch/tests/evil/mixed/cascade/minialtcascade.html
|
File diff suppressed because one or more lines are too long
|
@ -0,0 +1,19 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>Compact: Inheriting from the right element</title>
|
||||
<link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
|
||||
<link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/compact/001-alt.html"/>
|
||||
<style type="text/css">
|
||||
.compact { display: compact; color: inherit; }
|
||||
.compact-parent, span { color: green; }
|
||||
.compact-sibling { color: red; margin: 0 0 0 20em; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>There should be no red below.</p>
|
||||
<div class="compact-parent">
|
||||
<div class="compact"> This line should be green. </div>
|
||||
<div class="compact-sibling"> <span>(same line)</span> </div>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,18 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>Compact: Joining the line box model without changing the inheritance chain</title>
|
||||
<link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
|
||||
<link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/compact/001.html"/>
|
||||
<style type="text/css">
|
||||
.compact { display: compact; }
|
||||
.block { display: block; color: red; background: lime; line-height: 0; margin-left: 10em; }
|
||||
span { color: black; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>There should be no red below.</p>
|
||||
<div class="compact"> Test: </div>
|
||||
<div class="block"> <span>This sentence should have a green background.</span> </div>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,22 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>Compact: Correct vertical alignment</title>
|
||||
<link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
|
||||
<link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/compact/002.html"/>
|
||||
<style type="text/css">
|
||||
.control { display: inline; font: 1em/1 Ahem, sans-serif; background: red; color: white; }
|
||||
.container { background: red; color: green; width: 2em; font: 2em/1 Ahem; }
|
||||
.compact { display: compact; }
|
||||
.block { display: block; margin: 0 0 0 1em; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="control">Ahem_font_required_for_this_test.</div>
|
||||
<p>There should be a single green rectangle square below.</p>
|
||||
<div class="container">
|
||||
<div class="compact"> X </div>
|
||||
<div class="block"> X </div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,6 @@
|
|||
For these tests you will need Todd Fahrner's Ahem font, which you can
|
||||
download from:
|
||||
|
||||
http://www.hixie.ch/resources/fonts/
|
||||
|
||||
Versions for Mac, Unix and Windows are available.
|
|
@ -0,0 +1,3 @@
|
|||
padding on the compact box
|
||||
checking the compact box doesn't get put in the margin when it doesn't fit (e.g. takes two lines)
|
||||
checking that a trailing \A doesn't cause two lines
|
|
@ -0,0 +1,19 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>Mozilla CSS: -moz-float-edge: content-box</title>
|
||||
<link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
|
||||
<link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/mozilla/float-edge/001.html"/>
|
||||
<style type="text/css">
|
||||
p { margin: 0; }
|
||||
div { border: ridge; }
|
||||
.left { float: left; margin: 1em; width: 100px; }
|
||||
.center { margin: 1em auto; width: 100px; -moz-float-edge: content-box; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>Normal Behaviour (-moz-float-edge: content-box)</p>
|
||||
<div class="left">left</div>
|
||||
<div class="center">center</div>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,19 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>Mozilla CSS: -moz-float-edge: padding-box</title>
|
||||
<link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
|
||||
<link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/mozilla/float-edge/002.html"/>
|
||||
<style type="text/css">
|
||||
p { margin: 0; }
|
||||
div { border: ridge; }
|
||||
.left { float: left; margin: 1em; width: 100px; }
|
||||
.center { margin: 1em auto; width: 100px; -moz-float-edge: padding-box; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>Border should overlap, nothing else (-moz-float-edge: padding-box)</p>
|
||||
<div class="left">left</div>
|
||||
<div class="center">center</div>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,19 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>Mozilla CSS: -moz-float-edge: border-box</title>
|
||||
<link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
|
||||
<link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/mozilla/float-edge/003.html"/>
|
||||
<style type="text/css">
|
||||
p { margin: 0; }
|
||||
div { border: ridge; }
|
||||
.left { float: left; margin: 1em; width: 100px; }
|
||||
.center { margin: 1em auto; width: 100px; -moz-float-edge: border-box; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>Boxes should not overlap (-moz-float-edge: border-box)</p>
|
||||
<div class="left">left</div>
|
||||
<div class="center">center</div>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,19 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>Mozilla CSS: -moz-float-edge: margin-box</title>
|
||||
<link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
|
||||
<link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/mozilla/float-edge/004.html"/>
|
||||
<style type="text/css">
|
||||
p { margin: 0; }
|
||||
div { border: ridge; }
|
||||
.left { float: left; margin: 1em; width: 100px; }
|
||||
.center { margin: 1em auto; width: 100px; -moz-float-edge: margin-box; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>Boxes should not overlap and should always stay 1em apart (-moz-float-edge: margin-box)</p>
|
||||
<div class="left">left</div>
|
||||
<div class="center">center</div>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,21 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>Mozilla CSS: -moz-float-edge: content-box and alignment</title>
|
||||
<link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
|
||||
<link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/mozilla/float-edge/005.html"/>
|
||||
<style type="text/css">
|
||||
p { margin: 0; }
|
||||
div { border: ridge; }
|
||||
.left { float: left; margin: 1em; width: 300px; }
|
||||
.center { margin: 1em auto; width: 100px; -moz-float-edge: content-box; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>Normal Behaviour (-moz-float-edge: content-box) -- the box should
|
||||
be centered relative to the viewport width and not the remaining
|
||||
space.</p>
|
||||
<div class="left">left</div>
|
||||
<div class="center">center</div>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,21 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>Mozilla CSS: -moz-float-edge: padding-box and alignment</title>
|
||||
<link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
|
||||
<link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/mozilla/float-edge/006.html"/>
|
||||
<style type="text/css">
|
||||
p { margin: 0; }
|
||||
div { border: ridge; }
|
||||
.left { float: left; margin: 1em; width: 300px; }
|
||||
.center { margin: 1em auto; width: 100px; -moz-float-edge: padding-box; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>-moz-float-edge: padding-box -- the box should be centered
|
||||
relative to the remaining space (ignoring the border) and not the
|
||||
viewport.</p>
|
||||
<div class="left">left</div>
|
||||
<div class="center">center</div>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,20 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>Mozilla CSS: -moz-float-edge: border-box and alignment</title>
|
||||
<link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
|
||||
<link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/mozilla/float-edge/007.html"/>
|
||||
<style type="text/css">
|
||||
p { margin: 0; }
|
||||
div { border: ridge; }
|
||||
.left { float: left; margin: 1em; width: 300px; }
|
||||
.center { margin: 1em auto; width: 100px; -moz-float-edge: border-box; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>-moz-float-edge: border-box -- the box should be centered
|
||||
relative to the visible remaining space and not the viewport.</p>
|
||||
<div class="left">left</div>
|
||||
<div class="center">center</div>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,22 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>Mozilla CSS: -moz-float-edge: margin-box and alignment</title>
|
||||
<link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
|
||||
<link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/mozilla/float-edge/008.html"/>
|
||||
<style type="text/css">
|
||||
p { margin: 0; }
|
||||
div { border: ridge; }
|
||||
.left { float: left; margin: 1em; width: 300px; }
|
||||
.center { margin: 1em auto; width: 100px; -moz-float-edge: margin-box; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>-moz-float-edge: margin-box -- the box should be centered
|
||||
relative to the remaining space and not the viewport (note that the
|
||||
float has 1em margins so the remaining space should be less than it
|
||||
appears).</p>
|
||||
<div class="left">left</div>
|
||||
<div class="center">center</div>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,23 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>Mozilla CSS: -moz-float-edge: content-box and alignment (right)</title>
|
||||
<link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
|
||||
<link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/mozilla/float-edge/009.html"/>
|
||||
<style type="text/css">
|
||||
p { margin: 0; }
|
||||
div { border: ridge; }
|
||||
.right { float: right; margin: 1em; width: 300px; }
|
||||
.center { margin: 1em auto; width: 100px; -moz-float-edge: content-box; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>-moz-float-edge: content-box -- default behaviour. The center box
|
||||
should be centered relative to the viewport. The center box should
|
||||
not get inexplicably taller until the right floater is overlapping
|
||||
it. The box should overlap the floater if needed, but the text
|
||||
should flow around it.</p>
|
||||
<div class="right">right</div>
|
||||
<div class="center">center</div>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,24 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>Mozilla CSS: -moz-float-edge: padding-box and alignment (right)</title>
|
||||
<link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
|
||||
<link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/mozilla/float-edge/010.html"/>
|
||||
<style type="text/css">
|
||||
p { margin: 0; }
|
||||
div { border: ridge; }
|
||||
.right { float: right; margin: 1em; width: 300px; }
|
||||
.center { margin: 1em auto; width: 100px; -moz-float-edge: padding-box; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>-moz-float-edge: padding-box -- the center box should be centered
|
||||
relative to the remaining space and not the viewport. The center box
|
||||
should not get inexplicably taller until the right floater is
|
||||
touching it. (This should be identical to the margin-box case except
|
||||
that the "remaining space" is determined from the padding edge not
|
||||
the margin edge.)</p>
|
||||
<div class="right">right</div>
|
||||
<div class="center">center</div>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,24 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>Mozilla CSS: -moz-float-edge: border-box and alignment (right)</title>
|
||||
<link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
|
||||
<link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/mozilla/float-edge/011.html"/>
|
||||
<style type="text/css">
|
||||
p { margin: 0; }
|
||||
div { border: ridge; }
|
||||
.right { float: right; margin: 1em; width: 300px; }
|
||||
.center { margin: 1em auto; width: 100px; -moz-float-edge: border-box; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>-moz-float-edge: border-box -- the center box should be centered
|
||||
relative to the remaining space and not the viewport. The center box
|
||||
should not get inexplicably taller until the right floater is
|
||||
touching it. (This should be identical to the margin-box case except
|
||||
that the "remaining space" is determined from the border edge not
|
||||
the margin edge.)</p>
|
||||
<div class="right">right</div>
|
||||
<div class="center">center</div>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,22 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>Mozilla CSS: -moz-float-edge: margin-box and alignment (right)</title>
|
||||
<link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
|
||||
<link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/mozilla/float-edge/012.html"/>
|
||||
<style type="text/css">
|
||||
p { margin: 0; }
|
||||
div { border: ridge; }
|
||||
.right { float: right; margin: 1em; width: 300px; }
|
||||
.center { margin: 1em auto; width: 100px; -moz-float-edge: margin-box; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>-moz-float-edge: margin-box -- the center box should be centered
|
||||
relative to the remaining space and not the viewport. The center box
|
||||
should not get inexplicably taller until the right floater is
|
||||
touching it.</p>
|
||||
<div class="right">right</div>
|
||||
<div class="center">center</div>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,21 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>Mozilla CSS: -moz-float-edge: content-box and unconstrained boxes</title>
|
||||
<link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
|
||||
<link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/mozilla/float-edge/013.html"/>
|
||||
<style type="text/css">
|
||||
p { margin: 0; }
|
||||
div { border: ridge; }
|
||||
.left { float: left; margin: 1em; width: 100px; }
|
||||
.normal { margin: 1em 0; -moz-float-edge: content-box; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>Normal Behaviour (-moz-float-edge: content-box) -- floater should
|
||||
be under the normal block but normal block text should wrap around
|
||||
the floater.</p>
|
||||
<div class="left">left</div>
|
||||
<div class="normal">normal block</div>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,21 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>Mozilla CSS: -moz-float-edge: margin-box and unconstrained boxes</title>
|
||||
<link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
|
||||
<link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/mozilla/float-edge/016.html"/>
|
||||
<style type="text/css">
|
||||
p { margin: 0; }
|
||||
div { border: ridge; }
|
||||
.left { float: left; margin: 1em; width: 100px; }
|
||||
.normal { margin: 1em 0; -moz-float-edge: margin-box; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>Normal Behaviour (-moz-float-edge: margin-box) -- floater should
|
||||
be to the left of the normal block, normal block should be 1em away
|
||||
from the floater and fill the rest of the viewport.</p>
|
||||
<div class="left">left</div>
|
||||
<div class="normal">normal block</div>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,21 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>Mozilla CSS: -moz-float-edge: margin-box and unconstrained boxes (right)</title>
|
||||
<link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
|
||||
<link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/mozilla/float-edge/020.html"/>
|
||||
<style type="text/css">
|
||||
p { margin: 0; }
|
||||
div { border: ridge; }
|
||||
.right { float: right; margin: 1em; width: 100px; }
|
||||
.normal { margin: 1em 0; -moz-float-edge: margin-box; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>Normal Behaviour (-moz-float-edge: margin-box) -- floater should
|
||||
be to the right of the normal block, normal block should be 1em away
|
||||
from the floater and fill the rest of the viewport.</p>
|
||||
<div class="right">right</div>
|
||||
<div class="normal">normal block</div>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,2 @@
|
|||
Note: It would be wise to collapse your navigation bar when testing
|
||||
this so that the document can collapse all the way.
|
|
@ -0,0 +1,16 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>CSS Inline Box Model: Layering Model</title>
|
||||
<link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
|
||||
<link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/inline/mozilla/001.html"/>
|
||||
<style type="text/css">
|
||||
img { border-bottom: 1em solid green; vertical-align: text-bottom; }
|
||||
span { background: red; -moz-opacity: 0.99; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>Test: <span><img src="support/cat.png" alt="image"></span></p>
|
||||
<p>Astrophy should be sitting on a green bar.</p>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,14 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
|
||||
<head>
|
||||
<title>CSS Colours: HSL</title>
|
||||
<link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
|
||||
<link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/color/005.html"/>
|
||||
<style type="text/css">
|
||||
p { color: hsl(120, 50%, 50%); font-weight: bold; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>This text should be green.</p>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,38 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>CSS Stacking Context Model: Opacity (Evil test)</title>
|
||||
<link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
|
||||
<link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/model/stacking/opacity/001.html"/>
|
||||
<style type="text/css">
|
||||
.block { height: 1em; width: 4em; display: block; }
|
||||
.float { height: 1em; width: 4em; float: left; margin-bottom: -1em; }
|
||||
.inline { display: inline; }
|
||||
.spacer { padding: 0.4em 1.9em; height: 0.2em; width: 0.2em; vertical-align: bottom; }
|
||||
div { background: red; font: 1em/1 Ahem, monospace; }
|
||||
.block-control.block, .float-control.float, .inline-control.inline, .test.float { background: green; }
|
||||
.test.float { opacity: 0.99; }
|
||||
.fail.condition { color: yellow; background: red; } /* test for multiclass bug */
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p class="pass condition">There should be a single green square below.</p>
|
||||
<div class="block-control block">
|
||||
</div>
|
||||
<div class="float-control block">
|
||||
<div class="float-control float"></div>
|
||||
</div>
|
||||
<div class="inline-control block">
|
||||
<div class="inline-control float"></div>
|
||||
<div class="inline-control inline">
|
||||
<img src="support/1x1-green.png" class="spacer" alt="FAIL">
|
||||
</div>
|
||||
</div>
|
||||
<div class="test block">
|
||||
<div class="test float"></div>
|
||||
<div class="test inline">
|
||||
<img src="support/1x1-green.png" class="spacer" alt="FAIL">
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,17 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Mozilla CSS: -moz-opacity and text</title>
|
||||
<link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
|
||||
<link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/mozilla/001.html"/>
|
||||
<style type="text/css">
|
||||
div { font: 900 5em serif; }
|
||||
.a { -moz-opacity: 0.999; }
|
||||
.b { -moz-opacity: 1.000; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="a">WWW</div>
|
||||
<div class="b">WWW</div>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,39 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title>CSS: -moz-opacity with PNG backgrounds</title>
|
||||
<link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
|
||||
<link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/mozilla/opacity/001.xml"/>
|
||||
<style type="text/css">
|
||||
.left {
|
||||
background: url(mozilla-opacity-black-0.0-0.5-h.png) center center no-repeat;
|
||||
-moz-opacity: 0.50; z-index: 1;
|
||||
}
|
||||
.right {
|
||||
background: url(mozilla-opacity-black-0.5-0.0-h.png) center center no-repeat;
|
||||
-moz-opacity: 1.00; z-index: 0;
|
||||
}
|
||||
.gradient {
|
||||
border: 2px solid; width: 500px; height: 250px; position: absolute;
|
||||
}
|
||||
.control {
|
||||
border: 2px solid; background: rgb(50%, 50%, 50%); width: 500px; height: 250px;
|
||||
position: absolute; margin-top: 260px;
|
||||
}
|
||||
body {
|
||||
background: white; color: black;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<h1>This test is apparently invalid!</h1>
|
||||
<p>The following two blocks should look IDENTICAL in every way. I
|
||||
would recommend taking a screen shot and programmatically comparing
|
||||
them to be quite, quite sure! (Note. I have yet to hear a colour and
|
||||
blending expert say that this test is valid. I have no idea about
|
||||
these issues, so I may be spouting nonsense here.)</p>
|
||||
<div class="right gradient"/>
|
||||
<div class="left gradient"/>
|
||||
<div class="control"/>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,18 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title>CSS: -moz-opacity with a stretched smooth PNG</title>
|
||||
<link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
|
||||
<link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/mozilla/opacity/002.xml"/>
|
||||
<style type="text/css">
|
||||
img { position: fixed; left: 0; bottom: 0; right: 0; top: 0; -moz-opacity: 0.555; }
|
||||
p { font: 900 2em sans-serif; margin: 1em; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div><img src="black-0.5-0.0-h.png" alt="This is an image test."/></div>
|
||||
<p>This page has a gradient background stretched to fit the
|
||||
viewport. It should be completely smooth. Resize your window to test
|
||||
performance.</p>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,27 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title>CSS: -moz-opacity with glyphs and transparent PNG backgrounds</title>
|
||||
<link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
|
||||
<link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/mozilla/opacity/003.xml"/>
|
||||
<style type="text/css">
|
||||
body { background: white url(mozilla-opacity-black-0.5-0.0-h.png) repeat-y fixed; color: black; }
|
||||
p { font: 900 2em sans-serif; margin: 1em; }
|
||||
div { font: 900 9em sans-serif; margin: 0 0.5em; line-height: 1.0; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>The following glyphs have varying levels of opacity.</p>
|
||||
<div style="-moz-opacity: 1.0">Wשغ</div>
|
||||
<div style="-moz-opacity: 0.9">Wשغ</div>
|
||||
<div style="-moz-opacity: 0.8">Wשغ</div>
|
||||
<div style="-moz-opacity: 0.7">Wשغ</div>
|
||||
<div style="-moz-opacity: 0.6">Wשغ</div>
|
||||
<div style="-moz-opacity: 0.5">Wשغ</div>
|
||||
<div style="-moz-opacity: 0.4">Wשغ</div>
|
||||
<div style="-moz-opacity: 0.3">Wשغ</div>
|
||||
<div style="-moz-opacity: 0.2">Wשغ</div>
|
||||
<div style="-moz-opacity: 0.1">Wשغ</div>
|
||||
<div style="-moz-opacity: 0.0">Wשغ</div>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,18 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title>CSS: -moz-opacity nesting</title>
|
||||
<link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
|
||||
<link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/mozilla/opacity/004.xml"/>
|
||||
<style type="text/css">
|
||||
.half { -moz-opacity: 0.5; }
|
||||
span { -moz-opacity: 1.0; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>The "X"s in the middle of the following block should be darker than those on the edges.</p>
|
||||
<div><span class="half">XXX<span class="half">XXX<span class="half">XXX</span>XXX</span>XXX</span></div>
|
||||
<div><span class="half">XXX<span>XXX<span>XXX</span>XXX</span>XXX</span></div>
|
||||
<div><span class="half">XXX<span class="half">XXX<span class="half">XXX</span>XXX</span>XXX</span></div>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,18 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title>CSS: transparent text over a stretched smooth alpha transparent PNG</title>
|
||||
<link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
|
||||
<link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/mozilla/opacity/005.xml"/>
|
||||
<style type="text/css">
|
||||
img { position: fixed; left: 0; bottom: 0; right: 0; top: 0; }
|
||||
p { font: 900 2em sans-serif; margin: 1em; -moz-opacity: 0.555; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div><img src="black-0.5-0.0-h.png" alt="This is an image test."/></div>
|
||||
<p>This page has a gradient background stretched to fit the
|
||||
viewport. It should be completely smooth. Resize your window to test
|
||||
performance.</p>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,18 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title>CSS: text over a stretched smooth alpha transparent PNG (no opacity -- control)</title>
|
||||
<link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
|
||||
<link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/mozilla/opacity/006.xml"/>
|
||||
<style type="text/css">
|
||||
img { position: fixed; left: 0; bottom: 0; right: 0; top: 0; }
|
||||
p { font: 900 2em sans-serif; margin: 1em; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div><img src="black-0.5-0.0-h.png" alt="This is an image test."/></div>
|
||||
<p>This page has a gradient background stretched to fit the
|
||||
viewport. It should be completely smooth. Resize your window to test
|
||||
performance.</p>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,18 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title>CSS: simple -moz-opacity test</title>
|
||||
<link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
|
||||
<link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/mozilla/opacity/007.xml"/>
|
||||
<style type="text/css">
|
||||
div { position: absolute; width: 5em; height: 2.5em; }
|
||||
.a { background: green; }
|
||||
.b { background: red; -moz-opacity: 0; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>The following block should be green:</p>
|
||||
<div class="a"/>
|
||||
<div class="b"/>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,3 @@
|
|||
WARNING! These tests are not simple QA tests, they are of a more
|
||||
exploratory nature. Careful judgement will have to be made when
|
||||
determining the result of running these tests.
|
Binary file not shown.
After Width: | Height: | Size: 1.7 KiB |
Binary file not shown.
After Width: | Height: | Size: 1.7 KiB |
|
@ -0,0 +1,605 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title>The X11 Colours</title>
|
||||
<link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
|
||||
<link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/color/006.html"/>
|
||||
<link rel="help" href="http://www.w3.org/TR/CSS21/colors.html#colors" />
|
||||
<style type="text/css">
|
||||
.c { width: 2em; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>The first two columns should be identical.</p>
|
||||
<table class="x11colortable">
|
||||
<tr>
|
||||
<td class="c" style="background:aliceblue">
|
||||
<td class="c" style="background:#f0f8ff">
|
||||
<td>aliceblue
|
||||
<tr>
|
||||
<td class="c" style="background:antiquewhite">
|
||||
<td class="c" style="background:#faebd7">
|
||||
<td>antiquewhite
|
||||
<tr>
|
||||
<td class="c" style="background:aqua">
|
||||
<td class="c" style="background:#00ffff">
|
||||
<td>aqua
|
||||
<tr>
|
||||
<td class="c" style="background:aquamarine">
|
||||
<td class="c" style="background:#7fffd4">
|
||||
<td>aquamarine
|
||||
<tr>
|
||||
<td class="c" style="background:azure">
|
||||
<td class="c" style="background:#f0ffff">
|
||||
<td>azure
|
||||
<tr>
|
||||
<td class="c" style="background:beige">
|
||||
<td class="c" style="background:#f5f5dc">
|
||||
<td>beige
|
||||
<tr>
|
||||
<td class="c" style="background:bisque">
|
||||
<td class="c" style="background:#ffe4c4">
|
||||
<td>bisque
|
||||
<tr>
|
||||
<td class="c" style="background:black">
|
||||
<td class="c" style="background:#000000">
|
||||
<td>black
|
||||
<tr>
|
||||
<td class="c" style="background:blanchedalmond">
|
||||
<td class="c" style="background:#ffebcd">
|
||||
<td>blanchedalmond
|
||||
<tr>
|
||||
<td class="c" style="background:blue">
|
||||
<td class="c" style="background:#0000ff">
|
||||
<td>blue
|
||||
<tr>
|
||||
<td class="c" style="background:blueviolet">
|
||||
<td class="c" style="background:#8a2be2">
|
||||
<td>blueviolet
|
||||
<tr>
|
||||
<td class="c" style="background:brown">
|
||||
<td class="c" style="background:#a52a2a">
|
||||
<td>brown
|
||||
<tr>
|
||||
<td class="c" style="background:burlywood">
|
||||
<td class="c" style="background:#deb887">
|
||||
<td>burlywood
|
||||
<tr>
|
||||
<td class="c" style="background:cadetblue">
|
||||
<td class="c" style="background:#5f9ea0">
|
||||
<td>cadetblue
|
||||
<tr>
|
||||
<td class="c" style="background:chartreuse">
|
||||
<td class="c" style="background:#7fff00">
|
||||
<td>chartreuse
|
||||
<tr>
|
||||
<td class="c" style="background:chocolate">
|
||||
<td class="c" style="background:#d2691e">
|
||||
<td>chocolate
|
||||
<tr>
|
||||
<td class="c" style="background:coral">
|
||||
<td class="c" style="background:#ff7f50">
|
||||
<td>coral
|
||||
<tr>
|
||||
<td class="c" style="background:cornflowerblue">
|
||||
<td class="c" style="background:#6495ed">
|
||||
<td>cornflowerblue
|
||||
<tr>
|
||||
<td class="c" style="background:cornsilk">
|
||||
<td class="c" style="background:#fff8dc">
|
||||
<td>cornsilk
|
||||
<tr>
|
||||
<td class="c" style="background:crimson">
|
||||
<td class="c" style="background:#dc143c">
|
||||
<td>crimson
|
||||
<tr>
|
||||
<td class="c" style="background:cyan">
|
||||
<td class="c" style="background:#00ffff">
|
||||
<td>cyan
|
||||
<tr>
|
||||
<td class="c" style="background:darkblue">
|
||||
<td class="c" style="background:#00008b">
|
||||
<td>darkblue
|
||||
<tr>
|
||||
<td class="c" style="background:darkcyan">
|
||||
<td class="c" style="background:#008b8b">
|
||||
<td>darkcyan
|
||||
<tr>
|
||||
<td class="c" style="background:darkgoldenrod">
|
||||
<td class="c" style="background:#b8860b">
|
||||
<td>darkgoldenrod
|
||||
<tr>
|
||||
<td class="c" style="background:darkgray">
|
||||
<td class="c" style="background:#a9a9a9">
|
||||
<td>darkgray
|
||||
<tr>
|
||||
<td class="c" style="background:darkgreen">
|
||||
<td class="c" style="background:#006400">
|
||||
<td>darkgreen
|
||||
<tr>
|
||||
<td class="c" style="background:darkgrey">
|
||||
<td class="c" style="background:#a9a9a9">
|
||||
<td>darkgrey
|
||||
<tr>
|
||||
<td class="c" style="background:darkkhaki">
|
||||
<td class="c" style="background:#bdb76b">
|
||||
<td>darkkhaki
|
||||
<tr>
|
||||
<td class="c" style="background:darkmagenta">
|
||||
<td class="c" style="background:#8b008b">
|
||||
<td>darkmagenta
|
||||
<tr>
|
||||
<td class="c" style="background:darkolivegreen">
|
||||
<td class="c" style="background:#556b2f">
|
||||
<td>darkolivegreen
|
||||
<tr>
|
||||
<td class="c" style="background:darkorange">
|
||||
<td class="c" style="background:#ff8c00">
|
||||
<td>darkorange
|
||||
<tr>
|
||||
<td class="c" style="background:darkorchid">
|
||||
<td class="c" style="background:#9932cc">
|
||||
<td>darkorchid
|
||||
<tr>
|
||||
<td class="c" style="background:darkred">
|
||||
<td class="c" style="background:#8b0000">
|
||||
<td>darkred
|
||||
<tr>
|
||||
<td class="c" style="background:darksalmon">
|
||||
<td class="c" style="background:#e9967a">
|
||||
<td>darksalmon
|
||||
<tr>
|
||||
<td class="c" style="background:darkseagreen">
|
||||
<td class="c" style="background:#8fbc8f">
|
||||
<td>darkseagreen
|
||||
<tr>
|
||||
<td class="c" style="background:darkslateblue">
|
||||
<td class="c" style="background:#483d8b">
|
||||
<td>darkslateblue
|
||||
<tr>
|
||||
<td class="c" style="background:darkslategray">
|
||||
<td class="c" style="background:#2f4f4f">
|
||||
<td>darkslategray
|
||||
<tr>
|
||||
<td class="c" style="background:darkslategrey">
|
||||
<td class="c" style="background:#2f4f4f">
|
||||
<td>darkslategrey
|
||||
<tr>
|
||||
<td class="c" style="background:darkturquoise">
|
||||
<td class="c" style="background:#00ced1">
|
||||
<td>darkturquoise
|
||||
<tr>
|
||||
<td class="c" style="background:darkviolet">
|
||||
<td class="c" style="background:#9400d3">
|
||||
<td>darkviolet
|
||||
<tr>
|
||||
<td class="c" style="background:deeppink">
|
||||
<td class="c" style="background:#ff1493">
|
||||
<td>deeppink
|
||||
<tr>
|
||||
<td class="c" style="background:deepskyblue">
|
||||
<td class="c" style="background:#00bfff">
|
||||
<td>deepskyblue
|
||||
<tr>
|
||||
<td class="c" style="background:dimgray">
|
||||
<td class="c" style="background:#696969">
|
||||
<td>dimgray
|
||||
<tr>
|
||||
<td class="c" style="background:dimgrey">
|
||||
<td class="c" style="background:#696969">
|
||||
<td>dimgrey
|
||||
<tr>
|
||||
<td class="c" style="background:dodgerblue">
|
||||
<td class="c" style="background:#1e90ff">
|
||||
<td>dodgerblue
|
||||
<tr>
|
||||
<td class="c" style="background:firebrick">
|
||||
<td class="c" style="background:#b22222">
|
||||
<td>firebrick
|
||||
<tr>
|
||||
<td class="c" style="background:floralwhite">
|
||||
<td class="c" style="background:#fffaf0">
|
||||
<td>floralwhite
|
||||
<tr>
|
||||
<td class="c" style="background:forestgreen">
|
||||
<td class="c" style="background:#228b22">
|
||||
<td>forestgreen
|
||||
<tr>
|
||||
<td class="c" style="background:fuchsia">
|
||||
<td class="c" style="background:#ff00ff">
|
||||
<td>fuchsia
|
||||
<tr>
|
||||
<td class="c" style="background:gainsboro">
|
||||
<td class="c" style="background:#dcdcdc">
|
||||
<td>gainsboro
|
||||
<tr>
|
||||
<td class="c" style="background:ghostwhite">
|
||||
<td class="c" style="background:#f8f8ff">
|
||||
<td>ghostwhite
|
||||
<tr>
|
||||
<td class="c" style="background:gold">
|
||||
<td class="c" style="background:#ffd700">
|
||||
<td>gold
|
||||
<tr>
|
||||
<td class="c" style="background:goldenrod">
|
||||
<td class="c" style="background:#daa520">
|
||||
<td>goldenrod
|
||||
<tr>
|
||||
<td class="c" style="background:gray">
|
||||
<td class="c" style="background:#808080">
|
||||
<td>gray
|
||||
<tr>
|
||||
<td class="c" style="background:green">
|
||||
<td class="c" style="background:#008000">
|
||||
<td>green
|
||||
<tr>
|
||||
<td class="c" style="background:greenyellow">
|
||||
<td class="c" style="background:#adff2f">
|
||||
<td>greenyellow
|
||||
<tr>
|
||||
<td class="c" style="background:grey">
|
||||
<td class="c" style="background:#808080">
|
||||
<td>grey
|
||||
<tr>
|
||||
<td class="c" style="background:honeydew">
|
||||
<td class="c" style="background:#f0fff0">
|
||||
<td>honeydew
|
||||
<tr>
|
||||
<td class="c" style="background:hotpink">
|
||||
<td class="c" style="background:#ff69b4">
|
||||
<td>hotpink
|
||||
<tr>
|
||||
<td class="c" style="background:indianred">
|
||||
<td class="c" style="background:#cd5c5c">
|
||||
<td>indianred
|
||||
<tr>
|
||||
<td class="c" style="background:indigo">
|
||||
<td class="c" style="background:#4b0082">
|
||||
<td>indigo
|
||||
<tr>
|
||||
<td class="c" style="background:ivory">
|
||||
<td class="c" style="background:#fffff0">
|
||||
<td>ivory
|
||||
<tr>
|
||||
<td class="c" style="background:khaki">
|
||||
<td class="c" style="background:#f0e68c">
|
||||
<td>khaki
|
||||
<tr>
|
||||
<td class="c" style="background:lavender">
|
||||
<td class="c" style="background:#e6e6fa">
|
||||
<td>lavender
|
||||
<tr>
|
||||
<td class="c" style="background:lavenderblush">
|
||||
<td class="c" style="background:#fff0f5">
|
||||
<td>lavenderblush
|
||||
<tr>
|
||||
<td class="c" style="background:lawngreen">
|
||||
<td class="c" style="background:#7cfc00">
|
||||
<td>lawngreen
|
||||
<tr>
|
||||
<td class="c" style="background:lemonchiffon">
|
||||
<td class="c" style="background:#fffacd">
|
||||
<td>lemonchiffon
|
||||
<tr>
|
||||
<td class="c" style="background:lightblue">
|
||||
<td class="c" style="background:#add8e6">
|
||||
<td>lightblue
|
||||
<tr>
|
||||
<td class="c" style="background:lightcoral">
|
||||
<td class="c" style="background:#f08080">
|
||||
<td>lightcoral
|
||||
<tr>
|
||||
<td class="c" style="background:lightcyan">
|
||||
<td class="c" style="background:#e0ffff">
|
||||
<td>lightcyan
|
||||
<tr>
|
||||
<td class="c" style="background:lightgoldenrodyellow">
|
||||
<td class="c" style="background:#fafad2">
|
||||
<td>lightgoldenrodyellow
|
||||
<tr>
|
||||
<td class="c" style="background:lightgray">
|
||||
<td class="c" style="background:#d3d3d3">
|
||||
<td>lightgray
|
||||
<tr>
|
||||
<td class="c" style="background:lightgreen">
|
||||
<td class="c" style="background:#90ee90">
|
||||
<td>lightgreen
|
||||
<tr>
|
||||
<td class="c" style="background:lightgrey">
|
||||
<td class="c" style="background:#d3d3d3">
|
||||
<td>lightgrey
|
||||
<tr>
|
||||
<td class="c" style="background:lightpink">
|
||||
<td class="c" style="background:#ffb6c1">
|
||||
<td>lightpink
|
||||
<tr>
|
||||
<td class="c" style="background:lightsalmon">
|
||||
<td class="c" style="background:#ffa07a">
|
||||
<td>lightsalmon
|
||||
<tr>
|
||||
<td class="c" style="background:lightseagreen">
|
||||
<td class="c" style="background:#20b2aa">
|
||||
<td>lightseagreen
|
||||
<tr>
|
||||
<td class="c" style="background:lightskyblue">
|
||||
<td class="c" style="background:#87cefa">
|
||||
<td>lightskyblue
|
||||
<tr>
|
||||
<td class="c" style="background:lightslategray">
|
||||
<td class="c" style="background:#778899">
|
||||
<td>lightslategray
|
||||
<tr>
|
||||
<td class="c" style="background:lightslategrey">
|
||||
<td class="c" style="background:#778899">
|
||||
<td>lightslategrey
|
||||
<tr>
|
||||
<td class="c" style="background:lightsteelblue">
|
||||
<td class="c" style="background:#b0c4de">
|
||||
<td>lightsteelblue
|
||||
<tr>
|
||||
<td class="c" style="background:lightyellow">
|
||||
<td class="c" style="background:#ffffe0">
|
||||
<td>lightyellow
|
||||
<tr>
|
||||
<td class="c" style="background:lime">
|
||||
<td class="c" style="background:#00ff00">
|
||||
<td>lime
|
||||
<tr>
|
||||
<td class="c" style="background:limegreen">
|
||||
<td class="c" style="background:#32cd32">
|
||||
<td>limegreen
|
||||
<tr>
|
||||
<td class="c" style="background:linen">
|
||||
<td class="c" style="background:#faf0e6">
|
||||
<td>linen
|
||||
<tr>
|
||||
<td class="c" style="background:magenta">
|
||||
<td class="c" style="background:#ff00ff">
|
||||
<td>magenta
|
||||
<tr>
|
||||
<td class="c" style="background:maroon">
|
||||
<td class="c" style="background:#800000">
|
||||
<td>maroon
|
||||
<tr>
|
||||
<td class="c" style="background:mediumaquamarine">
|
||||
<td class="c" style="background:#66cdaa">
|
||||
<td>mediumaquamarine
|
||||
<tr>
|
||||
<td class="c" style="background:mediumblue">
|
||||
<td class="c" style="background:#0000cd">
|
||||
<td>mediumblue
|
||||
<tr>
|
||||
<td class="c" style="background:mediumorchid">
|
||||
<td class="c" style="background:#ba55d3">
|
||||
<td>mediumorchid
|
||||
<tr>
|
||||
<td class="c" style="background:mediumpurple">
|
||||
<td class="c" style="background:#9370db">
|
||||
<td>mediumpurple
|
||||
<tr>
|
||||
<td class="c" style="background:mediumseagreen">
|
||||
<td class="c" style="background:#3cb371">
|
||||
<td>mediumseagreen
|
||||
<tr>
|
||||
<td class="c" style="background:mediumslateblue">
|
||||
<td class="c" style="background:#7b68ee">
|
||||
<td>mediumslateblue
|
||||
<tr>
|
||||
<td class="c" style="background:mediumspringgreen">
|
||||
<td class="c" style="background:#00fa9a">
|
||||
<td>mediumspringgreen
|
||||
<tr>
|
||||
<td class="c" style="background:mediumturquoise">
|
||||
<td class="c" style="background:#48d1cc">
|
||||
<td>mediumturquoise
|
||||
<tr>
|
||||
<td class="c" style="background:mediumvioletred">
|
||||
<td class="c" style="background:#c71585">
|
||||
<td>mediumvioletred
|
||||
<tr>
|
||||
<td class="c" style="background:midnightblue">
|
||||
<td class="c" style="background:#191970">
|
||||
<td>midnightblue
|
||||
<tr>
|
||||
<td class="c" style="background:mintcream">
|
||||
<td class="c" style="background:#f5fffa">
|
||||
<td>mintcream
|
||||
<tr>
|
||||
<td class="c" style="background:mistyrose">
|
||||
<td class="c" style="background:#ffe4e1">
|
||||
<td>mistyrose
|
||||
<tr>
|
||||
<td class="c" style="background:moccasin">
|
||||
<td class="c" style="background:#ffe4b5">
|
||||
<td>moccasin
|
||||
<tr>
|
||||
<td class="c" style="background:navajowhite">
|
||||
<td class="c" style="background:#ffdead">
|
||||
<td>navajowhite
|
||||
<tr>
|
||||
<td class="c" style="background:navy">
|
||||
<td class="c" style="background:#000080">
|
||||
<td>navy
|
||||
<tr>
|
||||
<td class="c" style="background:oldlace">
|
||||
<td class="c" style="background:#fdf5e6">
|
||||
<td>oldlace
|
||||
<tr>
|
||||
<td class="c" style="background:olive">
|
||||
<td class="c" style="background:#808000">
|
||||
<td>olive
|
||||
<tr>
|
||||
<td class="c" style="background:olivedrab">
|
||||
<td class="c" style="background:#6b8e23">
|
||||
<td>olivedrab
|
||||
<tr>
|
||||
<td class="c" style="background:orange">
|
||||
<td class="c" style="background:#ffa500">
|
||||
<td>orange
|
||||
<tr>
|
||||
<td class="c" style="background:orangered">
|
||||
<td class="c" style="background:#ff4500">
|
||||
<td>orangered
|
||||
<tr>
|
||||
<td class="c" style="background:orchid">
|
||||
<td class="c" style="background:#da70d6">
|
||||
<td>orchid
|
||||
<tr>
|
||||
<td class="c" style="background:palegoldenrod">
|
||||
<td class="c" style="background:#eee8aa">
|
||||
<td>palegoldenrod
|
||||
<tr>
|
||||
<td class="c" style="background:palegreen">
|
||||
<td class="c" style="background:#98fb98">
|
||||
<td>palegreen
|
||||
<tr>
|
||||
<td class="c" style="background:paleturquoise">
|
||||
<td class="c" style="background:#afeeee">
|
||||
<td>paleturquoise
|
||||
<tr>
|
||||
<td class="c" style="background:palevioletred">
|
||||
<td class="c" style="background:#db7093">
|
||||
<td>palevioletred
|
||||
<tr>
|
||||
<td class="c" style="background:papayawhip">
|
||||
<td class="c" style="background:#ffefd5">
|
||||
<td>papayawhip
|
||||
<tr>
|
||||
<td class="c" style="background:peachpuff">
|
||||
<td class="c" style="background:#ffdab9">
|
||||
<td>peachpuff
|
||||
<tr>
|
||||
<td class="c" style="background:peru">
|
||||
<td class="c" style="background:#cd853f">
|
||||
<td>peru
|
||||
<tr>
|
||||
<td class="c" style="background:pink">
|
||||
<td class="c" style="background:#ffc0cb">
|
||||
<td>pink
|
||||
<tr>
|
||||
<td class="c" style="background:plum">
|
||||
<td class="c" style="background:#dda0dd">
|
||||
<td>plum
|
||||
<tr>
|
||||
<td class="c" style="background:powderblue">
|
||||
<td class="c" style="background:#b0e0e6">
|
||||
<td>powderblue
|
||||
<tr>
|
||||
<td class="c" style="background:purple">
|
||||
<td class="c" style="background:#800080">
|
||||
<td>purple
|
||||
<tr>
|
||||
<td class="c" style="background:red">
|
||||
<td class="c" style="background:#ff0000">
|
||||
<td>red
|
||||
<tr>
|
||||
<td class="c" style="background:rosybrown">
|
||||
<td class="c" style="background:#bc8f8f">
|
||||
<td>rosybrown
|
||||
<tr>
|
||||
<td class="c" style="background:royalblue">
|
||||
<td class="c" style="background:#4169e1">
|
||||
<td>royalblue
|
||||
<tr>
|
||||
<td class="c" style="background:saddlebrown">
|
||||
<td class="c" style="background:#8b4513">
|
||||
<td>saddlebrown
|
||||
<tr>
|
||||
<td class="c" style="background:salmon">
|
||||
<td class="c" style="background:#fa8072">
|
||||
<td>salmon
|
||||
<tr>
|
||||
<td class="c" style="background:sandybrown">
|
||||
<td class="c" style="background:#f4a460">
|
||||
<td>sandybrown
|
||||
<tr>
|
||||
<td class="c" style="background:seagreen">
|
||||
<td class="c" style="background:#2e8b57">
|
||||
<td>seagreen
|
||||
<tr>
|
||||
<td class="c" style="background:seashell">
|
||||
<td class="c" style="background:#fff5ee">
|
||||
<td>seashell
|
||||
<tr>
|
||||
<td class="c" style="background:sienna">
|
||||
<td class="c" style="background:#a0522d">
|
||||
<td>sienna
|
||||
<tr>
|
||||
<td class="c" style="background:silver">
|
||||
<td class="c" style="background:#c0c0c0">
|
||||
<td>silver
|
||||
<tr>
|
||||
<td class="c" style="background:skyblue">
|
||||
<td class="c" style="background:#87ceeb">
|
||||
<td>skyblue
|
||||
<tr>
|
||||
<td class="c" style="background:slateblue">
|
||||
<td class="c" style="background:#6a5acd">
|
||||
<td>slateblue
|
||||
<tr>
|
||||
<td class="c" style="background:slategray">
|
||||
<td class="c" style="background:#708090">
|
||||
<td>slategray
|
||||
<tr>
|
||||
<td class="c" style="background:slategrey">
|
||||
<td class="c" style="background:#708090">
|
||||
<td>slategrey
|
||||
<tr>
|
||||
<td class="c" style="background:snow">
|
||||
<td class="c" style="background:#fffafa">
|
||||
<td>snow
|
||||
<tr>
|
||||
<td class="c" style="background:springgreen">
|
||||
<td class="c" style="background:#00ff7f">
|
||||
<td>springgreen
|
||||
<tr>
|
||||
<td class="c" style="background:steelblue">
|
||||
<td class="c" style="background:#4682b4">
|
||||
<td>steelblue
|
||||
<tr>
|
||||
<td class="c" style="background:tan">
|
||||
<td class="c" style="background:#d2b48c">
|
||||
<td>tan
|
||||
<tr>
|
||||
<td class="c" style="background:teal">
|
||||
<td class="c" style="background:#008080">
|
||||
<td>teal
|
||||
<tr>
|
||||
<td class="c" style="background:thistle">
|
||||
<td class="c" style="background:#d8bfd8">
|
||||
<td>thistle
|
||||
<tr>
|
||||
<td class="c" style="background:tomato">
|
||||
<td class="c" style="background:#ff6347">
|
||||
<td>tomato
|
||||
<tr>
|
||||
<td class="c" style="background:turquoise">
|
||||
<td class="c" style="background:#40e0d0">
|
||||
<td>turquoise
|
||||
<tr>
|
||||
<td class="c" style="background:violet">
|
||||
<td class="c" style="background:#ee82ee">
|
||||
<td>violet
|
||||
<tr>
|
||||
<td class="c" style="background:wheat">
|
||||
<td class="c" style="background:#f5deb3">
|
||||
<td>wheat
|
||||
<tr>
|
||||
<td class="c" style="background:white">
|
||||
<td class="c" style="background:#ffffff">
|
||||
<td>white
|
||||
<tr>
|
||||
<td class="c" style="background:whitesmoke">
|
||||
<td class="c" style="background:#f5f5f5">
|
||||
<td>whitesmoke
|
||||
<tr>
|
||||
<td class="c" style="background:yellow">
|
||||
<td class="c" style="background:#ffff00">
|
||||
<td>yellow
|
||||
<tr>
|
||||
<td class="c" style="background:yellowgreen">
|
||||
<td class="c" style="background:#9acd32">
|
||||
<td>yellowgreen
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,21 @@
|
|||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title>CSS font-size-adjust: Basics</title>
|
||||
<link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
|
||||
<link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/fonts/size/adjust/001.xml"/>
|
||||
<style type="text/css">
|
||||
div { font-family: Verdana; font-size: 1px; font-size-adjust: 100; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>This test case should have a big word below.</p>
|
||||
<div>
|
||||
<!-- Verdana has an ex-height:em-height ratio of 0.55, and
|
||||
therefore the ACTUAL font-size is 1px*(100/0.55) = 181px,
|
||||
because the font-size-adjust is applied to the first font
|
||||
even if the first font is available and font-size-adjust
|
||||
was not inherited. -->
|
||||
PASS
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,19 @@
|
|||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title>CSS font-size-adjust: Inheritance and Parental Influence</title>
|
||||
<link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
|
||||
<link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/fonts/size/adjust/002.xml"/>
|
||||
<style type="text/css">
|
||||
div { font-family: Verdana; font-size: 1px; }
|
||||
.a { font-size-adjust: 1; } /* not used by anything in this test case */
|
||||
.a span, .b, .b span, .c { font-size-adjust: 20; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>There are three lines that should say "pass" in large 20px text below:</p>
|
||||
<div class="a"> <span>PASS 1/3</span> </div>
|
||||
<div class="b"> <span>PASS 2/3</span> </div>
|
||||
<div class="c"> <span>PASS 3/3</span> </div>
|
||||
<!-- XXX this should be converted to an Ahem test -->
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,27 @@
|
|||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title>CSS font-size-adjust: 'normal' line-height calculations</title>
|
||||
<link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
|
||||
<link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/fonts/size/adjust/003.xml"/>
|
||||
<style type="text/css">
|
||||
div { font: 1px/normal sans-serif; font-size-adjust: 20; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div>There should be no overlap on this page at all. The lines
|
||||
should be well spread out. There is nothing interesting to read
|
||||
beyond this point. There should be no overlap on this page at
|
||||
all. The lines should be well spread out. No, really, there is
|
||||
nothing interesting to read beyond this point. There should be no
|
||||
overlap on this page at all. The lines should be well spread
|
||||
out. Look, do you not believe me? There is absolutely nothing
|
||||
interesting to read beyond this point. There should be no overlap on
|
||||
this page at all. The lines should be well spread out. What is wrong
|
||||
with you! Nothing here is interesting. There should be no overlap on
|
||||
this page at all. The lines should be well spread out. Look, just
|
||||
stop reading. There should be no overlap on this page at all. The
|
||||
lines should be well spread out.</div>
|
||||
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,27 @@
|
|||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title>CSS font-size-adjust: line-height ratio calculations</title>
|
||||
<link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
|
||||
<link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/fonts/size/adjust/004.xml"/>
|
||||
<style type="text/css">
|
||||
div { font: 1px/2 sans-serif; font-size-adjust: 20; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div>There should be no overlap on this page at all. The lines
|
||||
should be well spread out. There is nothing interesting to read
|
||||
beyond this point. There should be no overlap on this page at
|
||||
all. The lines should be well spread out. No, really, there is
|
||||
nothing interesting to read beyond this point. There should be no
|
||||
overlap on this page at all. The lines should be well spread
|
||||
out. Look, do you not believe me? There is absolutely nothing
|
||||
interesting to read beyond this point. There should be no overlap on
|
||||
this page at all. The lines should be well spread out. What is wrong
|
||||
with you! Nothing here is interesting. There should be no overlap on
|
||||
this page at all. The lines should be well spread out. Look, just
|
||||
stop reading. There should be no overlap on this page at all. The
|
||||
lines should be well spread out.</div>
|
||||
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,27 @@
|
|||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title>CSS font-size-adjust: line-height percentage calculations</title>
|
||||
<link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
|
||||
<link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/fonts/size/adjust/005.xml"/>
|
||||
<style type="text/css">
|
||||
div { font: 1px/200% sans-serif; font-size-adjust: 20; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div>There should be no overlap on this page at all. The lines
|
||||
should be well spread out. There is nothing interesting to read
|
||||
beyond this point. There should be no overlap on this page at
|
||||
all. The lines should be well spread out. No, really, there is
|
||||
nothing interesting to read beyond this point. There should be no
|
||||
overlap on this page at all. The lines should be well spread
|
||||
out. Look, do you not believe me? There is absolutely nothing
|
||||
interesting to read beyond this point. There should be no overlap on
|
||||
this page at all. The lines should be well spread out. What is wrong
|
||||
with you! Nothing here is interesting. There should be no overlap on
|
||||
this page at all. The lines should be well spread out. Look, just
|
||||
stop reading. There should be no overlap on this page at all. The
|
||||
lines should be well spread out.</div>
|
||||
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,27 @@
|
|||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title>CSS font-size-adjust: line-height 'em' calculations</title>
|
||||
<link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
|
||||
<link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/fonts/size/adjust/006.xml"/>
|
||||
<style type="text/css">
|
||||
div { font: 1px/2em sans-serif; font-size-adjust: 20; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div>There should be no overlap on this page at all. The lines
|
||||
should be well spread out. There is nothing interesting to read
|
||||
beyond this point. There should be no overlap on this page at
|
||||
all. The lines should be well spread out. No, really, there is
|
||||
nothing interesting to read beyond this point. There should be no
|
||||
overlap on this page at all. The lines should be well spread
|
||||
out. Look, do you not believe me? There is absolutely nothing
|
||||
interesting to read beyond this point. There should be no overlap on
|
||||
this page at all. The lines should be well spread out. What is wrong
|
||||
with you! Nothing here is interesting. There should be no overlap on
|
||||
this page at all. The lines should be well spread out. Look, just
|
||||
stop reading. There should be no overlap on this page at all. The
|
||||
lines should be well spread out.</div>
|
||||
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,27 @@
|
|||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title>CSS font-size-adjust: line-height 'ex' calculations</title>
|
||||
<link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
|
||||
<link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/fonts/size/adjust/007.xml"/>
|
||||
<style type="text/css">
|
||||
div { font: 1px/4ex sans-serif; font-size-adjust: 20; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div>There should be no overlap on this page at all. The lines
|
||||
should be well spread out. There is nothing interesting to read
|
||||
beyond this point. There should be no overlap on this page at
|
||||
all. The lines should be well spread out. No, really, there is
|
||||
nothing interesting to read beyond this point. There should be no
|
||||
overlap on this page at all. The lines should be well spread
|
||||
out. Look, do you not believe me? There is absolutely nothing
|
||||
interesting to read beyond this point. There should be no overlap on
|
||||
this page at all. The lines should be well spread out. What is wrong
|
||||
with you! Nothing here is interesting. There should be no overlap on
|
||||
this page at all. The lines should be well spread out. Look, just
|
||||
stop reading. There should be no overlap on this page at all. The
|
||||
lines should be well spread out.</div>
|
||||
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,27 @@
|
|||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title>CSS font-size-adjust: line-height 'px' calculations</title>
|
||||
<link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
|
||||
<link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/fonts/size/adjust/008.xml"/>
|
||||
<style type="text/css">
|
||||
div { font: 1px/40px sans-serif; font-size-adjust: 20; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div>There should be no overlap on this page at all. The lines
|
||||
should be well spread out. There is nothing interesting to read
|
||||
beyond this point. There should be no overlap on this page at
|
||||
all. The lines should be well spread out. No, really, there is
|
||||
nothing interesting to read beyond this point. There should be no
|
||||
overlap on this page at all. The lines should be well spread
|
||||
out. Look, do you not believe me? There is absolutely nothing
|
||||
interesting to read beyond this point. There should be no overlap on
|
||||
this page at all. The lines should be well spread out. What is wrong
|
||||
with you! Nothing here is interesting. There should be no overlap on
|
||||
this page at all. The lines should be well spread out. Look, just
|
||||
stop reading. There should be no overlap on this page at all. The
|
||||
lines should be well spread out.</div>
|
||||
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,15 @@
|
|||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title>CSS font-size-adjust: computed 'em' calculations</title>
|
||||
<link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
|
||||
<link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/fonts/size/adjust/009.xml"/>
|
||||
<style type="text/css">
|
||||
div { font: 1px/1 Verdana, sans-serif; font-size-adjust: 50; overflow: hidden; background: green;
|
||||
height: 4em; width: 4em; border: solid lime 1em; color: yellow; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>The box below should big and green and square.</p>
|
||||
<div>PASS</div>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,59 @@
|
|||
(CSS has no concept of a property not being set. All properties are 'set', even
|
||||
if just by virtue of having an initial value.)
|
||||
|
||||
I don't really understand why your change causes the difference in the
|
||||
rendering. Could you explaing that a bit more?
|
||||
|
||||
I understand what the three renderings are, and I think the third is what we
|
||||
want. Both the second and third are arguably valid interpretations of the spec.
|
||||
The way we should achieve the third, however, is by using the actual font-size
|
||||
(i.e. the font-size after adjustment by font-size-adjust; note that is not the
|
||||
font-size that would be inherited) for the calculation of 'em' units, 'ex'
|
||||
units, vertical-align and line-height percentages and line-height ratios, as
|
||||
well as for the calculations of the height of the line box. This is the
|
||||
opposite of what I said earlier, but in retrospect I think it is the only
|
||||
sensible implementation choice. (It also turns out that this is what I said in
|
||||
bug X a few months ago, so maybe when I wrote the above I was not thinking
|
||||
straight or something...)
|
||||
|
||||
http://www.hixie.ch/tests/adhoc/css/fonts/size-adjust/009.xml
|
||||
|
||||
This, however, would not be fixed by your |if| statement change above, as far as
|
||||
I can tell and as far as I can see using your test build. Basically, behaviour
|
||||
should be nearly identical for 'line-height: normal' and 'line-height: 1.2'
|
||||
except that the ratio in the first case should be taken from the fonts used in
|
||||
the inline box:
|
||||
|
||||
http://www.hixie.ch/tests/adhoc/css/fonts/size-adjust/003.xml normal
|
||||
http://www.hixie.ch/tests/adhoc/css/fonts/size-adjust/004.xml ratio
|
||||
http://www.hixie.ch/tests/adhoc/css/fonts/size-adjust/005.xml %
|
||||
http://www.hixie.ch/tests/adhoc/css/fonts/size-adjust/006.xml em
|
||||
http://www.hixie.ch/tests/adhoc/css/fonts/size-adjust/007.xml ex
|
||||
http://www.hixie.ch/tests/adhoc/css/fonts/size-adjust/008.xml px (control)
|
||||
|
||||
BTW I found a bug in your implementation... The two cases in the URI given below
|
||||
should render identically but do not. It seems that font-size-adjust is affected
|
||||
by the value on its parent element (?). font-size-adjust should only affect the
|
||||
actual font-size, which will affect the cases listed above.
|
||||
|
||||
http://www.hixie.ch/tests/adhoc/css/fonts/size-adjust/002.xml
|
||||
|
||||
A second bug is that the font zoom (View | Font Size) does not seem to interact
|
||||
very well with font-size-adjust. The font zoom should be a factor applied to the
|
||||
font size calculation after everything else has been done, uniformly across all
|
||||
fonts. (And changing the font zoom should also affect the actual font size and
|
||||
thus the font size used for 'em', 'ex', '%', ratios and inline height
|
||||
calculations, although we only do this right for inline height calculations
|
||||
right now.) Hitting Ctrl++ and Ctrl+- a lot on a page with font-size-adjust
|
||||
being used shows this problem quite clearly; e.g. on:
|
||||
|
||||
http://www.hixie.ch/tests/adhoc/css/fonts/size-adjust/001.xml
|
||||
|
||||
And finally, is it known that the font prefs dialog does not seem to have an
|
||||
effect on the font picked? I'm getting Flemish Script BT being used for all my
|
||||
unstyled text now. Ever tried reading a directory listing in HandScript? :-/
|
||||
|
||||
dbaron: I would very much appreciate your comments on this bug regarding the
|
||||
issues I mention above! :-D
|
||||
|
||||
rbs: Have I mentioned recently how much you rock?
|
|
@ -0,0 +1,13 @@
|
|||
We need some Ahem versions of these tests to check that, assuming
|
||||
font-size: 1px; font-size-adjust: 8, the following all come out as
|
||||
exactly the same size:
|
||||
|
||||
line-height: 2;
|
||||
line-height: 2em;
|
||||
line-height: 200%;
|
||||
line-height: 20px;
|
||||
|
||||
border: 20px;
|
||||
|
||||
Also we need checks that font-size inherits the computed value not the
|
||||
actual value, and all the existing tests need Ahem versions for QA.
|
|
@ -0,0 +1,16 @@
|
|||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title>CSS: Minimum font-size interaction</title>
|
||||
<link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
|
||||
<link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/fonts/size/minimum/001.xml"/>
|
||||
<link rel="help" href="http://www.w3.org/TR/CSS21/fonts.html#font-size-props" />
|
||||
<style type="text/css">
|
||||
div { font-family: Verdana; }
|
||||
.a { font-size: 0.01px; height: 0.5em; background: red; }
|
||||
.a span { font-size: 1000em; color: green; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="a"> <span>PASS</span> </div>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,27 @@
|
|||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title>DOM CSS: Computed Values of 'font-size' when minimum font sizes are involved</title>
|
||||
<link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
|
||||
<link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/fonts/size/minimum/002.xml"/>
|
||||
<link rel="help" href="http://www.w3.org/TR/CSS21/fonts.html#font-size-props" />
|
||||
<style type="text/css">
|
||||
#test { font-size: 1px; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>The computed font-size of an element given a size of 1px is
|
||||
<span id="console"/>. The result of this test is therefore a <strong
|
||||
id="result"/>.</p>
|
||||
<div id="test"/>
|
||||
<script type="text/javascript">
|
||||
<![CDATA[
|
||||
var element = document.getElementById('test');
|
||||
var result = document.defaultView.getComputedStyle(element, '').getPropertyValue('font-size');
|
||||
document.getElementById('console').appendChild(document.createTextNode(result));
|
||||
document.getElementById('result').appendChild(document.createTextNode(result == '1px' ? 'PASS' : 'FAIL'));
|
||||
]]>
|
||||
</script>
|
||||
<p>Note: Please set a minimum font size of around 10 pixels to get a
|
||||
reliable result.</p>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,20 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>CSS Lists: Simple Image Bullets</title>
|
||||
<link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
|
||||
<link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/list/001.html"/>
|
||||
<link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#list-style" />
|
||||
<style type="text/css">
|
||||
.li { list-style: url(support/square-purple.png) disc inside; display: list-item; border: solid; }
|
||||
.img { border: solid; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>The following two boxes should be identical to the pixel.</p>
|
||||
<table> <tr>
|
||||
<td> <div class="li"></div> </td>
|
||||
<td> <div class="img"><img src="support/square-purple.png" alt="FAIL"/></div> </td>
|
||||
</tr> </table>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,19 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>CSS Lists: Inline Bullet Positioning 1</title>
|
||||
<link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
|
||||
<link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/list/002.html"/>
|
||||
<link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#list-style" />
|
||||
<style type="text/css">
|
||||
.li { list-style: url(support/swatch-green.png) disc inside; display: list-item; background: red; }
|
||||
.img { background: green; }
|
||||
div { position: absolute; top: 3em; left: 3em; margin: 0; padding: 0; border: 0; font-size: 2em; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>There should be no red.</p>
|
||||
<div class="li"></div>
|
||||
<div class="img"><img src="support/swatch-green.png" alt="FAIL"/></div>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,23 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title>CSS Lists: Outside Bullet Effect On Line Boxes</title>
|
||||
<link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
|
||||
<link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/list/004.html"/>
|
||||
<link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#list-style" />
|
||||
<style type="text/css">
|
||||
.li { list-style: url(support/1x1-white.png) disc outside; display: list-item; border: thick solid green; background: red; line-height: 1.0; }
|
||||
.control { border: thick solid red; height: 1em; }
|
||||
div { position: absolute; top: 0; left: 0; font-size: 3em; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<!-- The bullet should, even though it is only a pixel high, cause a
|
||||
line box to be created, and the line box should not be smaller (or,
|
||||
for that matter, larger) than 1em due to the line-height
|
||||
declaration. The control box should therefore be the same size. The
|
||||
list item should, however, have no width, since the line box is
|
||||
otherwise empty. -->
|
||||
<div class="control"/> <div class="li"/>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,18 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title>CSS Lists: Simple Image Bullets</title>
|
||||
<link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
|
||||
<link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/list/005.html"/>
|
||||
<link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#list-style" />
|
||||
<style type="text/css">
|
||||
.li { list-style: url(support/cat.png) disc outside; display: list-item; margin: 100px; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="li">If there is a single cat on this page before this
|
||||
text and baseline aligned with this text then this test has
|
||||
passed. The horizontal space between the image and the text is
|
||||
undefined.</div>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,18 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>CSS Lists: Inline Bullet Positioning 2</title>
|
||||
<link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
|
||||
<link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/list/003.html"/>
|
||||
<link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#list-style" />
|
||||
<style type="text/css">
|
||||
.li { list-style: url(support/swatch-green.png) disc inside; display: list-item; background: green; }
|
||||
.img { background: red; }
|
||||
div { position: absolute; top: 3em; left: 3em; margin: 0; padding: 0; border: 0; font-size: 2em; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="img"><img src="support/swatch-green.png" alt="FAIL"/></div>
|
||||
<div class="li"></div>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,24 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title>CSS Lists: Hebrew</title>
|
||||
<link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
|
||||
<link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/list/list/style/type/001.xml"/>
|
||||
<link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#list-style" />
|
||||
<style type="text/css">
|
||||
li { list-style-type: hebrew; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>The following three list numbers should be different.</p>
|
||||
<ol start="5">
|
||||
<li> (hebrew for 5) </li>
|
||||
</ol>
|
||||
<ol start="5000">
|
||||
<li> (hebrew for 5000) </li>
|
||||
</ol>
|
||||
<ol start="5000000">
|
||||
<li> (hebrew for 5000000) </li>
|
||||
</ol>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,39 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>Collapsed borders in tables: Relative positioning, opacity, etc.</title>
|
||||
<link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
|
||||
<link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/table/border-collapse/collapse/evil/001-demo.html"/>
|
||||
<style type="text/css">
|
||||
.block { margin: 2em; border: 0.2em solid silver; width: 20em; height: 20em; font-size: 20px; }
|
||||
.table { display: table; border-collapse: collapse; border: 0.5em inset blue; height: 100%; width: 100%; text-align: center; }
|
||||
.row { display: table-row; }
|
||||
.cell { display: table-cell; }
|
||||
.a { border: none; background: fuchsia; color: black; -moz-opacity: 0.5; opacity: 0.5; }
|
||||
.b { border: 1em dotted yellow; background: navy; color: white; }
|
||||
.c { border: 3em double orange; background: transparent; color: black; }
|
||||
.d { border: 1em dashed aqua; background: teal; color: white; position: relative; top: 5em; left: 5em; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="block">
|
||||
<div class="table">
|
||||
<div class="row">
|
||||
<div class="cell a"> opacity: 0.5 </div>
|
||||
<div class="cell b"> B </div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="cell c"> C </div>
|
||||
<div class="cell d"> positioned 5em below and to the right of its original position </div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<p>The backgrounds shouldn't go over the borders, but should fill
|
||||
their entire cell. Selecting the text shouldn't make it change font.
|
||||
Double borders should be pretty all the way round. The inner edge of
|
||||
the gray line should go through the middle of all the outer
|
||||
borders.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1 @@
|
|||
width 50% inside width auto cell
|
|
@ -0,0 +1 @@
|
|||
Table algorithm inspection files are now to be found in ../inspection/.
|
|
@ -0,0 +1,212 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>Automatic table sizing algorithm investigation (auto width tables)</title>
|
||||
<link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
|
||||
<link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/table/inspection/inspection-auto-width-table.html"/>
|
||||
<link rel="help" href="http://www.w3.org/TR/CSS21/tables.html#auto-table-layout" />
|
||||
<style type="text/css">
|
||||
html, body p { background: white; padding: 1.5em 1em 0.5em 1em; margin: 0; border: 0; }
|
||||
body { background: url(support/horizontal-ruler) top left repeat-y; padding: 0; margin: 0; border: 0; }
|
||||
body * { border: solid 3px black; }
|
||||
table { width: auto; margin: 1em 0; }
|
||||
td { height: 1em; }
|
||||
.p100 { width: 100%; }
|
||||
.p99 { width: 99%; }
|
||||
.p72 { width: 72%; }
|
||||
.p50 { width: 50%; }
|
||||
.p45 { width: 45%; }
|
||||
.p25 { width: 25%; }
|
||||
.p24 { width: 24%; }
|
||||
.f100 { width: 100px; }
|
||||
.f200 { width: 200px; }
|
||||
.f600 { width: 600px; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Blank rows have the same dimensions as the preceeding row, but with zero width spaces in the cells instead of text.</p>
|
||||
|
||||
<p>25% and 50%</p>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td class="p25">25%</td>
|
||||
<td class="p50">50%</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="p25">25%</td>
|
||||
<td class="p25">25%</td>
|
||||
<td class="p50">50%</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="p25">25%</td>
|
||||
<td class="p25">25%</td>
|
||||
<td class="p25">25%</td>
|
||||
<td class="p50">50%</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="p25">25%</td>
|
||||
<td class="p25">25%</td>
|
||||
<td class="p25">25%</td>
|
||||
<td class="p25">25%</td>
|
||||
<td class="p50">50%</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p>24% and 50%</p>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td class="p24">24%</td>
|
||||
<td class="p50">50%</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="p24">24%</td>
|
||||
<td class="p24">24%</td>
|
||||
<td class="p50">50%</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="p24">24%</td>
|
||||
<td class="p24">24%</td>
|
||||
<td class="p24">24%</td>
|
||||
<td class="p50">50%</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="p24">24%</td>
|
||||
<td class="p24">24%</td>
|
||||
<td class="p24">24%</td>
|
||||
<td class="p24">24%</td>
|
||||
<td class="p50">50%</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="p24">24%</td>
|
||||
<td class="p24">24%</td>
|
||||
<td class="p24">24%</td>
|
||||
<td class="p24">24%</td>
|
||||
<td class="p24">24%</td>
|
||||
<td class="p50">50%</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p>100% and 50%</p>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td class="p100">100%</td>
|
||||
<td class="p50">50%</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="p50">50%</td>
|
||||
<td class="p100">100%</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p>100% and auto</p>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td class="p100">100%</td>
|
||||
<td class="auto">auto</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="auto">auto</td>
|
||||
<td class="p100">100%</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p>99% and 50%</p>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td class="p99">99%</td>
|
||||
<td class="p50">50%</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p>odd balls</p>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td class="p45">45%</td>
|
||||
<td class="p72">72%</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="p72">72%</td>
|
||||
<td class="p45">45%</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="p72">72%</td>
|
||||
<td class="p24">24%</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="p45">45%</td>
|
||||
<td class="p24">24%</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="p45">45%</td>
|
||||
<td class="p45">45%</td>
|
||||
<td class="p24">24%</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="p45">45%</td>
|
||||
<td class="p45">45%</td>
|
||||
<td class="p45">45%</td>
|
||||
<td class="p24">24%</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="p45">45%</td>
|
||||
<td class="p45">45%</td>
|
||||
<td class="p45">45%</td>
|
||||
<td class="p45">45%</td>
|
||||
<td class="p24">24%</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="p72">72%</td>
|
||||
<td class="p45">45%</td>
|
||||
<td class="p24">24%</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="p72">72%</td>
|
||||
<td class="p45">45%</td>
|
||||
<td class="p24">24%</td>
|
||||
<td class="p99">99%</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,259 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>Automatic table sizing algorithm investigation (fixed sizes)</title>
|
||||
<link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
|
||||
<link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/table/inspection/inspection-fixed-sizes.html"/>
|
||||
<link rel="help" href="http://www.w3.org/TR/CSS21/tables.html#auto-table-layout" />
|
||||
<style type="text/css">
|
||||
html, body p { background: white; padding: 1.5em 1em 0.5em 1em; margin: 0; border: 0; }
|
||||
body { background: url(support/horizontal-ruler) top left repeat-y; padding: 0; margin: 0; border: 0; }
|
||||
body * { border: solid 3px black; }
|
||||
table { width: 600px; margin: 1em 0; }
|
||||
td { height: 1em; }
|
||||
.f40 { width: 40px; }
|
||||
.f50 { width: 50px; }
|
||||
.f60 { width: 60px; }
|
||||
.f100 { width: 100px; }
|
||||
.f200 { width: 200px; }
|
||||
.f400 { width: 400px; }
|
||||
.f600 { width: 600px; }
|
||||
span { border: solid purple; height: 1em; display: block; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Blank rows have the same dimensions as the preceeding row, but
|
||||
with zero width spaces in the cells instead of text. Purple boxes
|
||||
are fixed sized contents.</p>
|
||||
|
||||
<p>first cell</p>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td class="f50"> 50px </td>
|
||||
<td class="f200"> 200px </td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="f50"> <span class="f40">40px</span> </td>
|
||||
<td class="f200"> 200px </td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="f50"> <span class="f60">60px</span> </td>
|
||||
<td class="f200"> 200px </td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="f50"> <span class="f100">100px</span> </td>
|
||||
<td class="f200"> 200px </td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="f50"> <span class="f400">400px</span> </td>
|
||||
<td class="f200"> 200px </td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="f50"> <span class="f600">600px</span> </td>
|
||||
<td class="f200"> 200px </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p>second cell</p>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td class="f200"> 200px </td>
|
||||
<td class="f50"> 50px </td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="f200"> 200px </td>
|
||||
<td class="f50"> <span class="f40">40px</span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="f200"> 200px </td>
|
||||
<td class="f50"> <span class="f60">60px</span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="f200"> 200px </td>
|
||||
<td class="f50"> <span class="f100">100px</span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="f200"> 200px </td>
|
||||
<td class="f50"> <span class="f400">400px</span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="f200"> 200px </td>
|
||||
<td class="f50"> <span class="f600">600px</span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p>both cells</p>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td class="f50"> 50px </td>
|
||||
<td class="f50"> 50px </td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="f50"> <span class="f40">40px</span> </td>
|
||||
<td class="f50"> <span class="f40">40px</span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="f50"> <span class="f60">60px</span> </td>
|
||||
<td class="f50"> <span class="f60">60px</span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="f50"> <span class="f100">100px</span> </td>
|
||||
<td class="f50"> <span class="f100">100px</span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="f50"> <span class="f400">400px</span> </td>
|
||||
<td class="f50"> <span class="f400">400px</span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="f50"> <span class="f600">600px</span> </td>
|
||||
<td class="f50"> <span class="f600">600px</span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p>both cells too large</p>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td class="f400"> 400px </td>
|
||||
<td class="f400"> 400px </td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="f400"> <span class="f40">40px</span> </td>
|
||||
<td class="f400"> <span class="f40">40px</span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="f400"> <span class="f60">60px</span> </td>
|
||||
<td class="f400"> <span class="f60">60px</span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="f400"> <span class="f100">100px</span> </td>
|
||||
<td class="f400"> <span class="f100">100px</span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="f400"> <span class="f400">400px</span> </td>
|
||||
<td class="f400"> <span class="f400">400px</span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p>first cell wider</p>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td class="f400"> 400px </td>
|
||||
<td class="f200"> 200px </td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="f400"> <span class="f40">40px</span> </td>
|
||||
<td class="f200"> <span class="f40">40px</span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="f400"> <span class="f60">60px</span> </td>
|
||||
<td class="f200"> <span class="f60">60px</span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="f400"> <span class="f100">100px</span> </td>
|
||||
<td class="f200"> <span class="f100">100px</span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="f400"> <span class="f200">200px</span> </td>
|
||||
<td class="f200"> <span class="f200">200px</span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="f400"> <span class="f400">400px</span> </td>
|
||||
<td class="f200"> <span class="f400">400px</span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p>second cell wider</p>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td class="f200"> 200px </td>
|
||||
<td class="f400"> 400px </td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="f200"> <span class="f40">40px</span> </td>
|
||||
<td class="f400"> <span class="f40">40px</span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="f200"> <span class="f60">60px</span> </td>
|
||||
<td class="f400"> <span class="f60">60px</span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="f200"> <span class="f100">100px</span> </td>
|
||||
<td class="f400"> <span class="f100">100px</span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="f200"> <span class="f200">200px</span> </td>
|
||||
<td class="f400"> <span class="f200">200px</span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="f200"> <span class="f400">400px</span> </td>
|
||||
<td class="f400"> <span class="f400">400px</span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,745 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>Automatic table sizing algorithm investigation (one row)</title>
|
||||
<link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
|
||||
<link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/table/inspection/inspection-one-row.html"/>
|
||||
<link rel="help" href="http://www.w3.org/TR/CSS21/tables.html#auto-table-layout" />
|
||||
<style type="text/css">
|
||||
html, body p { background: white; padding: 1.5em 1em 0.5em 1em; margin: 0; border: 0; }
|
||||
body { background: url(support/horizontal-ruler) top left repeat-y; padding: 0; margin: 0; border: 0; }
|
||||
body * { border: solid 3px black; }
|
||||
table { width: 600px; margin: 1em 0; }
|
||||
td { height: 1em; }
|
||||
.p100 { width: 100%; }
|
||||
.p50 { width: 50%; }
|
||||
.f100 { width: 100px; }
|
||||
.f200 { width: 200px; }
|
||||
.f600 { width: 600px; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Blank rows have the same dimensions as the preceeding row, but with zero width spaces in the cells instead of text.</p>
|
||||
|
||||
<p>auto</p>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td> auto </td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td> auto </td>
|
||||
<td> auto </td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td> auto </td>
|
||||
<td> auto </td>
|
||||
<td> auto </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p>100px</p>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td class="f100"> 100px </td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="f100"> 100px </td>
|
||||
<td class="f100"> 100px </td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="f100"> 100px </td>
|
||||
<td class="f100"> 100px </td>
|
||||
<td class="f100"> 100px </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p>200px</p>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td class="f200"> 200px </td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="f200"> 200px </td>
|
||||
<td class="f200"> 200px </td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="f200"> 200px </td>
|
||||
<td class="f200"> 200px </td>
|
||||
<td class="f200"> 200px </td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="f200"> 200px </td>
|
||||
<td class="f200"> 200px </td>
|
||||
<td class="f200"> 200px </td>
|
||||
<td class="f200"> 200px </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p>combinations of 100px and 200px</p>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td class="f100"> 100px </td>
|
||||
<td class="f200"> 200px </td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="f200"> 200px </td>
|
||||
<td class="f100"> 100px </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td class="f100"> 100px </td>
|
||||
<td class="f200"> 200px </td>
|
||||
<td class="f100"> 100px </td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="f200"> 200px </td>
|
||||
<td class="f100"> 100px </td>
|
||||
<td class="f200"> 200px </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p>100%</p>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td class="p100"> 100% </td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="p100"> 100% </td>
|
||||
<td class="p100"> 100% </td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="p100"> 100% </td>
|
||||
<td class="p100"> 100% </td>
|
||||
<td class="p100"> 100% </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p>50%</p>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td class="p50"> 50% </td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="p50"> 50% </td>
|
||||
<td class="p50"> 50% </td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="p50"> 50% </td>
|
||||
<td class="p50"> 50% </td>
|
||||
<td class="p50"> 50% </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p>combinations of 100% and 50%</p>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td class="p100"> 100% </td>
|
||||
<td class="p50"> 50% </td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="p50"> 50% </td>
|
||||
<td class="p100"> 100% </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td class="p100"> 100% </td>
|
||||
<td class="p50"> 50% </td>
|
||||
<td class="p100"> 100% </td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="p50"> 50% </td>
|
||||
<td class="p100"> 100% </td>
|
||||
<td class="p50"> 50% </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p>combinations of 100% and 100px</p>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td class="p100"> 100% </td>
|
||||
<td class="f100"> 100px </td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="p100">​</td>
|
||||
<td class="f100">​</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="f100"> 100px </td>
|
||||
<td class="p100"> 100% </td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="f100">​</td>
|
||||
<td class="p100">​</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p>combinations of 100% and 200px</p>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td class="p100"> 100% </td>
|
||||
<td class="f200"> 200px </td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="p100">​</td>
|
||||
<td class="f200">​</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="f200"> 200px </td>
|
||||
<td class="p100"> 100% </td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="f200">​</td>
|
||||
<td class="p100">​</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p>combinations of 100% and 600px</p>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td class="p100"> 100% </td>
|
||||
<td class="f600"> 600px </td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="p100">​</td>
|
||||
<td class="f600">​</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="f600"> 600px </td>
|
||||
<td class="p100"> 100% </td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="f600">​</td>
|
||||
<td class="p100">​</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p>combinations of 50% and 100px</p>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td class="p50"> 50% </td>
|
||||
<td class="f100"> 100px </td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="p50">​</td>
|
||||
<td class="f100">​</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="f100"> 100px </td>
|
||||
<td class="p50"> 50% </td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="f100">​</td>
|
||||
<td class="p50">​</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p>combinations of auto, 100px and 50%</p>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td class="auto">auto</td>
|
||||
<td class="f100">100px</td>
|
||||
<td class="p50">50%</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="auto">auto</td>
|
||||
<td class="p50">50%</td>
|
||||
<td class="f100">100px</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="f100">100px</td>
|
||||
<td class="auto">auto</td>
|
||||
<td class="p50">50%</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="f100">100px</td>
|
||||
<td class="p50">50%</td>
|
||||
<td class="auto">auto</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="p50">50%</td>
|
||||
<td class="auto">auto</td>
|
||||
<td class="f100">100px</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="p50">50%</td>
|
||||
<td class="f100">100px</td>
|
||||
<td class="auto">auto</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p>combinations of two autos, 100px and 50%</p>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td class="auto">auto</td>
|
||||
<td class="auto">auto</td>
|
||||
<td class="f100">100px</td>
|
||||
<td class="p50">50%</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="auto">auto</td>
|
||||
<td class="auto">auto</td>
|
||||
<td class="p50">50%</td>
|
||||
<td class="f100">100px</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="f100">100px</td>
|
||||
<td class="auto">auto</td>
|
||||
<td class="auto">auto</td>
|
||||
<td class="p50">50%</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="f100">100px</td>
|
||||
<td class="p50">50%</td>
|
||||
<td class="auto">auto</td>
|
||||
<td class="auto">auto</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="p50">50%</td>
|
||||
<td class="auto">auto</td>
|
||||
<td class="auto">auto</td>
|
||||
<td class="f100">100px</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="p50">50%</td>
|
||||
<td class="f100">100px</td>
|
||||
<td class="auto">auto</td>
|
||||
<td class="auto">auto</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p>combinations of auto, 100px and 100%</p>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td class="auto">auto</td>
|
||||
<td class="f100">100px</td>
|
||||
<td class="p100">100%</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="auto">auto</td>
|
||||
<td class="p100">100%</td>
|
||||
<td class="f100">100px</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="f100">100px</td>
|
||||
<td class="auto">auto</td>
|
||||
<td class="p100">100%</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="f100">100px</td>
|
||||
<td class="p100">100%</td>
|
||||
<td class="auto">auto</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="p100">100%</td>
|
||||
<td class="auto">auto</td>
|
||||
<td class="f100">100px</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="p100">100%</td>
|
||||
<td class="f100">100px</td>
|
||||
<td class="auto">auto</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p>combinations of auto, 600px and 50%</p>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td class="auto">auto</td>
|
||||
<td class="f600">600px</td>
|
||||
<td class="p50">50%</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="auto">auto</td>
|
||||
<td class="p50">50%</td>
|
||||
<td class="f600">600px</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="f600">600px</td>
|
||||
<td class="auto">auto</td>
|
||||
<td class="p50">50%</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="f600">600px</td>
|
||||
<td class="p50">50%</td>
|
||||
<td class="auto">auto</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="p50">50%</td>
|
||||
<td class="auto">auto</td>
|
||||
<td class="f600">600px</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="p50">50%</td>
|
||||
<td class="f600">600px</td>
|
||||
<td class="auto">auto</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p>combinations of two autos, 200px and 50%</p>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td class="auto">auto</td>
|
||||
<td class="auto">auto</td>
|
||||
<td class="f200">200px</td>
|
||||
<td class="p50">50%</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="auto">auto</td>
|
||||
<td class="auto">auto</td>
|
||||
<td class="p50">50%</td>
|
||||
<td class="f200">200px</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="f200">200px</td>
|
||||
<td class="auto">auto</td>
|
||||
<td class="auto">auto</td>
|
||||
<td class="p50">50%</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="f200">200px</td>
|
||||
<td class="p50">50%</td>
|
||||
<td class="auto">auto</td>
|
||||
<td class="auto">auto</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="p50">50%</td>
|
||||
<td class="auto">auto</td>
|
||||
<td class="auto">auto</td>
|
||||
<td class="f200">200px</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="p50">50%</td>
|
||||
<td class="f200">200px</td>
|
||||
<td class="auto">auto</td>
|
||||
<td class="auto">auto</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p>combinations of 100px and 600px</p>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td class="f100">100px</td>
|
||||
<td class="f600">600px</td>
|
||||
<td class="f600">600px</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="f100">​</td>
|
||||
<td class="f600">600px</td>
|
||||
<td class="f600">600px</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="f100">​</td>
|
||||
<td class="f600"><div class="f200">200px in 600px</div></td>
|
||||
<td class="f600"><div class="f200">200px in 600px</div></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="f600">600px</td>
|
||||
<td class="f100">100px</td>
|
||||
<td class="f600">600px</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="f600">600px</td>
|
||||
<td class="f100">​</td>
|
||||
<td class="f600">600px</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="f600"><div class="f200">200px in 600px</div></td>
|
||||
<td class="f100">​</td>
|
||||
<td class="f600"><div class="f200">200px in 600px</div></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="f600">600px</td>
|
||||
<td class="f600">600px</td>
|
||||
<td class="f100">100px</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="f600">600px</td>
|
||||
<td class="f600">600px</td>
|
||||
<td class="f100">​</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="f600"><div class="f200">200px in 600px</div></td>
|
||||
<td class="f600"><div class="f200">200px in 600px</div></td>
|
||||
<td class="f100">​</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p>combinations of 100px, 200px, and 600px</p>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td class="f100">100px</td>
|
||||
<td class="f200">200px</td>
|
||||
<td class="f600">600px</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="f100">100px</td>
|
||||
<td class="f600">600px</td>
|
||||
<td class="f200">200px</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="f200">200px</td>
|
||||
<td class="f100">100px</td>
|
||||
<td class="f600">600px</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="f200">200px</td>
|
||||
<td class="f600">600px</td>
|
||||
<td class="f100">100px</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="f600">600px</td>
|
||||
<td class="f100">100px</td>
|
||||
<td class="f200">200px</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="f600">600px</td>
|
||||
<td class="f200">200px</td>
|
||||
<td class="f100">100px</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p>combinations of 100px, 200px, and 100%</p>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td class="f100">100px</td>
|
||||
<td class="f200">200px</td>
|
||||
<td class="p100">100%</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="f100">100px</td>
|
||||
<td class="p100">100%</td>
|
||||
<td class="f200">200px</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="f200">200px</td>
|
||||
<td class="f100">100px</td>
|
||||
<td class="p100">100%</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="f200">200px</td>
|
||||
<td class="p100">100%</td>
|
||||
<td class="f100">100px</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="p100">100%</td>
|
||||
<td class="f100">100px</td>
|
||||
<td class="f200">200px</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="p100">100%</td>
|
||||
<td class="f200">200px</td>
|
||||
<td class="f100">100px</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p>combinations of 100px, 200px, and auto</p>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td class="f100">100px</td>
|
||||
<td class="f200">200px</td>
|
||||
<td class="auto">auto</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="f100">100px</td>
|
||||
<td class="auto">auto</td>
|
||||
<td class="f200">200px</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="f200">200px</td>
|
||||
<td class="f100">100px</td>
|
||||
<td class="auto">auto</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="f200">200px</td>
|
||||
<td class="auto">auto</td>
|
||||
<td class="f100">100px</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="auto">auto</td>
|
||||
<td class="f100">100px</td>
|
||||
<td class="f200">200px</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="auto">auto</td>
|
||||
<td class="f200">200px</td>
|
||||
<td class="f100">100px</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,592 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>Automatic table sizing algorithm investigation (spanning cells)</title>
|
||||
<link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
|
||||
<link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/table/inspection/inspection-spanning.html"/>
|
||||
<link rel="help" href="http://www.w3.org/TR/CSS21/tables.html#auto-table-layout" />
|
||||
<style type="text/css">
|
||||
html, body p { background: white; padding: 1.5em 1em 0.5em 1em; margin: 0; border: 0; }
|
||||
body { background: url(support/horizontal-ruler) top left repeat-y; padding: 0; margin: 0; border: 0; }
|
||||
body * { border: solid 3px black; }
|
||||
table { width: 600px; margin: 1em 0; }
|
||||
td { height: 1em; }
|
||||
.p100 { width: 100%; }
|
||||
.p50 { width: 50%; }
|
||||
.p25 { width: 25%; }
|
||||
.f100 { width: 100px; }
|
||||
.f200 { width: 200px; }
|
||||
.f600 { width: 600px; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Blank rows have the same dimensions as the preceeding row, but with zero width spaces in the cells instead of text.</p>
|
||||
|
||||
<p>100px</p>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td class="f100" colspan="2">100px [2]</td>
|
||||
<td class="f100" colspan="1">100px [1]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="f100" colspan="1">100px [1]</td>
|
||||
<td class="f100" colspan="2">100px [2]</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td class="f100" colspan="1">100px [1]</td>
|
||||
<td class="f100" colspan="1">100px [1]</td>
|
||||
<td class="f100" colspan="1">100px [1]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="f100" colspan="2">100px [2]</td>
|
||||
<td class="f100" colspan="1">100px [1]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="f100" colspan="1">100px [1]</td>
|
||||
<td class="f100" colspan="2">100px [2]</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td class="auto" colspan="1">auto [1]</td>
|
||||
<td class="auto" colspan="1">auto [1]</td>
|
||||
<td class="auto" colspan="1">auto [1]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="f100" colspan="2">100px [2]</td>
|
||||
<td class="f100" colspan="1">100px [1]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="f100" colspan="1">100px [1]</td>
|
||||
<td class="f100" colspan="2">100px [2]</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td class="auto" colspan="1">auto [1]</td>
|
||||
<td class="auto" colspan="1">auto [1]</td>
|
||||
<td class="auto" colspan="1">auto [1]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="f100" colspan="2">100px [2]</td>
|
||||
<td class="auto" colspan="1">auto [1]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="auto" colspan="1">auto [1]</td>
|
||||
<td class="auto" colspan="2">auto [2]</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td class="auto" colspan="1">auto [1]</td>
|
||||
<td class="auto" colspan="1">auto [1]</td>
|
||||
<td class="auto" colspan="1">auto [1]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="auto" colspan="1">auto [1]</td>
|
||||
<td class="f100" colspan="2">100px [2]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="auto" colspan="2">auto [2]</td>
|
||||
<td class="auto" colspan="1">auto [1]</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p>100%</p>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td class="p100" colspan="2">100% [2]</td>
|
||||
<td class="p100" colspan="1">100% [1]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="p100" colspan="1">100% [1]</td>
|
||||
<td class="p100" colspan="2">100% [2]</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td class="p100" colspan="1">100% [1]</td>
|
||||
<td class="p100" colspan="1">100% [1]</td>
|
||||
<td class="p100" colspan="1">100% [1]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="p100" colspan="2">100% [2]</td>
|
||||
<td class="p100" colspan="1">100% [1]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="p100" colspan="1">100% [1]</td>
|
||||
<td class="p100" colspan="2">100% [2]</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td class="auto" colspan="1">auto [1]</td>
|
||||
<td class="auto" colspan="1">auto [1]</td>
|
||||
<td class="auto" colspan="1">auto [1]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="p100" colspan="2">100% [2]</td>
|
||||
<td class="p100" colspan="1">100% [1]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="p100" colspan="1">100% [1]</td>
|
||||
<td class="p100" colspan="2">100% [2]</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td class="auto" colspan="1">auto [1]</td>
|
||||
<td class="auto" colspan="1">auto [1]</td>
|
||||
<td class="auto" colspan="1">auto [1]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="p100" colspan="2">100% [2]</td>
|
||||
<td class="auto" colspan="1">auto [1]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="auto" colspan="1">auto [1]</td>
|
||||
<td class="auto" colspan="2">auto [2]</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td class="auto" colspan="1">auto [1]</td>
|
||||
<td class="auto" colspan="1">auto [1]</td>
|
||||
<td class="auto" colspan="1">auto [1]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="auto" colspan="1">auto [1]</td>
|
||||
<td class="p100" colspan="2">100% [2]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="auto" colspan="2">auto [2]</td>
|
||||
<td class="auto" colspan="1">auto [1]</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p>50%</p>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td class="p50" colspan="2">50% [2]</td>
|
||||
<td class="p50" colspan="1">50% [1]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="p50" colspan="1">50% [1]</td>
|
||||
<td class="p50" colspan="2">50% [2]</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td class="p50" colspan="1">50% [1]</td>
|
||||
<td class="p50" colspan="1">50% [1]</td>
|
||||
<td class="p50" colspan="1">50% [1]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="p50" colspan="2">50% [2]</td>
|
||||
<td class="p50" colspan="1">50% [1]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="p50" colspan="1">50% [1]</td>
|
||||
<td class="p50" colspan="2">50% [2]</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td class="auto" colspan="1">auto [1]</td>
|
||||
<td class="auto" colspan="1">auto [1]</td>
|
||||
<td class="auto" colspan="1">auto [1]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="p50" colspan="2">50% [2]</td>
|
||||
<td class="p50" colspan="1">50% [1]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="p50" colspan="1">50% [1]</td>
|
||||
<td class="p50" colspan="2">50% [2]</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td class="auto" colspan="1">auto [1]</td>
|
||||
<td class="auto" colspan="1">auto [1]</td>
|
||||
<td class="auto" colspan="1">auto [1]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="p50" colspan="2">50% [2]</td>
|
||||
<td class="auto" colspan="1">auto [1]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="auto" colspan="1">auto [1]</td>
|
||||
<td class="auto" colspan="2">auto [2]</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td class="auto" colspan="1">auto [1]</td>
|
||||
<td class="auto" colspan="1">auto [1]</td>
|
||||
<td class="auto" colspan="1">auto [1]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="auto" colspan="1">auto [1]</td>
|
||||
<td class="p50" colspan="2">50% [2]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="auto" colspan="2">auto [2]</td>
|
||||
<td class="auto" colspan="1">auto [1]</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p>25%</p>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td class="p25" colspan="2">25% [2]</td>
|
||||
<td class="p25" colspan="1">25% [1]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="p25" colspan="1">25% [1]</td>
|
||||
<td class="p25" colspan="2">25% [2]</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td class="p25" colspan="1">25% [1]</td>
|
||||
<td class="p25" colspan="1">25% [1]</td>
|
||||
<td class="p25" colspan="1">25% [1]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="p25" colspan="2">25% [2]</td>
|
||||
<td class="p25" colspan="1">25% [1]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="p25" colspan="1">25% [1]</td>
|
||||
<td class="p25" colspan="2">25% [2]</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td class="auto" colspan="1">auto [1]</td>
|
||||
<td class="auto" colspan="1">auto [1]</td>
|
||||
<td class="auto" colspan="1">auto [1]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="p25" colspan="2">25% [2]</td>
|
||||
<td class="p25" colspan="1">25% [1]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="p25" colspan="1">25% [1]</td>
|
||||
<td class="p25" colspan="2">25% [2]</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td class="auto" colspan="1">auto [1]</td>
|
||||
<td class="auto" colspan="1">auto [1]</td>
|
||||
<td class="auto" colspan="1">auto [1]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="p25" colspan="2">25% [2]</td>
|
||||
<td class="auto" colspan="1">auto [1]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="auto" colspan="1">auto [1]</td>
|
||||
<td class="auto" colspan="2">auto [2]</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td class="auto" colspan="1">auto [1]</td>
|
||||
<td class="auto" colspan="1">auto [1]</td>
|
||||
<td class="auto" colspan="1">auto [1]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="auto" colspan="1">auto [1]</td>
|
||||
<td class="p25" colspan="2">25% [2]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="auto" colspan="2">auto [2]</td>
|
||||
<td class="auto" colspan="1">auto [1]</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p>25% and 100px</p>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td class="p25" colspan="2">25% [2]</td>
|
||||
<td class="f100" colspan="1">100px [1]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="p25" colspan="1">25% [1]</td>
|
||||
<td class="f100" colspan="2">100px [2]</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td class="auto" colspan="1">auto [1]</td>
|
||||
<td class="auto" colspan="1">auto [1]</td>
|
||||
<td class="auto" colspan="1">auto [1]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="p25" colspan="2">25% [2]</td>
|
||||
<td class="f100" colspan="1">100px [1]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="p25" colspan="1">25% [1]</td>
|
||||
<td class="f100" colspan="2">100px [2]</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td class="auto" colspan="1">auto [1]</td>
|
||||
<td class="auto" colspan="1">auto [1]</td>
|
||||
<td class="auto" colspan="1">auto [1]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="p25" colspan="2">25% [2]</td>
|
||||
<td class="f100" colspan="1">100px [1]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="auto" colspan="1">auto [1]</td>
|
||||
<td class="auto" colspan="2">auto [2]</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td class="auto" colspan="1">auto [1]</td>
|
||||
<td class="auto" colspan="1">auto [1]</td>
|
||||
<td class="auto" colspan="1">auto [1]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="p25" colspan="1">25% [1]</td>
|
||||
<td class="f100" colspan="2">100px [2]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="auto" colspan="2">auto [2]</td>
|
||||
<td class="auto" colspan="1">auto [1]</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td class="auto" colspan="1">auto [1]</td>
|
||||
<td class="auto" colspan="1">auto [1]</td>
|
||||
<td class="auto" colspan="1">auto [1]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="p25" colspan="1">25% [1]</td>
|
||||
<td class="auto" colspan="2">auto [2]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="f100" colspan="2">100px [2]</td>
|
||||
<td class="auto" colspan="1">auto [1]</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p>100% and 100px</p>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td class="p100" colspan="2">100% [2]</td>
|
||||
<td class="f100" colspan="1">100px [1]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="p100" colspan="1">100% [1]</td>
|
||||
<td class="f100" colspan="2">100px [2]</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td class="auto" colspan="1">auto [1]</td>
|
||||
<td class="auto" colspan="1">auto [1]</td>
|
||||
<td class="auto" colspan="1">auto [1]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="p100" colspan="2">100% [2]</td>
|
||||
<td class="f100" colspan="1">100px [1]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="p100" colspan="1">100% [1]</td>
|
||||
<td class="f100" colspan="2">100px [2]</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td class="auto" colspan="1">auto [1]</td>
|
||||
<td class="auto" colspan="1">auto [1]</td>
|
||||
<td class="auto" colspan="1">auto [1]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="p100" colspan="2">100% [2]</td>
|
||||
<td class="f100" colspan="1">100px [1]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="auto" colspan="1">auto [1]</td>
|
||||
<td class="auto" colspan="2">auto [2]</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td class="auto" colspan="1">auto [1]</td>
|
||||
<td class="auto" colspan="1">auto [1]</td>
|
||||
<td class="auto" colspan="1">auto [1]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="p100" colspan="1">100% [1]</td>
|
||||
<td class="f100" colspan="2">100px [2]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="auto" colspan="2">auto [2]</td>
|
||||
<td class="auto" colspan="1">auto [1]</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td class="auto" colspan="1">auto [1]</td>
|
||||
<td class="auto" colspan="1">auto [1]</td>
|
||||
<td class="auto" colspan="1">auto [1]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="p100" colspan="1">100% [1]</td>
|
||||
<td class="auto" colspan="2">auto [2]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="f100" colspan="2">100px [2]</td>
|
||||
<td class="auto" colspan="1">auto [1]</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p>100% and 50%</p>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td class="p100" colspan="2">100% [2]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="p50" colspan="1">50% [1]</td>
|
||||
<td class="p50" colspan="1">50% [1]</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td class="p50" colspan="1">50% [1]</td>
|
||||
<td class="p50" colspan="1">50% [1]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="p100" colspan="2">100% [2]</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td class="p100" colspan="2">100% [2]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="p50" colspan="1">50% [1]</td>
|
||||
<td class="p50" colspan="1">50% [1]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="p100" colspan="2">100% [2]</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p>100% and 50% and content</p>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td class="p100" colspan="2">100% [2]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="p50" colspan="1">50% [1]</td>
|
||||
<td class="p50" colspan="1">50% [1] text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td class="p50" colspan="1">50% [1]</td>
|
||||
<td class="p50" colspan="1">50% [1] text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="p100" colspan="2">100% [2]</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td class="p100" colspan="2">100% [2]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="p50" colspan="1">50% [1]</td>
|
||||
<td class="p50" colspan="1">50% [1] text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="p100" colspan="2">100% [2]</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td class="p100" colspan="2">100% [2]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="p50" colspan="1">50% [1] text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text</td>
|
||||
<td class="p50" colspan="1">50% [1]</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td class="p50" colspan="1">50% [1] text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text</td>
|
||||
<td class="p50" colspan="1">50% [1]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="p100" colspan="2">100% [2]</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td class="p100" colspan="2">100% [2]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="p50" colspan="1">50% [1] text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text</td>
|
||||
<td class="p50" colspan="1">50% [1]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="p100" colspan="2">100% [2]</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,139 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>Automatic table sizing algorithm investigation (three rows)</title>
|
||||
<link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
|
||||
<link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/table/inspection/inspection-three-rows.html"/>
|
||||
<link rel="help" href="http://www.w3.org/TR/CSS21/tables.html#auto-table-layout" />
|
||||
<style type="text/css">
|
||||
html, body p { background: white; padding: 1.5em 1em 0.5em 1em; margin: 0; border: 0; }
|
||||
body { background: url(support/horizontal-ruler) top left repeat-y; padding: 0; margin: 0; border: 0; }
|
||||
body * { border: solid 3px black; }
|
||||
table { width: 600px; margin: 1em 0; }
|
||||
td { height: 1em; }
|
||||
.p100 { width: 100%; }
|
||||
.p50 { width: 50%; }
|
||||
.f100 { width: 100px; }
|
||||
.f200 { width: 200px; }
|
||||
.f600 { width: 600px; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Blank rows have the same dimensions as the preceeding row, but with zero width spaces in the cells instead of text.</p>
|
||||
|
||||
<p>combinations of 100%, 600px, and auto</p>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td class="auto"> auto </td>
|
||||
<td class="auto"> auto </td>
|
||||
<td class="auto"> auto </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="f600"> 600px </td>
|
||||
<td class="f600"> 600px </td>
|
||||
<td class="f600"> 600px </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="p100"> 100% </td>
|
||||
<td class="p100"> 100% </td>
|
||||
<td class="p100"> 100% </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td class="auto"> auto </td>
|
||||
<td class="f600"> 600px </td>
|
||||
<td class="p100"> 100% </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="auto"> auto </td>
|
||||
<td class="f600"> 600px </td>
|
||||
<td class="p100"> 100% </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="auto"> auto </td>
|
||||
<td class="f600"> 600px </td>
|
||||
<td class="p100"> 100% </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td class="auto"> auto </td>
|
||||
<td class="f600"> 600px </td>
|
||||
<td class="p100"> 100% </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="p100"> 100% </td>
|
||||
<td class="auto"> auto </td>
|
||||
<td class="f600"> 600px </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="f600"> 600px </td>
|
||||
<td class="p100"> 100% </td>
|
||||
<td class="auto"> auto </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p>combinations of 50%, 200px, and auto</p>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td class="auto"> auto </td>
|
||||
<td class="auto"> auto </td>
|
||||
<td class="auto"> auto </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="f200"> 200px </td>
|
||||
<td class="f200"> 200px </td>
|
||||
<td class="f200"> 200px </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="p50"> 50% </td>
|
||||
<td class="p50"> 50% </td>
|
||||
<td class="p50"> 50% </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td class="auto"> auto </td>
|
||||
<td class="f200"> 200px </td>
|
||||
<td class="p50"> 50% </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="auto"> auto </td>
|
||||
<td class="f200"> 200px </td>
|
||||
<td class="p50"> 50% </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="auto"> auto </td>
|
||||
<td class="f200"> 200px </td>
|
||||
<td class="p50"> 50% </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td class="auto"> auto </td>
|
||||
<td class="f200"> 200px </td>
|
||||
<td class="p50"> 50% </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="p50"> 50% </td>
|
||||
<td class="auto"> auto </td>
|
||||
<td class="f200"> 200px </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="f200"> 200px </td>
|
||||
<td class="p50"> 50% </td>
|
||||
<td class="auto"> auto </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,460 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>Automatic table sizing algorithm investigation (two rows)</title>
|
||||
<link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
|
||||
<link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/table/inspection/inspection-two-rows.html"/>
|
||||
<link rel="help" href="http://www.w3.org/TR/CSS21/tables.html#auto-table-layout" />
|
||||
<style type="text/css">
|
||||
html, body p { background: white; padding: 1.5em 1em 0.5em 1em; margin: 0; border: 0; }
|
||||
body { background: url(support/horizontal-ruler) top left repeat-y; padding: 0; margin: 0; border: 0; }
|
||||
body * { border: solid 3px black; }
|
||||
table { width: 600px; margin: 1em 0; }
|
||||
td { height: 1em; }
|
||||
.p100 { width: 100%; }
|
||||
.p50 { width: 50%; }
|
||||
.f100 { width: 100px; }
|
||||
.f200 { width: 200px; }
|
||||
.f600 { width: 600px; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Blank rows have the same dimensions as the preceeding row, but with zero width spaces in the cells instead of text.</p>
|
||||
|
||||
<p>combinations of 50% and 100%</p>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td class="p50"> 50% </td>
|
||||
<td class="p50"> 50% </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="p100"> 100% </td>
|
||||
<td class="p100"> 100% </td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="p100"> 100% </td>
|
||||
<td class="p100"> 100% </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="p50"> 50% </td>
|
||||
<td class="p50"> 50% </td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="p50"> 50% </td>
|
||||
<td class="p100"> 100% </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="p100"> 100% </td>
|
||||
<td class="p50"> 50% </td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="p100"> 100% </td>
|
||||
<td class="p50"> 50% </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="p50"> 50% </td>
|
||||
<td class="p100"> 100% </td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="p50"> 50% </td>
|
||||
<td class="p100"> 100% </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="p50"> 50% </td>
|
||||
<td class="p100"> 100% </td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="p100"> 100% </td>
|
||||
<td class="p50"> 50% </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="p100"> 100% </td>
|
||||
<td class="p50"> 50% </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p>combinations of 50% and 100px</p>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td class="p50"> 50% </td>
|
||||
<td class="p50"> 50% </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="f100"> 100px </td>
|
||||
<td class="f100"> 100px </td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="f100"> 100px </td>
|
||||
<td class="f100"> 100px </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="p50"> 50% </td>
|
||||
<td class="p50"> 50% </td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="p50"> 50% </td>
|
||||
<td class="f100"> 100px </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="f100"> 100px </td>
|
||||
<td class="p50"> 50% </td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="f100"> 100px </td>
|
||||
<td class="p50"> 50% </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="p50"> 50% </td>
|
||||
<td class="f100"> 100px </td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="p50"> 50% </td>
|
||||
<td class="f100"> 100px </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="p50"> 50% </td>
|
||||
<td class="f100"> 100px </td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="f100"> 100px </td>
|
||||
<td class="p50"> 50% </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="f100"> 100px </td>
|
||||
<td class="p50"> 50% </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p>combinations of 50% and auto</p>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td class="p50"> 50% </td>
|
||||
<td class="p50"> 50% </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="auto"> auto </td>
|
||||
<td class="auto"> auto </td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="auto"> auto </td>
|
||||
<td class="auto"> auto </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="p50"> 50% </td>
|
||||
<td class="p50"> 50% </td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="p50"> 50% </td>
|
||||
<td class="auto"> auto </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="auto"> auto </td>
|
||||
<td class="p50"> 50% </td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="auto"> auto </td>
|
||||
<td class="p50"> 50% </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="p50"> 50% </td>
|
||||
<td class="auto"> auto </td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="p50"> 50% </td>
|
||||
<td class="auto"> auto </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="p50"> 50% </td>
|
||||
<td class="auto"> auto </td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="auto"> auto </td>
|
||||
<td class="p50"> 50% </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="auto"> auto </td>
|
||||
<td class="p50"> 50% </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p>combinations of 100px and 200px</p>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td class="f100"> 100px </td>
|
||||
<td class="f100"> 100px </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="f200"> 200px </td>
|
||||
<td class="f200"> 200px </td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="f200"> 200px </td>
|
||||
<td class="f200"> 200px </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="f100"> 100px </td>
|
||||
<td class="f100"> 100px </td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="f100"> 100px </td>
|
||||
<td class="f200"> 200px </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="f200"> 200px </td>
|
||||
<td class="f100"> 100px </td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="f200"> 200px </td>
|
||||
<td class="f100"> 100px </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="f100"> 100px </td>
|
||||
<td class="f200"> 200px </td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="f100"> 100px </td>
|
||||
<td class="f200"> 200px </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="f100"> 100px </td>
|
||||
<td class="f200"> 200px </td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="f200"> 200px </td>
|
||||
<td class="f100"> 100px </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="f200"> 200px </td>
|
||||
<td class="f100"> 100px </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p>combinations of auto, 100px, and 200px</p>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td class="f100"> 100px </td>
|
||||
<td class="f200"> 200px </td>
|
||||
<td class="auto"> auto </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="f100"> 100px </td>
|
||||
<td class="f200"> 200px </td>
|
||||
<td class="auto"> auto </td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="f100"> 100px </td>
|
||||
<td class="f100"> 100px </td>
|
||||
<td class="auto"> auto </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="f200"> 200px </td>
|
||||
<td class="f200"> 200px </td>
|
||||
<td class="auto"> auto </td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="f100"> 100px </td>
|
||||
<td class="f200"> 200px </td>
|
||||
<td class="auto"> auto </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="f200"> 200px </td>
|
||||
<td class="f100"> 100px </td>
|
||||
<td class="auto"> auto </td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="f100"> 100px </td>
|
||||
<td class="auto"> auto </td>
|
||||
<td class="f200"> 200px </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="f200"> 200px </td>
|
||||
<td class="f100"> 100px </td>
|
||||
<td class="auto"> auto </td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="f100"> 100px </td>
|
||||
<td class="auto"> auto </td>
|
||||
<td class="auto"> auto </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="f200"> 200px </td>
|
||||
<td class="auto"> auto </td>
|
||||
<td class="auto"> auto </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p>combinations of auto, 100px, and 600px</p>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td class="f100"> 100px </td>
|
||||
<td class="f600"> 600px </td>
|
||||
<td class="auto"> auto </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="f100"> 100px </td>
|
||||
<td class="f600"> 600px </td>
|
||||
<td class="auto"> auto </td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="f100"> 100px </td>
|
||||
<td class="f100"> 100px </td>
|
||||
<td class="auto"> auto </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="f600"> 600px </td>
|
||||
<td class="f600"> 600px </td>
|
||||
<td class="auto"> auto </td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="f100"> 100px </td>
|
||||
<td class="f600"> 600px </td>
|
||||
<td class="auto"> auto </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="f600"> 600px </td>
|
||||
<td class="f100"> 100px </td>
|
||||
<td class="auto"> auto </td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="f100"> 100px </td>
|
||||
<td class="auto"> auto </td>
|
||||
<td class="f600"> 600px </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="f600"> 600px </td>
|
||||
<td class="f100"> 100px </td>
|
||||
<td class="auto"> auto </td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="f100"> 100px </td>
|
||||
<td class="auto"> auto </td>
|
||||
<td class="auto"> auto </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="f600"> 600px </td>
|
||||
<td class="auto"> auto </td>
|
||||
<td class="auto"> auto </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p>combinations of 100px and wide minimums</p>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td class="auto"> auto </td>
|
||||
<td class="auto"> <div class="f200"> 200px in auto</div> </td>
|
||||
<td class="auto"> auto </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="f100"> 100px </td>
|
||||
<td class="f100"> 100px </td>
|
||||
<td class="f100"> 100px </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td class="auto"> auto </td>
|
||||
<td class="auto"> <div class="f600"> 600px in auto</div> </td>
|
||||
<td class="auto"> auto </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="f100"> 100px </td>
|
||||
<td class="f100"> 100px </td>
|
||||
<td class="f100"> 100px </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p>combinations of auto, 100px, and percentage-sized children</p>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td class="auto"> auto </td>
|
||||
<td class="auto"> <div class="p100"> 100% in auto</div> </td>
|
||||
<td class="auto"> auto </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="f100"> 100px </td>
|
||||
<td class="f100"> 100px </td>
|
||||
<td class="f100"> 100px </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td class="auto"> auto </td>
|
||||
<td class="auto"> <div class="p50"> 50% in auto</div> </td>
|
||||
<td class="auto"> auto </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="f100"> 100px </td>
|
||||
<td class="f100"> 100px </td>
|
||||
<td class="f100"> 100px </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</body>
|
||||
</html>
|
Binary file not shown.
After Width: | Height: | Size: 932 B |
|
@ -0,0 +1,8 @@
|
|||
inheritance
|
||||
initial values
|
||||
overriding values
|
||||
!important
|
||||
mapped attributes
|
||||
shorthands
|
||||
|
||||
font-family, font-size, font-weight, font-style, font-variant, line-height, font-stretch, font-size-adjust
|
|
@ -0,0 +1,19 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title>HTML Input controls as table cells: width</title>
|
||||
<link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
|
||||
<link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/table/018.html"/>
|
||||
<link rel="help" href="http://www.w3.org/TR/CSS21/tables.html#table-layout" />
|
||||
<style type="text/css">
|
||||
div { display: table; }
|
||||
p { display: table-row; }
|
||||
input { display: table-cell; background: green; color: white; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>There should be a green box below.</p>
|
||||
<div><p><input value="PASS"></p></div>
|
||||
<!-- ...because the <input> has an intrinsic size. -->
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,19 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title>HTML Input controls as table cells: width</title>
|
||||
<link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
|
||||
<link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/table/019.html"/>
|
||||
<link rel="help" href="http://www.w3.org/TR/CSS21/tables.html#table-layout" />
|
||||
<style type="text/css">
|
||||
body { color: navy; }
|
||||
div { display: table; }
|
||||
p { display: table-row; }
|
||||
input { display: table-cell; width: 10em; height: 2em; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>The text box below should be editable.</p>
|
||||
<div><p><input value="This text should be editable."></p></div>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,19 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title>HTML Input controls as table cells: width</title>
|
||||
<link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
|
||||
<link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/table/020.html"/>
|
||||
<link rel="help" href="http://www.w3.org/TR/CSS21/tables.html#table-layout" />
|
||||
<style type="text/css">
|
||||
body { color: navy; }
|
||||
div { display: table; }
|
||||
p { display: table-row; }
|
||||
textarea { display: table-cell; width: 10em; height: 2em; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>The text box below should be editable.</p>
|
||||
<div><p><textarea>This text should be editable.</textarea></p></div>
|
||||
</body>
|
||||
</html>
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue