Explorar el Código

updated list of ignored pseudo-elements/classes

Gildas hace 7 años
padre
commit
2c13d92677
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      lib/single-file/css-matched-rules.js

+ 2 - 2
lib/single-file/css-matched-rules.js

@@ -23,8 +23,8 @@
 this.matchedRules = this.matchedRules || (() => {
 
 	const MEDIA_ALL = "all";
-	const IGNORED_PSEUDO_ELEMENTS = ["after", "before"];
-	const IGNORED_PSEUDO_CLASSES = IGNORED_PSEUDO_ELEMENTS.concat(["after", "before", "blank", "current", "dir", "drop", "first", "focus-visible", "future", "global", "has", "host-context", "left", "matches", "read-only", "read-write", "right"]);
+	const IGNORED_PSEUDO_ELEMENTS = ["after", "before", "first-letter", "first-line", "selection"];
+	const IGNORED_PSEUDO_CLASSES = IGNORED_PSEUDO_ELEMENTS.concat(["blank", "current", "dir", "drop", "first", "focus-visible", "future", "global", "has", "host-context", "left", "matches", "read-only", "read-write", "right"]);
 	const DEBUG = false;
 
 	class MatchedRules {