summaryrefslogtreecommitdiff
path: root/Tests/LibWeb/Layout
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/LibWeb/Layout')
-rw-r--r--Tests/LibWeb/Layout/expected/link-sheet.txt4
-rw-r--r--Tests/LibWeb/Layout/input/link-sheet.css7
-rw-r--r--Tests/LibWeb/Layout/input/link-sheet.html1
3 files changed, 12 insertions, 0 deletions
diff --git a/Tests/LibWeb/Layout/expected/link-sheet.txt b/Tests/LibWeb/Layout/expected/link-sheet.txt
new file mode 100644
index 0000000000..0ef7355308
--- /dev/null
+++ b/Tests/LibWeb/Layout/expected/link-sheet.txt
@@ -0,0 +1,4 @@
+Viewport <#document> at (0,0) content-size 800x600 children: not-inline
+ BlockContainer <html> at (0,0) content-size 800x16 children: not-inline
+ BlockContainer <body> at (8,8) content-size 784x0 children: not-inline
+ BlockContainer <div#foo> at (0,0) content-size 123x456 positioned children: not-inline
diff --git a/Tests/LibWeb/Layout/input/link-sheet.css b/Tests/LibWeb/Layout/input/link-sheet.css
new file mode 100644
index 0000000000..4feef78b13
--- /dev/null
+++ b/Tests/LibWeb/Layout/input/link-sheet.css
@@ -0,0 +1,7 @@
+#foo {
+ position: absolute;
+ top: 0;
+ left: 0;
+ width: 123px;
+ height: 456px;
+}
diff --git a/Tests/LibWeb/Layout/input/link-sheet.html b/Tests/LibWeb/Layout/input/link-sheet.html
new file mode 100644
index 0000000000..359b136bd4
--- /dev/null
+++ b/Tests/LibWeb/Layout/input/link-sheet.html
@@ -0,0 +1 @@
+<!DOCTYPE html><head><link rel="stylesheet" href="link-sheet.css"></head><body><div id="foo"> \ No newline at end of file