Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(86)

Unified Diff: LayoutTests/svg/as-image/default-monospace-font.html

Issue 1128143003: Set default SVG image font settings (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Page::ordinaryPages can be empty in tests (ImageResourceTest) Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/svg/as-image/default-monospace-font.html
diff --git a/LayoutTests/svg/as-image/default-monospace-font.html b/LayoutTests/svg/as-image/default-monospace-font.html
new file mode 100644
index 0000000000000000000000000000000000000000..6d2c056bde3d12f0ff447958f47fcc6510ef34d1
--- /dev/null
+++ b/LayoutTests/svg/as-image/default-monospace-font.html
@@ -0,0 +1,14 @@
+<!DOCTYPE html>
+<style>
+ * {
+ margin: 0;
+ padding: 0;
+ }
+ div {
+ background-image: url("data:image/svg+xml;utf8,<svg width='100' height='100' xmlns='http://www.w3.org/2000/svg'><text y='30' font-family='monospace' fill='green'>PASS</text></svg>");
+ width: 100px;
+ height: 100px;
+ }
+</style>
+crbug.com/167760: This test passes if the word "PASS" appears below in monospace:<br>
+<div></div>

Powered by Google App Engine
This is Rietveld 408576698