summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2008-10-14 09:49:10 (GMT)
committer Michael Drake <tlsa@netsurf-browser.org>2008-10-14 09:49:10 (GMT)
commitb46d24b3ec5fa4cb3ef7f807044a314014545b0c (patch)
tree32881ed587b2cb3528aad147651312a8e191b2d4
parent443003b66f42c82be36ff6926c017f88e9e57ff0 (diff)
downloadnetsurftest-b46d24b3ec5fa4cb3ef7f807044a314014545b0c.tar.gz
netsurftest-b46d24b3ec5fa4cb3ef7f807044a314014545b0c.tar.bz2
Test cases for non-integer CSS lengths (em and cm).
svn path=/trunk/netsurftest/; revision=5572
-rw-r--r--works/fractional-css-unit-test-cm.html53
-rw-r--r--works/fractional-css-unit-test-em.html53
2 files changed, 106 insertions, 0 deletions
diff --git a/works/fractional-css-unit-test-cm.html b/works/fractional-css-unit-test-cm.html
new file mode 100644
index 0000000..9bf1222
--- a/dev/null
+++ b/works/fractional-css-unit-test-cm.html
@@ -0,0 +1,53 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html>
+<head>
+<title>Test for fractional CSS dimensions</title>
+</head>
+<body>
+
+<p>There should be pink bars visible next to every number.</p>
+
+<ol>
+<li style="padding-bottom:2em;">
+ <div style="background:#f0f; height:0.5cm;"></div>
+</li>
+<li style="padding-bottom:2em;">
+ <div style="background:#f0f; height:0.6cm;"></div>
+</li>
+<li style="padding-bottom:2em;">
+ <div style="background:#f0f; height:0.7cm;"></div>
+</li>
+<li style="padding-bottom:2em;">
+ <div style="background:#f0f; height:0.8cm;"></div>
+</li>
+<li style="padding-bottom:2em;">
+ <div style="background:#f0f; height:0.9cm;"></div>
+</li>
+<li style="padding-bottom:2em;">
+ <div style="background:#f0f; height:0.95cm;"></div>
+</li>
+<li style="padding-bottom:2em;">
+ <div style="background:#f0f; height:0.99cm;"></div>
+</li>
+<li style="padding-bottom:2em;">
+ <div style="background:#f0f; height:1cm;"></div>
+</li>
+<li style="padding-bottom:2em;">
+ <div style="background:#f0f; height:1.01cm;"></div>
+</li>
+<li style="padding-bottom:2em;">
+ <div style="background:#f0f; height:1.1cm;"></div>
+</li>
+<li style="padding-bottom:2em;">
+ <div style="background:#f0f; height:1.5cm;"></div>
+</li>
+<li style="padding-bottom:2em;">
+ <div style="background:#f0f; height:2cm;"></div>
+</li>
+<li style="padding-bottom:2em;">
+ <div style="background:#f0f; height:3cm;"></div>
+</li>
+</ol>
+
+</body>
+</html>
diff --git a/works/fractional-css-unit-test-em.html b/works/fractional-css-unit-test-em.html
new file mode 100644
index 0000000..14f9c3c
--- a/dev/null
+++ b/works/fractional-css-unit-test-em.html
@@ -0,0 +1,53 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html>
+<head>
+<title>Test for fractional CSS dimensions</title>
+</head>
+<body>
+
+<p>There should be pink bars visible next to every number.</p>
+
+<ol>
+<li style="padding-bottom:2em;">
+ <div style="background:#f0f; height:0.5em;"></div>
+</li>
+<li style="padding-bottom:2em;">
+ <div style="background:#f0f; height:0.6em;"></div>
+</li>
+<li style="padding-bottom:2em;">
+ <div style="background:#f0f; height:0.7em;"></div>
+</li>
+<li style="padding-bottom:2em;">
+ <div style="background:#f0f; height:0.8em;"></div>
+</li>
+<li style="padding-bottom:2em;">
+ <div style="background:#f0f; height:0.9em;"></div>
+</li>
+<li style="padding-bottom:2em;">
+ <div style="background:#f0f; height:0.95em;"></div>
+</li>
+<li style="padding-bottom:2em;">
+ <div style="background:#f0f; height:0.99em;"></div>
+</li>
+<li style="padding-bottom:2em;">
+ <div style="background:#f0f; height:1em;"></div>
+</li>
+<li style="padding-bottom:2em;">
+ <div style="background:#f0f; height:1.01em;"></div>
+</li>
+<li style="padding-bottom:2em;">
+ <div style="background:#f0f; height:1.1em;"></div>
+</li>
+<li style="padding-bottom:2em;">
+ <div style="background:#f0f; height:1.5em;"></div>
+</li>
+<li style="padding-bottom:2em;">
+ <div style="background:#f0f; height:2em;"></div>
+</li>
+<li style="padding-bottom:2em;">
+ <div style="background:#f0f; height:3em;"></div>
+</li>
+</ol>
+
+</body>
+</html>