From 5ab6ff6b5e832cb51ff5f260e938b654d4e95ae9 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 18 Apr 2016 14:38:53 -0400 Subject: [PATCH] Expand css style font tests Test more of the syntax of the font: shorthand. --- testsuite/css/style/font.css | 18 +++++++++++++++++- testsuite/css/style/font.nodes | 34 +++++++++++++++++++++++++++++++++- testsuite/css/style/font.ui | 29 +++++++++++++++++++++++++++++ 3 files changed, 79 insertions(+), 2 deletions(-) diff --git a/testsuite/css/style/font.css b/testsuite/css/style/font.css index 9c99623665..b5bd402e88 100644 --- a/testsuite/css/style/font.css +++ b/testsuite/css/style/font.css @@ -2,6 +2,22 @@ box { font: 10px "Comic Sans"; } -label { +#label1 { font-size: smaller; } + +#label2 { + font: 10pt Cantarell, sans-serif; +} + +#label3 { + font: bold italic 80% monospace; +} + +#label4 { + font: expanded oblique xx-small serif; +} + +#label5 { + font: 20mm '21st Century'; +} diff --git a/testsuite/css/style/font.nodes b/testsuite/css/style/font.nodes index ef23f94007..1ed7e0172c 100644 --- a/testsuite/css/style/font.nodes +++ b/testsuite/css/style/font.nodes @@ -1,3 +1,7 @@ +fount font weight: bold +fount font style: italic +fount font stretch: expanded +fount font style: oblique [window.background:dir(ltr)] decoration:dir(ltr) box.horizontal:dir(ltr) @@ -8,5 +12,33 @@ font-weight: normal; /* font.css:2:25 */ font-stretch: normal; /* font.css:2:25 */ - label:dir(ltr) + label#label1:dir(ltr) font-size: 8.3333333333333339px; /* font.css:6:20 */ + label#label2:dir(ltr) + font-size: 13.333333333333334px; /* font.css:10:34 */ + font-family: "Cantarell", "sans-serif"; /* font.css:10:34 */ + font-style: normal; /* font.css:10:34 */ + font-variant: normal; /* font.css:10:34 */ + font-weight: normal; /* font.css:10:34 */ + font-stretch: normal; /* font.css:10:34 */ + label#label3:dir(ltr) + font-size: 8px; /* font.css:14:33 */ + font-family: "monospace"; /* font.css:14:33 */ + font-style: italic; /* font.css:14:33 */ + font-variant: normal; /* font.css:14:33 */ + font-weight: bold; /* font.css:14:33 */ + font-stretch: normal; /* font.css:14:33 */ + label#label4:dir(ltr) + font-size: 8px; /* font.css:18:39 */ + font-family: "serif"; /* font.css:18:39 */ + font-style: oblique; /* font.css:18:39 */ + font-variant: normal; /* font.css:18:39 */ + font-weight: normal; /* font.css:18:39 */ + font-stretch: expanded; /* font.css:18:39 */ + label#label5:dir(ltr) + font-size: 75.590551181102356px; /* font.css:22:27 */ + font-family: "21st Century"; /* font.css:22:27 */ + font-style: normal; /* font.css:22:27 */ + font-variant: normal; /* font.css:22:27 */ + font-weight: normal; /* font.css:22:27 */ + font-stretch: normal; /* font.css:22:27 */ diff --git a/testsuite/css/style/font.ui b/testsuite/css/style/font.ui index f1b397c08c..2428218086 100644 --- a/testsuite/css/style/font.ui +++ b/testsuite/css/style/font.ui @@ -10,6 +10,35 @@ True + label1 + Hello World! + + + + + True + label2 + Hello World! + + + + + True + label3 + Hello World! + + + + + True + label4 + Hello World! + + + + + True + label5 Hello World!