Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / undo / remove-css-property-and-remove-style-expected.txt
blob2c95bd6dcfa01f21178134a545c5b96f8868e880
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:
4 | <span>
5 |   style="font-weight: 900;"
6 |   "test"
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:
12 | <span>
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>"
19 Undo once more:
20 | <span>
21 |   style="font-weight: 900;"
22 |   "<#selection-anchor>test<#selection-focus>"
24 Reset, and added id and title:
25 | <span>
26 |   id="test_span"
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:
32 | <span>
33 |   id="test_span"
34 |   title="hello, world"
35 |   "<#selection-anchor>test<#selection-focus>"
37 Undo should restore the style attribute and "test" should be bold:
38 | <span>
39 |   id="test_span"
40 |   style="font-weight: 900;"
41 |   title="hello, world"
42 |   "<#selection-anchor>test<#selection-focus>"
44 Redo should remove the style attribute again:
45 | <span>
46 |   id="test_span"
47 |   title="hello, world"
48 |   "<#selection-anchor>test<#selection-focus>"
50 Reset, and added color:blue:
51 | <span>
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:
56 | <span>
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:
61 | <span>
62 |   style="color: blue; font-weight: 900;"
63 |   "<#selection-anchor>test<#selection-focus>"
65 Redo should only remove font-weight and leave "test" blue:
66 | <span>
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:
74 | <span>
75 |   style="color: blue;"
76 |   "<#selection-anchor>test<#selection-focus>"