I am trying to create a triangle with a background image that is clipped using clip-mask. The percentage is set so it doesn't appear too small or large on different screens.
My issue is that I want the triangle to maintain its proportions as the screen width and height change.
.upper-poly {
position: absolute;
width: 80%;
height: 80%;
-webkit-clip-path: polygon(0 0, 50% 100%, 100% 0);
background: url(http://25.media.tumblr.com/fe6e34ef00254f2bd05451f525b02324/tumblr_mw8osqc77F1qdrz3yo3_500.jpg) no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}
I have created a fiddle showcasing my current setup - but I am struggling to find a solution... any ideas?