question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support "appearance"?

See original GitHub issue

I see that appearance is not supported equally through different browsers, but maybe at least some

appearance: none
-webkit-appearance: none
-moz-appearance: none

support would be nice?

Issue Analytics

  • State:closed
  • Created 10 years ago
  • Comments:26 (25 by maintainers)

github_iconTop GitHub Comments

1reaction
aicommented, Feb 9, 2015

@jasonkuhrt create a PostCSS plugin for this non-standard cases, like @yisibl created CSS Grace for IE hacks.

I want to add this property too. But I can’t do it. Becuase after few years there will be no prefixes. And right now Autoprefixer works in that case, that you will remove it after few years.

If your CSS will contains appearance: none, it will be broken without Authoprefixer.

Of course, we can add warnings and extra options. But right now Autoprefixer is the slowest PostCSS plugin because of many extra non-standard cases. Autoprefixer’s code base is complicated, so only I maintain it. Extra option for this non-standard cases make it more complicated. And we have no really reasons for this victims.

You can really write PostCSS plugin for appearance by few lines of code:

module.exports = function (css) {
    css.eachDecl('appearance', function (decl) {
        if ( decl.value != 'none' ) return;
        decl.cloneBefore({ prop: '-webkit-appearance' });
        decl.cloneBefore({ prop: '-moz-appearance' });
        decl.removeSelf();
    });
};

Thats all! You need only README.md and tests. You can use postcss-size plugin a boilerplate.

1reaction
jasonkuhrtcommented, Feb 9, 2015

To be clear, I think if the data is available in Can I Use, we should support it. People _will_ benefit from it, and if the sticking point is “non-standard” then we just need to correctly _frame/_communicate the feature; its an _interface_ issue. Saying “nope, we’re not going to support this” is dumb if the underlaying data is available and _people are already using this anyways_.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Appearance of Child Support Creditor or Representative
Appearance of Child Support Creditor or Representative. Download Form (pdf, 15.38 KB). Form Number: B 2810. Category: Bankruptcy Forms.
Read more >
Appearance Rates | NCSC - National Center for State Courts
The National Center for State Courts is offering technical assistance to help improve court appearance rates and reduce harmful responses to ...
Read more >
"appearance" | Can I use... Support tables for HTML5, CSS3, etc
The appearance property defines how elements (particularly form controls) appear by default. By setting the value to none the default appearance can be ......
Read more >
appearance - CSS: Cascading Style Sheets - MDN Web Docs
The appearance CSS property is used to control native appearance of UI controls, that are based on operating system's theme.
Read more >
General Forms | NYCOURTS.GOV - Unified Court System
GF-5b, Affidavit in Support of Issuance of Family Court Temporary Order of Protection (Individual ... GF-29, Notice of Appearance, Doc.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found