Git Product home page Git Product logo

Comments (4)

XhmikosR avatar XhmikosR commented on August 26, 2024

You should always see how Scite handle these.

from notepad2-mod.

Phanx avatar Phanx commented on August 26, 2024

SciTE appears to handle these correctly. Pseudo-classes and pseudo-elements get (very slightly) different colors, while invalid pseudo-classes and invalid pseudo-elements are both clearly highlighted as "unknown".

scite-css-pcpe

from notepad2-mod.

QWp6t avatar QWp6t commented on August 26, 2024

According to MDN, :after and :before is CSS2 syntax and has better compatibility. Calling ::after more "correct" than :after is ... interesting. They are just different specs. CSS2 is still valid and correct.

https://developer.mozilla.org/en-US/docs/Web/CSS/Pseudo-elements

Nevertheless, I am currently working on a fix for this since you're correct that it should support the CSS3 syntax for pseudo-elements. I should be done with the patch within an hour (I'm just doing some research first). I'll just add it to my current Pull Request.

from notepad2-mod.

Phanx avatar Phanx commented on August 26, 2024

I'm not aware of any industry where older standards are considered "more correct" than newer standards, so yes, I'd call CSS3 syntax "more correct" than CSS2 syntax. Also, since the only browser with statistically significant market share that doesn't support the CSS3 syntax is Internet Explorer 8 -- which is currently at about 8 or 9% and on a steady decline -- I'd call any compatibility issues negligible.

from notepad2-mod.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.