Skip to content

Commit ff81a40

Browse files
committed
Chore: delete old comments
1 parent 4348b39 commit ff81a40

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

src/modules/pseudo.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@ export async function inlinePseudoElements(source, clone, styleMap, styleCache,
2929
if (!style) continue;
3030
const content = style.getPropertyValue("content");
3131
const bg = style.getPropertyValue("background-image");
32-
33-
// ¿Este pseudo existe realmente?
3432
const hasContent = content && content !== "none" && content !== '""' && content !== "''";
3533
const hasBg = bg && bg.startsWith("url(");
3634

@@ -43,15 +41,12 @@ export async function inlinePseudoElements(source, clone, styleMap, styleCache,
4341
const pseudoEl = document.createElement("span");
4442
pseudoEl.dataset.snapdomPseudo = pseudo;
4543

46-
// ⚠️ Ahora usamos tu sistema moderno:
4744
const snapshot = snapshotComputedStyle(style);
4845
const key = getStyleKey(snapshot, "span", compress);
4946
styleMap.set(pseudoEl, key);
5047

51-
// ¿Es un icon font?
5248
const isIconFont = fontFamily && /font.*awesome|material|bootstrap|glyphicons|ionicons|remixicon|simple-line-icons|octicons|feather|typicons|weathericons/i.test(fontFamily);
5349

54-
// ⬇️ Inlinear contenido
5550
let cleanContent = parseContent(content);
5651
if (isIconFont && cleanContent.length === 1) {
5752
const imgEl = document.createElement("img");
@@ -75,7 +70,6 @@ export async function inlinePseudoElements(source, clone, styleMap, styleCache,
7570
pseudoEl.textContent = cleanContent;
7671
}
7772

78-
// ✅ Insertamos como before o after
7973
if (pseudo === "::before") {
8074
clone.insertBefore(pseudoEl, clone.firstChild);
8175
} else {
@@ -87,7 +81,6 @@ export async function inlinePseudoElements(source, clone, styleMap, styleCache,
8781
}
8882
}
8983

90-
// ⬇️ Recursivo sobre hijos reales (excluyendo pseudos ya inyectados)
9184
const sChildren = Array.from(source.children);
9285
const cChildren = Array.from(clone.children).filter(
9386
child => !child.dataset.snapdomPseudo

0 commit comments

Comments
 (0)