ソースを参照

updated list of ignored pseudo-elements/classes

Gildas 7 年 前
コミット
2c13d92677
1 ファイル変更2 行追加2 行削除
  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 {