Expand css style font tests

Test more of the syntax of the font: shorthand.
This commit is contained in:
Matthias Clasen 2016-04-18 14:38:53 -04:00
parent 2603011ea0
commit 5ab6ff6b5e
3 changed files with 79 additions and 2 deletions

View File

@ -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';
}

View File

@ -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 */

View File

@ -10,6 +10,35 @@
<child>
<object class="GtkLabel">
<property name="visible">True</property>
<property name="name">label1</property>
<property name="label" translatable="yes">Hello World!</property>
</object>
</child>
<child>
<object class="GtkLabel">
<property name="visible">True</property>
<property name="name">label2</property>
<property name="label" translatable="yes">Hello World!</property>
</object>
</child>
<child>
<object class="GtkLabel">
<property name="visible">True</property>
<property name="name">label3</property>
<property name="label" translatable="yes">Hello World!</property>
</object>
</child>
<child>
<object class="GtkLabel">
<property name="visible">True</property>
<property name="name">label4</property>
<property name="label" translatable="yes">Hello World!</property>
</object>
</child>
<child>
<object class="GtkLabel">
<property name="visible">True</property>
<property name="name">label5</property>
<property name="label" translatable="yes">Hello World!</property>
</object>
</child>