I am using Magento 2.2.3. In my magneto theme added custom CSS file in the below path: project/app/design/frontend/vendor/theme/web/css/custom.css
I added source file in default_head_blocks.XML file. after that added a page with following code in HTML content
<div class="freegotest"><span class="tested">count down custom code</span></div>
In custom.css code as
.tested {
color: red !important;
font-size: 20px;
}
By viewing the page source, I can see the custom CSS file included in the header, but the styles are not applying to the text.