Will google ignore words that are inside the elements that are set to \"display: none\" in css?
Example:
These types of hidden content such as overuse of excessive keywords violate Google's Webmaster Guidelines search guidelines.
However, not all links or hidden text are supposed to fool the search engine. For content that the google server is difficult to recognize, such as text on images, javascript or flash, hidden content can improve the indexing of your website content more effectively.
Google is a smart machine and there are always improvements to how to bring information to users in the most effective way. Therefore, when doing SEO for the web, you also need to properly navigate the SEO, avoid overuse that violates the Google search instructions.