CSS selector by inline style attribute
Is there a CSS selector to select this element by its inline style attribute value? <div style='display:block'>...</div> something like div[cssAttribute=cssValue] The inline style attribute is no different to any other HTML attribute and can be matched with a substring attribute selector: div[style*="display:block"] It is for this very reason however that it's extremely fragile . As attribute selectors don't support regular expressions, you can only perform exact substring matches of the attribute value. For instance, if you have a space somewhere in the attribute value, like this: <div style=