Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

282
Views
Webkit Pseudo Elements Documentation

I actually acomplished what I wanted to do: hiding some webkit pseudo-elements from the page when I want to print it, the code looks like below.

The problem is that I didnt learn anything from my research to do tha and I couldn't find any documentation about it, and every answer I saw about this topic only shows the code, without any further explanation.

::-webkit-resizer,
::-webkit-calendar-picker-indicator {
    display: none; 
    -webkit-appearance: none;
}

enter image description here

Some sources:

  • https://developer.mozilla.org/en-US/docs/Web/CSS/WebKit_Extensions

    • This one show some extensions, but the callendar one is not listed here and I wasn't able to find elsewhere.
  • https://gist.github.com/afabbro/3759334

    • This gist has a lot of those pseudo elements, classes or properties, but the guy who did it didnt explain how he have acomplished that, and those doenst show on my dev tools.
  • Use pseudo classes for selecting webkit pseudo elements

    • This guy talks about the shadow-dom, I didnt heard of it before, but on my research I couldn't understand how it would help-me.

Some similar answers: 6195329, 11418289, 17340038, 15530850, 53483852

Also visited the wikipedia article and this site: https://webkit.org/

I really want to understand the concept behind this webkit things and any help would be appeciated.

To be more specific: if any time in the future I want to override a component, how can I know what pseudo-element has being aplied on an compnonet given the browser?

over 4 years ago · Santiago Trujillo
2 answers
Answer question

0

The best way to know which pseudo-elements you can work with is by reading specifications (like W3C standards) and realiable docs and resources (like MDN). If you can't find a particular pseudo-element there (or if it's only referred with a vendor prefix), you should probably avoid using it.

It seems ::-webkit-calendar-picker-indicator is supported by Blink and WebKit (follow the links for little pieces of information), but since it's poorly documented and also non-standard I would refrain from adopting it at all.

over 4 years ago · Santiago Trujillo Report

0

There is no specific documentation for pseudo-elements, but I finally could find, while tinkering on the Chrome Dev Tools' preferences a setting that shows the "Shadow-Dom" from the user-agent.

Go to "Preferences" and scroll to the "Elements" section, where there is a oprtion for that:

shadow-dom option for google chrome

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!