google chrome - what is `::content` in a css? -


this question has answer here:

i wonder ::content in css rule ?

the thing when use adblock plus(for chrome), seems add css rule websites, below:

enter image description here

it make dom hidden (display: none), , try reset css make seen using settimeout, failed, both csses (the abp adds , add) work, dom still not seen.

i check css abp adds, finding ::content, wonder it's reason why cannot reset css rules, after google, find nothing useful.

so come here see if there me! great thanks!

i'm having trouble finding official documentation on pseudo-element selector, it's selector shadow dom elements. see following excerpts adblock plus chrome extensions source code:

include.preload.js convertselectorsforshadowdom

function convertselectorsforshadowdom(selectors) {   var result = [];   var prefix = "::content "; 

...

include.preload.js call convertselectorsforshadowdom

    // if using shadow dom, have add ::content pseudo-element     // before each selector, in order match elements within     // insertion point.     if (shadow)       selectors = convertselectorsforshadowdom(selectors); 

Comments

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -