Initially, my perception of CSS was that it was only used for styling the appearance of a document when viewed in a browser. However, I soon came to realize that search engines also utilize CSS for indexing web pages. It is said that search engines do not index content with display: hidden
and they heavily penalize websites that engage in keyword stuffing (text that is not visible to the user, either due to being the same color as its background or positioned off-screen).
Are my two assumptions accurate? In what other ways do search engines use CSS? I would love to know specific examples of CSS properties that could impact my search engine ranking. :D