I found how to split page with vertical line - see jsfiddle:

The code is below -
body {
background-color: white;
}
#background {
position: fixed;
top: 0px;
left: 0px;
width: 50%;
height: 100%;
background-color: black;
z-index: 1;
}
#content {
position: relative;
z-index: 2;
padding: 30px;
text-align: center;
font-weight: bold;
color: red;
font-family: Arial, sans-serif;
}
Now I would like to replace vertical line with polyline to get something like this:

How can I do it with CSS?
P.S. I can not use background image, since polyline can be different (the points will have different coordinates).