Giter Site home page Giter Site logo

Comments (2)

jonrohan avatar jonrohan commented on July 17, 2024

Thanks for letting us know, this is alarming, going to see if there's some improvements we can make.

from css.

keithamus avatar keithamus commented on July 17, 2024

This is due to supporting the ::backdrop selector, which does not inherit from :root in older browsers, requiring us to duplicate all of our variables into that selector. All the latest browsers now do inherit ::backdrop from :root but we still need to support older browsers, and so we'll need to continue this duplication for the next few years. They also need to be separate selectors because some very old browsers will throw away the whole selector if they don't recognise ::backdrop and so those very old browsers will lose all colour information.

While this increases size on disk, the gzip size (as in the over-the-wire size) isn't significantly impacted as it is duplicate data. I don't have the figures to hand but the total size increase is likely less than 1kb when gzipped. CSS is also very quick to parse so it's unlikely to add more than, say, 1ms to browser parse times.

Given the above reasons, I think we'll close this issue now as there's nothing directly actionable we can do. However in a few years when ::backdrop inheriting is better supported we can drop the duplicate data.

from css.

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.