summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/canvas/offscreen/set-proprietary-font-names-001-crash.html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/html/canvas/offscreen/set-proprietary-font-names-001-crash.html')
-rw-r--r--testing/web-platform/tests/html/canvas/offscreen/set-proprietary-font-names-001-crash.html13
1 files changed, 13 insertions, 0 deletions
diff --git a/testing/web-platform/tests/html/canvas/offscreen/set-proprietary-font-names-001-crash.html b/testing/web-platform/tests/html/canvas/offscreen/set-proprietary-font-names-001-crash.html
new file mode 100644
index 0000000000..dfa661655e
--- /dev/null
+++ b/testing/web-platform/tests/html/canvas/offscreen/set-proprietary-font-names-001-crash.html
@@ -0,0 +1,13 @@
+<!DOCTYPE>
+<title>Setting font of offscreen</title>
+<script src="/css/css-fonts/support/font-family-keywords.js"></script>
+<link rel="help" href="https://drafts.csswg.org/css-fonts-4/#font-family-prop">
+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1056386">
+<script>
+ let ctx = (new OffscreenCanvas(1024, 50)).getContext('2d');
+ function setFont(keyword) { ctx.font = `12px ${keyword}` };
+ kNonGenericFontFamilyKeywords.forEach(setFont);
+ kGenericFontFamilyKeywords.forEach(keyword => {
+ setFont(`-webkit-${keyword}`);
+ });
+</script>