segmentio / myth

A CSS preprocessor that acts like a polyfill for future versions of the spec.
4.33k stars 131 forks source link

%placeholders? #112

Closed kevinSuttle closed 9 years ago

kevinSuttle commented 9 years ago

Is this a thing in Myth? http://sass-lang.com/documentation/file.SASS_REFERENCE.html#placeholders

ianstormtaylor commented 9 years ago

Not right now nope, unless maybe there's been talk/spec of adding them to core CSS?

MoOx commented 9 years ago

placeholders mean @extends & we all know this can make unexpected result

http://jsbin.com/yukesiqizi/1/edit?html,css,output

I don't think we will see that in CSS soon.

kevinSuttle commented 9 years ago

Weird. I tried it just now on CodePen and got the same result. I had no idea. Been using it in Sass blindly, but haven't noticed any bugs yet. Is this documented anywhere?

MoOx commented 9 years ago

It's not a bug, it's a feature :) (another dangerous one)

kevinSuttle commented 9 years ago

:star: