Index: LayoutTests/editing/pasteboard/insert-font-weight.html |
diff --git a/LayoutTests/editing/pasteboard/insert-font-weight.html b/LayoutTests/editing/pasteboard/insert-font-weight.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..d916f54a7ce128f38af5e1fc3531c35a9ae1ce31 |
--- /dev/null |
+++ b/LayoutTests/editing/pasteboard/insert-font-weight.html |
@@ -0,0 +1,19 @@ |
+<!DOCTYPE html> |
+<html> |
+ <body> |
+ <div id="container"><div contenteditable></div></div> |
+ <div id="content"><b style="font-weight: lighter;">hello</b><b style="font-weight: bolder;">world</b></div> |
+ <script src="../../resources/dump-as-markup.js"></script> |
+ <script> |
+ Markup.description('This tests inserting elements with font-weight set to lighter and bolder values'); |
+ |
+ var content = document.getElementById('content'); |
+ Markup.dump(content, 'Content to insert'); |
+ |
+ document.querySelector('div[contenteditable]').focus(); |
+ document.execCommand('InsertHTML', null, content.innerHTML); |
+ |
+ Markup.dump('container', 'After insertion'); |
+ </script> |
+ </body> |
+</html> |