OLD | NEW |
1 Test parsing of CSS number types. | 1 Test parsing of CSS number types. |
2 | 2 |
3 FAILURE | 3 SUCCESS |
4 | 4 |
5 Rules from the stylesheet: | 5 Rules from the stylesheet: |
6 | 6 |
7 #a { font-size: 1em; } | 7 #a { font-size: 1em; } |
8 #b { } | 8 #b { font-size: 1em; } |
9 #c { } | 9 #c { font-size: 1em; } |
10 #d { } | 10 #d { font-size: 1em; } |
11 #e { font-size: 1rem; } | 11 #e { font-size: 1rem; } |
12 #f { } | 12 #f { font-size: 1ex; } |
13 #g { font-size: 16px; } | 13 #g { font-size: 16px; } |
14 #h { font-size: 16px; } | 14 #h { font-size: 16px; } |
15 #i { } | 15 #i { font-size: 16px; } |
16 #j { } | 16 #j { font-size: 16px; } |
17 #k { font-size: 1cm; } | 17 #k { font-size: 1cm; } |
18 #l { } | 18 #l { font-size: 1mm; } |
19 #m { font-size: 1in; } | 19 #m { font-size: 1in; } |
20 #n { font-size: 12pt; } | 20 #n { font-size: 12pt; } |
21 #o { } | 21 #o { font-size: 16px; } |
22 #p { } | 22 #p { font-size: 1pc; } |
23 #q { font-size: 100%; } | 23 #q { font-size: 100%; } |
24 Expected result: | 24 Expected result: |
25 | 25 |
26 #a { font-size: 1em; } | 26 #a { font-size: 1em; } |
27 #b { font-size: 1em; } | 27 #b { font-size: 1em; } |
28 #c { font-size: 1em; } | 28 #c { font-size: 1em; } |
29 #d { font-size: 1em; } | 29 #d { font-size: 1em; } |
30 #e { font-size: 1rem; } | 30 #e { font-size: 1rem; } |
31 #f { font-size: 1ex; } | 31 #f { font-size: 1ex; } |
32 #g { font-size: 16px; } | 32 #g { font-size: 16px; } |
33 #h { font-size: 16px; } | 33 #h { font-size: 16px; } |
34 #i { font-size: 16px; } | 34 #i { font-size: 16px; } |
35 #j { font-size: 16px; } | 35 #j { font-size: 16px; } |
36 #k { font-size: 1cm; } | 36 #k { font-size: 1cm; } |
37 #l { font-size: 1mm; } | 37 #l { font-size: 1mm; } |
38 #m { font-size: 1in; } | 38 #m { font-size: 1in; } |
39 #n { font-size: 12pt; } | 39 #n { font-size: 12pt; } |
40 #o { font-size: 16px; } | 40 #o { font-size: 16px; } |
41 #p { font-size: 1pc; } | 41 #p { font-size: 1pc; } |
42 #q { font-size: 100%; } | 42 #q { font-size: 100%; } |
43 | 43 |
44 | 44 |
OLD | NEW |