this post was submitted on 24 Nov 2023
2 points (100.0% liked)
Firefox Customs
64 readers
2 users here now
Post your unsupported Firefox customizations here!
From the makers of r/FirefoxCSS
Links
Related
Rules
- Posts must have flair!
- Posts cannot be memes/shitposts. They should be about Firefox customization with CSS.
- Please be civil. Bear in mind that many users come here for help and would be turned off by insults and rudeness.
- When posting large amount of code use a service dedicated to hosting text snippets, such as pastebin, hastebin, github gist or equivalent. Relatively short snippets can be wrapped in code-block for inline viewing.
- Do NOT use url-shorteners or link to compressed downloads (such as zip or rar) when sharing code.
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
That selector is invalid.
:last-child
is a pseudo-class there should only be one colon.::after
denotes a pseudo-element but pseudo-elements cannot have any pseudo-classes - or any other attributes for that matter on their own. The way you have wrote the selector sort of implies "an ::after pseudo-element which also has:last-child
pseudo-class".To make it valid you would write it like this
.tabbrowser-tab:last-child::after
. However, a.tabbrowser-tab
will never be a last-child of its parent, because there will always be anafter it. Luckily for you the node type of tabs is
so then you can use:last-of-type
instead of:last-child
. Technically it's not the same thing, but probably what you want.Thanks for the explanation, you are a genius. I will use this:
.tabbrowser-tab:last-of-type::after{..}