Add a pseudoclass that matches img elements that are backed by an attachment
[WebKit-https.git] / Source / WebCore / css / CSSSelector.cpp
index b347735..f365a85 100644 (file)
@@ -505,6 +505,11 @@ String CSSSelector::selectorText(const String& rightSide) const
                 str.appendLiteral(":future");
                 break;
 #endif
+#if ENABLE(ATTACHMENT_ELEMENT)
+            case CSSSelector::PseudoClassHasAttachment:
+                str.appendLiteral(":has-attachment");
+                break;
+#endif
             case CSSSelector::PseudoClassHorizontal:
                 str.appendLiteral(":horizontal");
                 break;