@@ -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 && / f o n t .* a w e s o m e | m a t e r i a l | b o o t s t r a p | g l y p h i c o n s | i o n i c o n s | r e m i x i c o n | s i m p l e - l i n e - i c o n s | o c t i c o n s | f e a t h e r | t y p i c o n s | w e a t h e r i c o n s / 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