If I read the specification correctly, no.
You can match on an element, the name of an attribute in the element, and the value of a named attribute in an element. I don’t see anything for matching content within an element, though.
More Related Contents:
- how do I make device specific selectors in css [closed]
- Is there a “previous sibling” selector?
- What does a space mean in a CSS selector? i.e. What is the difference between .classA.classB and .classA .classB?
- CSS selector for first element with class
- How are the points in CSS specificity calculated
- Complex CSS selector for parent of active child [duplicate]
- Why isn’t it possible to combine vendor-specific pseudo-elements/classes into one rule set?
- CSS selector for “foo that contains bar”? [duplicate]
- How to use JSF generated HTML element ID with colon “:” in CSS selectors?
- What does an asterisk (*) do in a CSS selector?
- Handling a colon in an element ID in a CSS selector [duplicate]
- How can I select an nth child without knowing the parent element?
- Can I use variables for selectors?
- How to select label for=”XYZ” in CSS?
- In which direction do selector engines read, exactly?
- Are CSS3 ::before and ::after pseudo elements supported by IE9 or not?
- What’s the difference between html[lang=”en”] and html:lang(en) in CSS?
- Is it possible to select the last n items with nth-child?
- CSS property value from class name
- Can I colour backgrounds of selected items in HTML select options with CSS only?
- LESS CSS: abusing the & Operator when nesting?
- CSS3 combining selectors with OR instead of AND
- Why doesn’t this CSS :not() declaration filter down?
- How to show the first N elements of a block and hide the others in css?
- What is the difference between :before and ::before?
- Can I target all tags with a single selector?
- What CSS selector can be used to select the first div within another div
- CSS Selector for not a child of element type?
- :last-child pseudo-class mixed with attribute selector not working
- CSS selector based on width?