Use pseudo-class :contains-processing-instruction(target
) where target
, a CSS identifier or string, is the target of the processing instructions.
Example: display all XHTML span
s containing one or more spreadsheet formulas with a yellow background.
span:contains-processing-instruction(xxe-formula) { background-color: yellow; }