This repository was archived by the owner on Jul 10, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -334,22 +334,21 @@ fn test_font_family_specific() {
334
334
}
335
335
336
336
#[test]
337
- #[ignore]
338
337
fn test_font_size() {
339
- let style = " div { font-size: 10 pt; } ";
340
- do single_div_test (style) |computed| {
338
+ let style = " span { font-size: 10 pt; } ";
339
+ do child_test (style) |computed| {
341
340
assert!(computed.font_size() == Specified(CSSFontSizeLength(Pt(10.0))));
342
341
}
343
- let style = " div { font-size: 10 %; } ";
344
- do single_div_test (style) |computed| {
342
+ let style = " span { font-size: 10 %; } ";
343
+ do child_test (style) |computed| {
345
344
assert!(computed.font_size() == Specified(CSSFontSizePercentage(10.0)));
346
345
}
347
- let style = " div { font-size: small; } ";
348
- do single_div_test (style) |computed| {
346
+ let style = " span { font-size: small; } ";
347
+ do child_test (style) |computed| {
349
348
assert!(computed.font_size() == Specified(CSSFontSizeAbsoluteSize(Small)));
350
349
}
351
- let style = " div { font-size: smaller; } ";
352
- do single_div_test (style) |computed| {
350
+ let style = " span { font-size: smaller; } ";
351
+ do child_test (style) |computed| {
353
352
assert!(computed.font_size() == Specified(CSSFontSizeRelativeSize(Smaller)));
354
353
}
355
354
}
You can’t perform that action at this time.
0 commit comments