So this is just the ::before pseudo-element? I feel like I'm missing something.
"width: 50%" says it's only half as wide.
The possibly fancy thing being used here is the use of "attr(data-content)" which use the data-content attribute of the element to fill the pseudo-element's content.