Friday, October 21, 2016

AtoZ CSS Screencasts: The CSS @supports Rule

Transcript

When using new or experimental CSS, it can be useful to know if the browser supports the features we’re writing code for.

Feature detection is often done in JavaScript with tools like Modernizr but in some browsers, we can now detect capabilities from CSS.

The @supports rule allows us to conditionally apply styles for features that are or are not supported.

In this episode we’ll learn all about

  • Browser support for various CSS features
  • How the @supports at-rule works
  • and how to provide alternative styles for unsupported features

Browser Support

If you’ve been writing CSS for any length of time, you’ve probably discovered that not all browsers render things the same way and don’t all support the same features.

A fantastic resource that I use almost daily for checking browser support is the website caniuse.com.

This site allows you to search a database of support tables to find out which versions of which browsers support which features.

In the previous episode we learned about the :required pseudo class, which is supported in IE10, Firefox, Chrome, Safari, Opera and Blackberry but not Opera Mini or iOS Safari or Android Browser.

We also learned about @keyframes in episode 11 which are supported in all current browsers apart from Opera Mini but is only available in IE from version 10 and is prefixed in Chrome, Safari, Opera, Android and Blackberry.

As you can see, the feature support landscape is vast and complex. This resource is amazing and an integral part of knowing what will work under what browsing conditions. It allows us to decide what features we may need to provide fallbacks for in case the required feature is key to the design or functionality of the site.

The @supports rule

@supports is an at-rule, a bit like the @media queries which we looked at in Episode 13.

These at-rules apply styles contained within them, only if a condition is true.

The condition is contained within parentheses and contains a CSS property followed by a value, separated by a colon.

Continue reading %AtoZ CSS Screencasts: The CSS @supports Rule%


by Guy Routledge via SitePoint

New Coffee Break Course on Creating WordPress Child Themes

Offf Italia

OFFF is a community inviting all those who are eager to learn to participate and get inspired in a three-day journey of conferences, workshops, activities and performances.
by via Awwwards - Sites of the day

Instagram Ads: What Marketers Need to Know

ms-podcast220-jenn-herman-600

Are you active on Instagram? Have you considered experimenting with ads? To find out how Instagram ads work, I interview Jenn Herman. More About This Show The Social Media Marketing podcast is an on-demand talk radio show from Social Media Examiner. It’s designed to help busy marketers and business owners discover what works with social [...]

This post Instagram Ads: What Marketers Need to Know first appeared on .
- Your Guide to the Social Media Jungle


by Michael Stelzner via

Thursday, October 20, 2016

Creating a Social Fortress Using IFTTT

Creating a Social Fortress Using IFTTT

Whether you’re a fan or not, there’s no doubt that IFTTT (If This Then That) has revolutionised the way that we work as marketers. Despite it being a free web based service and quite the veteran in the online world – IFTTT recipes first came onto the scene back in 2011 – it is still one of the marketing world’s best kept secrets. Social media marketing in particular has benefitted from the use of IFTTT, and it has been used to streamline activity, enhance productivity and automate promotion, what more could we ask for!

Getting started with IFTTT is easy, and in this blog we’ll answer those important questions surrounding IFTTT and give you the recipes you need to get something cooking in your own camp.

by Guest Author via Digital Information World

This week's JavaScript news, issue 306

This week's JavaScript newsRead this e-mail on the Web
JavaScript Weekly
Issue 306 — October 20, 2016
At OSCON last week, the jQuery Foundation announced its renaming to the JS Foundation, an entity “committed to creating a center of gravity within the exponentially expanding JS ecosystem”. Its projects include ESLint, jQuery and Webpack.
The New Stack

Dr. Axel explains another potential addition to JavaScript: asynchronous iteration. He also shows how you can use it now via Babel.
Dr. Axel Rauschmayer

Three major updates for Node this month, with v7 set to become the new ‘current’ release line, v6 transitioning to LTS, and v0.10 reaching its ‘end of life’ with no patches at all beyond October.
Node.js Foundation

Compose
Get the most from your favorite RDBMS with 3 Node HA, Daily Backup and Auto-scaling. See how easy it is to connect your Database, hassle-free.
Compose   Sponsor

No, it’s not the exponentiation operator, or Array.prototype.includes(), it’s that "use strict" can’t be used in functions with non-simple parameter lists.
Nicholas C. Zakas

Angular 2 presents two different methods for creating forms, template-driven (as used in Angular 1.x) or reactive. Todd digs into the latter.
Todd Motto

Is package manager fatigue soon to become a thing? Tim Severien summarizes everything you need to know and compares Yarn to io.js.
Sitepoint

Julian Motz takes a look at jQuery’s document.ready() method and shows a more vanilla JS approach.
Sitepoint

Jobs

In brief

The Linux Foundation Unites JavaScript Community for Open Web Development news
JS Foundation

A Quick Review of New Features in Angular 2.1 news
Gerard Sans

Ember.js 2.8-LTS, 2.9 and 2.10 Beta Released news

Facebook Wants Your Input for JSX 2.0 news
Facebook

Angular 1.x Banned From Use in Firefox Addons news
Martin Probst of Google notes that “We believe this is likely a misunderstanding”. Updates to follow.
Mozilla

Chrome Dev Summit 2016 news
Chrome Dev Summit 2016 will take place at the SFJAZZ Center in San Francisco, CA on November 10-11. Join Chrome VP Darin Fisher for two full days of announcements and talks from the Chrome team. Register now with code JAVASCRIPTWEEKLY
Google Inc.  Sponsor

A Practical Introduction to ES6 Generator Functions tutorial
David Tang

Some Simple ES6 Syntax Tricks tutorial
Emil Ong

How to Create Your Own TypeScript Type Definition Files (.d.ts) tutorial
A very thorough tutorial.
Wolk Software Engineering

A Visual Guide to State in React tutorial
Dave Ceddia

Experimenting with async/await in Node.js 7 Nightly tutorial node
Gergely Nemeth

JavaScript for Web Designers: DOM Scripting tutorial
Mat Marquis

Using Yarn with Docker tutorial
Martino Fornasa

Searching JavaScript Arrays Efficiently with includes and indexOf tutorial
Dudley Storey

Building a 3D Minecraft-Style Editor in JavaScript tutorial
Christopher Pitt

Ember and Rails 5 with JSON API: A Modern Bridge tutorial
Ember Igniter

Medium-Like Image Loading with Vue.js tutorial
Louis Zawadzki

Polymer Summit 2016: Recordings of All Talks Are Now Available video
Catch up now on all talks from Polymer Summit 2016.
Google

Is MVC Dead for The Frontend? opinion
Alex Moldovan

Why You Shouldn’t Use ‘var’ Anymore opinion
And how ‘let’ solves a common JavaScript “gotcha”…
Mark Brouch

Debugging JS errors in production tools
100% open source tool for catching errors, even if they're minified. Plugins for React, Vue, & Angular 1 or 2.
Sentry  Sponsor

Faltu: Search Sort, Filter, and Limit An Array of Objects in MongoDB-esque Style code
Moin Uddin

Vivus.js: Bring SVGs to Life by 'Drawing' Them via Animations code
maxwellito

meSing.js: JavaScript Singing Synthesis Library code
With a demo here.
David Su

Curated by Peter Cooper and published by Cooper Press.

Stop getting JavaScript Weekly : Change email address : Read this issue on the Web

© Cooper Press Ltd. Office 30, Lincoln Way, Louth, LN11 0LS, UK


by via JavaScript Weekly

JUnit 5 State Of The Union

JUnit 5 has been under development for about 14 months now and the prototype is almost a year old. Time to summarize what happened so far, where the project stands, and where it’s going. All technical details are based on the current JUnit version, milestone 2. You will find more information in the official user […]

Continue reading %JUnit 5 State Of The Union%


by Nicolai Parlog via SitePoint