summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/CSS2/floats/floats-in-table-caption-001.html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/css/CSS2/floats/floats-in-table-caption-001.html')
-rw-r--r--testing/web-platform/tests/css/CSS2/floats/floats-in-table-caption-001.html24
1 files changed, 24 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/CSS2/floats/floats-in-table-caption-001.html b/testing/web-platform/tests/css/CSS2/floats/floats-in-table-caption-001.html
new file mode 100644
index 0000000000..a1dc7e9d52
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/floats/floats-in-table-caption-001.html
@@ -0,0 +1,24 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<link rel="author" title="David Grogan" href="dgrogan@chromium.org">
+<link rel="help" href="https://www.w3.org/TR/CSS22/tables.html#model">
+<link rel="match" href="floats-in-table-caption-001-ref.html">
+<meta name="assert" content="Basic floats are honored inside a caption" />
+<title>
+Caption block containers are rendered same as normal block boxes
+</title>
+
+<p>
+The words floated and inline should be legible below, with inline appearing just
+to the right of the border surrounding floated.
+</p>
+
+<table>
+ <!-- 200px allows floated and inline to not wrap -->
+ <caption style="text-align:left; width:200px">
+ <div style="float:left; border: 1px solid black;">
+ floated
+ </div>
+ inline
+ </caption>
+</table>