|
43 | 43 | # - italic
|
44 | 44 | # - underline
|
45 | 45 | ('text-decoration: underline',
|
46 |
| - {'font': {'underline': True, 'strike': False}}), |
| 46 | + {'font': {'underline': 'single', 'strike': False}}), |
47 | 47 | ('text-decoration: overline',
|
48 |
| - {'font': {'underline': False, 'strike': False}}), |
| 48 | + {'font': {'strike': False}}), |
49 | 49 | ('text-decoration: none',
|
50 |
| - {'font': {'underline': False, 'strike': False}}), |
| 50 | + {'font': {'strike': False}}), |
51 | 51 | # - strike
|
52 | 52 | ('text-decoration: line-through',
|
53 | 53 | {'font': {'strike': True, 'underline': False}}),
|
|
56 | 56 | ('text-decoration: underline; text-decoration: line-through',
|
57 | 57 | {'font': {'strike': True, 'underline': False}}),
|
58 | 58 | # - color
|
59 |
| - ('font-color: red', {'font': {'color': 'FF0000'}}), |
60 |
| - ('font-color: #ff0000', {'font': {'color': 'FF0000'}}), |
61 |
| - ('font-color: #f0a', {'font': {'color': 'FF00AA'}}), |
| 59 | + ('color: red', {'font': {'color': 'FF0000'}}), |
| 60 | + ('color: #ff0000', {'font': {'color': 'FF0000'}}), |
| 61 | + ('color: #f0a', {'font': {'color': 'FF00AA'}}), |
62 | 62 | # - shadow
|
63 | 63 | ('text-shadow: none', {'font': {'shadow': False}}),
|
64 | 64 | ('text-shadow: 0px -0em 0px #CCC', {'font': {'shadow': False}}),
|
@@ -141,3 +141,8 @@ def test_css_to_excel_multiple():
|
141 | 141 | def test_css_to_excel_inherited(css, inherited, expected):
|
142 | 142 | convert = CSSToExcelConverter(inherited)
|
143 | 143 | assert expected == convert(css)
|
| 144 | + |
| 145 | + |
| 146 | +@pytest.mark.xfail |
| 147 | +def test_css_to_excel_warns_when_not_supported(): |
| 148 | + pass |
0 commit comments