GithubHelp home page GithubHelp logo

csstools / css-typed-om Goto Github PK

View Code? Open in Web Editor NEW
102.0 102.0 8.0 31 KB

Use CSS Typed Object Model in the browser

Home Page: https://csstools.github.io/css-typed-om/

License: Creative Commons Zero v1.0 Universal

JavaScript 100.00%

css-typed-om's People

Contributors

jonathantneal avatar wildhoney avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

css-typed-om's Issues

What's the performance like?

Glad to see someone is doing this. Have you done any performance testing to see what the fastest path of style updates is in the browser? That kind of data is really hard to find.

State of the project

The readme says that this is an in-progress polyfill. But there seems to be no activity since 2018 on this repo. So what is the state of the polyfill ? Is it usable or is it still incomplete ?

TypeScript

Hi, @csstools. I began work converting this to TypeScript. Would that be cool? I can also help maintain.

Division should allow numerical values for the divisor

For example, in the official spec, dividing the dividend x by the divisor y where y is Number yields a CSSUnitValue – when you pass an object as the divisor (such as CSS.px), the official spec yields a CSSMathProduct.

However in the case of this polyfill, if the divisor is a Number then you simply yield null which doesn't seem to conform to how the implementation should be.

CSS.px(10).div(2); // CSSUnitValue {value: 5, unit: "px"} (official)
CSS.px(10).div(2); // null (polyfill)

I would fix it myself with a PR, but I'm not entirely sure the best way to fix up the div method. Whether you have a preference for one way over another 👍

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.