GithubHelp home page GithubHelp logo

Specification changes about myth HOT 5 CLOSED

segmentio avatar segmentio commented on June 11, 2024
Specification changes

from myth.

Comments (5)

mikemanger avatar mikemanger commented on June 11, 2024

#39 touched on the same issue with the color() function - myth got lucky that time, however, you can't just hope that the specification doesn't change (or even get dropped). The draft specification warnings are there for a reason!

from myth.

ianstormtaylor avatar ianstormtaylor commented on June 11, 2024

wow the spec authors are really making it hard to argue against the "css version of these features is super ugly" crowd :p

"very unlikely" seems like an overstatement though. we can add a more prominent "draft" warning, but Myth's entire goal is to let us make a tradeoff in a bit of stability (CSS is literally 100% backwards compat) for years of waiting for features that authors have been asking for forever. Sass and LESS are also not 100% backwards compat, they have their own deprecation notices, so it doesn't seem like an unreasonable, unprecedented stance to me

waiting for things to be so solid they are guaranteed not to change is what we want to avoid. sometimes the specs will change, but i don't think it's unreasonable in this case to get caught by a draft that's about to land ASAP in the latest Firefox in it's (now) old form, especially since a bunch of the replies to that thread mention how it's super late to be making the change

whatever the decision ends up being here, you're right it looks like the -- prefix, we could even backwards compat so that both variants are usable until a major version bump comes along. and even then people could use Myth as a Rework plugin alongside the old plugin if they absolutely need the backwards support

from myth.

mikemanger avatar mikemanger commented on June 11, 2024

I think in this case "very unlikely" is an understatement - your site will look terrible if you used var- to define key elements (same goes for calc() which is widely implemented but could get axed from the spec)

I understand wanting to implement features but W3C can do big changes to seemingly stable specs (flexbox comes to mind). A simple tag or key saying if it is WR, CR or PR would probably make things clearer and not interfere with the current site design too much, could maybe incorporate it with the current link to the specification (if you can't tell I'm not a designer 👀).

caught by a draft that's about to land ASAP in the latest Firefox in it's (now) old form

I might be wrong on this but as far as I can tell Firefox 29 has the variables feature marked as 'enabled for non-release builds only' so you will need to enable a flag in the final release next month (I think this is the new preferred way of doing vendor prefixes).

from myth.

sjonnet19 avatar sjonnet19 commented on June 11, 2024

I've already submitted a pull request with the new sytax.

#51

from myth.

ianstormtaylor avatar ianstormtaylor commented on June 11, 2024

Thanks @sjonnet19 !

from myth.

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.