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:
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
Post a Comment