1 This tests removing style attribute after removing CSS property. Undo should bring back the CSS property we removed.
3 Initially "test" should be bold wrapped with a span:
5 | style="font-weight: 900;"
8 Unbolding should remove the CSS style and also remove the span:
9 | "<#selection-anchor>test<#selection-focus>"
11 Undo should bring back both the span and style attribute so that "test" is once again bold:
13 | style="font-weight: 900;"
14 | "<#selection-anchor>test<#selection-focus>"
16 Redo should unbold "test" and there should be no span:
17 | "<#selection-anchor>test<#selection-focus>"
21 | style="font-weight: 900;"
22 | "<#selection-anchor>test<#selection-focus>"
24 Reset, and added id and title:
27 | style="font-weight: 900;"
28 | title="hello, world"
29 | "<#selection-anchor>test<#selection-focus>"
31 Unbolding should remove the CSS style but shouldn't remove the span:
34 | title="hello, world"
35 | "<#selection-anchor>test<#selection-focus>"
37 Undo should restore the style attribute and "test" should be bold:
40 | style="font-weight: 900;"
41 | title="hello, world"
42 | "<#selection-anchor>test<#selection-focus>"
44 Redo should remove the style attribute again:
47 | title="hello, world"
48 | "<#selection-anchor>test<#selection-focus>"
50 Reset, and added color:blue:
52 | style="font-weight: 900; color: blue;"
53 | "<#selection-anchor>test<#selection-focus>"
55 Unbolding should remove the font-weight but shouldn't remove the style attribute:
57 | style="color: blue;"
58 | "<#selection-anchor>test<#selection-focus>"
60 Undo should reset the style attribute so that "test" is both bold and blue:
62 | style="color: blue; font-weight: 900;"
63 | "<#selection-anchor>test<#selection-focus>"
65 Redo should only remove font-weight and leave "test" blue:
67 | style="color: blue;"
68 | "<#selection-anchor>test<#selection-focus>"
70 Setting the forecolor to black should remove both the style attribute and the span:
71 | "<#selection-anchor>test<#selection-focus>"
73 Undo should make "test" blue again:
75 | style="color: blue;"
76 | "<#selection-anchor>test<#selection-focus>"