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.

Consider toggling vendor prefixing on/off (stylis v3)

See original GitHub issue

This is regarding 2.0.0-15.

Using flex boxes results in:

screen shot 2017-04-20 at 13 36 48

There is absolutely no reason to add these… and it is likely a performance hit (processing unknown CSS properties is just another cycle).

There is a boolean way to check whether a property is supported in the browser. See Verou’s article http://lea.verou.me/2009/02/check-if-a-css-property-is-supported/.

Possible performance issues aside, it is a nuisance from the DX perspective (as visible in the screenshot).

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:29
  • Comments:48 (13 by maintainers)

github_iconTop GitHub Comments

35reactions
callumlockecommented, Aug 7, 2017

Just to point out, this problem is not just a matter of aesthetics. Unwanted prefixes are a footgun: if you click to disable a property in the devtools, the browser may quietly fall back to some prefixed property. If you fail to notice this, it can lead to minutes or hours of pointless layout debugging. And even when you do notice it, it’s painstaking to make sure you catch each potential fallback property and disable them all. It’s effectively not even worth using this feature of the devtools, as it’s easier to make the change in your code and wait for it to rebuild and then change it back again.

20reactions
bengotowcommented, Apr 21, 2017

Hey folks - just wanted to chime in regarding DX. I’m building an application that targets Electron (essentially I’m only building for the /very/ latest version of Chromium), and I’d really like if I could turn off all vendor prefixing. I don’t need it and it makes things look messy in the inspector, and harder to change at runtime (because removing a property causes Chrome to fall back to it’s second choice prefixed property.)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Is Vendor Prefixing Dead? - CSS-Tricks
Let's take a quick stroll down memory-lane to revisit how vendor prefixing CSS properties came to be. I hope I don't trigger PTSD...
Read more >
Xcode 13 Release Notes | Apple Developer Documentation
Xcode's console now supports toggling line wrapping through the Editor > Wrap Lines menu ... This Python 3 script replaces the symbolicatecrash utility...
Read more >
Class: Aws::S3::Client — AWS SDK for Ruby V3
The S3 Intelligent-Tiering storage class is the ideal storage class for data with unknown, changing, or unpredictable access patterns, independent of object ...
Read more >
Commands - Tasmota
1 = use frequency output for buzzer pin instead of on/off signal, ... 3 / blink = toggle power for BlinkCount times each...
Read more >
“How-to” Guides - Spring
Thus, ServerProperties has prefix="server" and its configuration properties are ... of ${maven.token} ) to prevent conflicts with Spring-style placeholders.
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