Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(11)

Unified Diff: LayoutTests/editing/deleting/merge-div-with-inline-style.html

Issue 272753003: During editing, merge inline style with overriding other author styles (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/editing/deleting/merge-div-with-inline-style-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/editing/deleting/merge-div-with-inline-style.html
diff --git a/LayoutTests/editing/deleting/merge-div-with-inline-style.html b/LayoutTests/editing/deleting/merge-div-with-inline-style.html
new file mode 100644
index 0000000000000000000000000000000000000000..e959c42136172d3833bf8414c4f0b329fec2fdf4
--- /dev/null
+++ b/LayoutTests/editing/deleting/merge-div-with-inline-style.html
@@ -0,0 +1,28 @@
+<!DOCTYPE html>
+<html>
+<head>
+<style type="text/css">
+.styleToMerge {
+color: red;
+font-size: 10px;
+}
+</style>
+</head>
+<body>
+<div id="test" contenteditable="true">
+<div>foo</div>
+<div id="divToMerge" class="styleToMerge" style="color:blue;font-size:20px">bar</div>
+</div>
+<script src="../../resources/dump-as-markup.js"></script>
+<script>
+Markup.description('The inline style should be applied when merging div element.\n'
+ + 'The test passes if "bar" has the blue color and 20px font-size.');
Yuta Kitamura 2014/05/29 06:48:25 nit: We generally use green to indicate a pass, so
+
+var divToMerge = document.getElementById("divToMerge");
+divToMerge.focus();
+getSelection().collapse(divToMerge, 0);
+document.execCommand("Delete");
+Markup.dump(document.getElementById("test"));
+</script>
+ </body>
Yuta Kitamura 2014/05/29 06:48:25 nit: Unnecessary space
+</html>
« no previous file with comments | « no previous file | LayoutTests/editing/deleting/merge-div-with-inline-style-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698