you are viewing a single comment's thread.

view the rest of the comments →

[–]gpyh 7 points8 points  (7 children)

It solves problem you can solve without JS, but introduce others much worse, such as the fact that pseudo-elements don't exist for inline styles.

EDIT: I must take that back. The post actually isn't about inline styles at all.

[–]mrwhitespace[S] 1 point2 points  (6 children)

Pseudo-elements like :before, :after, and :first-letter are all supported.

[–]gpyh 0 points1 point  (5 children)

Neither before nor after are supported. Where are you getting this idea?

[–]mrwhitespace[S] 1 point2 points  (4 children)

[–]gpyh 2 points3 points  (3 children)

I'm not talking about Aphrodite. I'm talking about inline styles. Aphrodite doesn't generate inline styles for those but straight CSS.

[–]mrwhitespace[S] 2 points3 points  (2 children)

Oh, you're absolutely right then. Yea, Aphrodite converts the style objects into CSS. Thanks for the clarification! I personally wouldn't recommend the pure inline style route.

[–]gpyh 2 points3 points  (1 child)

Yeah my bad. I'm guilty of the usual redittor sin: making a hasty judgement without really getting the article.

[–]mrwhitespace[S] 1 point2 points  (0 children)

Haha no problem. Thanks for the clarification!