I'd like to use the following code:
<div itemprop="aggregateRating" itemscope itemtype="https://schema.org/AggregateRating">
<div>
<span itemprop="ratingValue">[rating]</span> from
<div style="display: none;" itemprop="bestRating">5</div>
<span itemprop="ratingCount">[quantity]</span> reviews
</div>
</div>
It's a typical 5-star rating system so displaying "5" is unnecessary.
Is display:none usable? If not, alternate suggestions are welcome.
I did try it in the structured data testing tool and it passed. However, I'm still worried that it may not work in the search engine.