blob: 716c0d4d32cc20c76d817e2f836d6a608f5af4a4 [file] [log] [blame]
This test ensures WebKit does not duplicate styles from matched rules in inline style declarations when copying and pasting contents.
To manually test, copy "hello world WebKit" and paste it in the box blow.
Each element should have exact properties stated in its title attribute
Original:
| <blockquote>
| title="none"
| "hello"
| "
"
| <p>
| title="none"
| <span>
| class="red"
| style="font-size: 1em; font-weight: bold;"
| title="font-size: 1em; font-weight: bold;"
| "world"
| "
"
| <em>
| style="color: blue;"
| title="font-weight: bold; color: blue;"
| "WebKit"
Pasted:
| <blockquote>
| title="none"
| "hello"
| <p>
| title="none"
| <span>
| class="red"
| style="font-size: 1em; font-weight: bold;"
| title="font-size: 1em; font-weight: bold;"
| "world"
| " "
| <span>
| style="font-weight: bold; color: blue;"
| title="font-weight: bold; color: blue;"
| "WebKit<#selection-caret>"