Line-clamped text with ellipsis without pseudo elements

HTML

<input id="eee" type="checkbox">
<p class="container" my-text="But more text here (the same markup structure though): if the text overflows from the clamped paragraph's height, the ellipse will show.">


    
   <label for="eee" class="showMore"><nobr>Show more</nobr></label>       
    
             
</p>

CSS

.container {
border: 1px red solid;
line-height: 1.5;
overflow: hidden;
max-height: 6.5em;
position: relative;
}

.container:before  {
content: attr(my-text);
}

.showMore {
position: absolute;
right: 0;
bottom: 0;
background-color: #0f0;
display: block;
top: 4.5em;
width: 100%;
}

[type="checkbox"]:checked + p {
  max-height: 100%;
}

[type="checkbox"]:checked + p>.showMore {
  top: 9999px;
}