Comments (5)
#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.
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.
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.
I've already submitted a pull request with the new sytax.
from myth.
Thanks @sjonnet19 !
from myth.
Related Issues (20)
- Prefixes not working HOT 1
- Watch @import files HOT 4
- debugger in tests HOT 1
- Support external source maps
- may be the prefix should be add to some css value too? HOT 2
- Add ignore-errors option HOT 1
- Myth Logo? HOT 1
- Passing options, such as paths, to importer HOT 3
- Test suite hangs, then fails HOT 1
- Update rework-import dependency
- What is to be the fate of this project? HOT 8
- Support inline css / Polymer style modules
- Problem with Node 6 HOT 2
- Calc Inaccurate? HOT 2
- Define variables in media queries?
- var not allowed in media (declaration)
- Only for node.js ? HOT 1
- obj.hasOwnProperty is not a function HOT 7
- Is this project still maintained? HOT 2
- myth.io error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from myth.