<!DOCTYPE html> | |
<html> | |
<head> | |
<script> | |
function performTest() | |
{ | |
Selection_preserveWhileExecuting(function() { | |
var range = Selection_get(); | |
Formatting_splitAroundSelection(range); | |
var outermost = Range_getOutermostNodes(range); | |
Formatting_pushDownInlineProperties(outermost); | |
}); | |
} | |
</script> | |
</head> | |
<body> | |
<p style="color: red">First [line</p> | |
<p style="color: green">Second line</p> | |
<p style="color: blue">Third] line</p> | |
</body> | |
</html> |