I would like to highlight some text in chrome but conditionnaly. The website is using this type of code for each element on the page and i would like to highlight those with a lenght lower than 1:00:00
<div class="entry_content">
<p>
"Title"
<br>
<a href="a link" target="_blank">
<img src="alink.jpg" alt="name">
</a>
<br> Size: 11111111 bytes (111.11 MB), duration: 00:11:11, avg.birate: 111 kb/s
<br> Audio: aac, 16000 Hz, mono
<br> Video: h264, 320×240, 15 fps
</p>
</div>
PS: I know the number don't add up it's an example ;)
I would like if possible to do it in css with stylish but really dont know if it's possible and how to make condition in css.
Thank you for your help.
I can't see any way to use css to conditionally highlight an element based on its content. However, a simple bit of javascript could do it: