EDIT: THINK I GOT IT WITH THE USE OF iFRAME: https://plnkr.co/edit/X2FQGzxjeDFiYHXlQFFg
iFRAME IS ITS OWN VIEW PORT
I am trying to resize font-size inside an em depending on the size of its parent li. When I try vw is changes based on the size of the browser window instead of contingent upon the size of the parent li. The parent li is position relative and the child em is position absolute. I'm very grateful for help you could share.
<li style="width: 14.28%;
padding: 7.18% 0;
border: 1px solid #000;
box-sizing: border-box;
background-color: #fff;
float: left;
list-style: none;
position: relative;
display:block;">
<em style="position: absolute;
font-size: 2vw;
font-weight: 700;
text-align: center;
width: 100%;
line-height: 0%;">12</em>
</li>