13

Today I noticed that is a synonym of which is a surprise to me.

Pseudo elements are part of the CSS Selectors Specification and they are complex enough to deserve a tag. We cannot even consider them as synonym of because the have their own issues and tricks.

One example of question around pseudo element: Font Awesome 5 on pseudo elements shows square instead of icon

There is also an online documentation about how to use Font Awesome 5 with pseudo element which make the topic not trivial.

Our CSS master BoltClock1 wrote a lot around Pseudo elements (125 posts tagged with ).

He also said:

@James Donnelly: You know, I find [pseudo-class] kind of unnecessary too. But pseudo-elements are more than just the selectors. Many pseudo-element questions aren't really about selector syntax but the functionality of the pseudo-elements themselves. Like the one about the content property - which is about the property, not the selector syntax. – BoltClock♦ Mar 24 '17 at 11:34 ref


The JS people will also agree that dealing with pseudo element is a tricky exercice and a lot of question are asked around this topic. The following question: Selecting and manipulating CSS pseudo-elements such as ::before and ::after using jQuery is one of the frequent question in the JS and CSS tag (can be seen here: https://stackoverflow.com/questions/tagged/javascript?tab=frequent&page=5&pagesize=15= and also here: https://stackoverflow.com/questions/tagged/css?tab=frequent )

We also find questions tagged with and without having :

How to delete Pseudo-elements with Jquery

Is it possible to select pseudo elements like scrollbars using jQuery?

More here: https://stackoverflow.com/search?q=%5Bjavascript%5D+%22pseudo+elements%22+-%5Bcss%5D



1: If I am able to summon him he will for sure agree with me.

3
  • 2
    FWIW I agree this probably should not be a synonym of CSS. At least not unless we are ready to make all CSS-related tags synonyms of CSS as well...
    – TylerH
    Commented Aug 31, 2020 at 23:08
  • 2
    I sacrificed a 13mm nut and a Seiko to summon BoltClock. Give it 6-8...
    – Machavity Mod
    Commented Aug 31, 2020 at 23:21
  • 1
    @Machavity what about the incantation? did you do it correctly? if not you may lose your Diamond ... Commented Aug 31, 2020 at 23:26

2 Answers 2

6

Pseudo elements are part of the CSS Selectors Specification and they are complex enough to deserve a tag.

They're also complex enough to have their own specification.

Anyway, thanks to Bhargav,

.status {
  display: inline-block;
}

.status.neg::first-line {
  background-color: #fcc;
}

.status.neg::after {
  content: ' no longer';
}
<p>[pseudo-element] <span class="status neg">is</span> a synonym of [css].

2
  • 2
    Obviously this is really bad advice in terms of semantics and should never be emulated in production (which I'm going to peg the downvote to whether or not it was the intended reason).
    – BoltClock
    Commented Sep 1, 2020 at 6:38
  • 2
    ah, the summon of machavity was a success ;) .. I am gonna buy some Seiko just in case. Commented Sep 1, 2020 at 7:59
5

Given the overwhelming support to remove the synonym, I went ahead and deleted the synonym. It was created in July this year by the community, and a total of 19 renames were done over the past month.

is now its own tag, and has 1829 questions. If there's a reason to re-synonymize this, then feel free to open a new post asking for a synonym.

9
  • a total of 19 renames were done over the past month. --> can this be fixed by adding the tag again? Commented Sep 1, 2020 at 7:53
  • Nope, unfortunately we don't have a list of those posts. Commented Sep 1, 2020 at 8:11
  • even a complex SEDE query cannot do it? something like: searching the posts without the tag X but having the tag X in a previous revision? Commented Sep 1, 2020 at 8:18
  • 1
    @TemaniAfif, I don't think so. The tag isn't saved when the question is created, they get remapped as soon as the user types it in. I assume that there must be some dev tool that can find out those posts that were remapped, but I am not aware of one. Commented Sep 1, 2020 at 8:21
  • Wait, I think we didn't understand each other. I was not talking about the tag remap when a user create a new question. I was talking about old questiosn already having the tag and after the synonimization and edit was done and the tag was removed. The tag was already present in an old version of the post. I am trying to identiy such posts. Commented Sep 4, 2020 at 1:14
  • @TheMaster the link is broken for me ... Commented Sep 7, 2020 at 9:22
  • @TemaniAfif This might help.
    – TheMaster
    Commented Sep 7, 2020 at 10:27
  • @TemaniAfif just look at the number of renames on synonyms list
    – Braiam
    Commented Sep 9, 2020 at 14:58
  • @Braiam yes but I want the list of the posts to re-edit them :( Commented Sep 9, 2020 at 21:33

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .