o

A Complete Guide to CSS Functions

#439 — May 6, 2020

Read on the Web

Frontend Focus

Introducing Web Vitals: Essential Metrics for Healthy SitesWeb Vitals is a new Google initiative to provide guidance on quality signals (think first input delay, load speed, etc.) that are key to delivering good user experiences on the web.

Google

A Complete Guide to CSS Functions — A thorough resource detailing everything you need to know about functions in CSS. They can be inserted where you’d place a value, or in some cases, accompanying another value declaration — this is a good look at how to use them.

CSS Tricks

7 Design Tips for Pixel-Perfect Operational Reports — Pixel-perfect operational reports allow you to control every component down to the individual pixel level, so the rendered report is set exactly to spec. But how do you design them? Follow these 7 tips for creating beautiful, high-precision reports.

Logi Analytics sponsor

10 Years of HTML5 Boilerplate — A look at some of the history behind the front-end framwork that started them all: HTML5 Boilerplate, which is now 10 years old.

Rob Larsen

Firefox 76: Audio Worklets and Other Tricks — This latest version delivers new features for web platform support, such as Audio Worklets and Intl improvements, on the JavaScript side. Also a number of improvements to the DevTools have been added. Here’s the list of dev-focused changes.

Chris Mills & Harald Kirschner (Mozilla)

⚡️ Quick bytes:

???? Jobs

Frontend Developer at X-Team (Remote) — Join X-Team and work on projects for companies like Riot Games, FOX, Coinbase, and more. Work from anywhere.

X-Team

Find a Job Through Vettery — Vettery specializes in tech roles and is completely free for job seekers. Create a profile to get started.

Vettery

ℹ️ Interested in running a job listing in Frontend Focus? There's more info here.

???? News, Tutorials & Opinion

Exciting Things on the Horizon For CSS Layout — …such as a new Grid inspector for Chrome, the ‘gap’ property in Chrome Canary, and (amazingly) masonry-style grids in Firefox Nightly.

Michelle Barker

Selection in CSS — Another one of Ahmad’s great deep dives, this time covering the ::selection pseudo-element and the user-select property in CSS.

Ahmad Shadeed

File Sharing Now in WebKit — Looks like more Web Share API support (Level 2 / file sharing) is landing in WebKit — spotted via this tweet from Jake Archibald.

WebKit Bugzilla

For Many, Accessibility Is An Unknown Unknown — “Accessibility is, for all intents and purposes, duct-taped onto the web. We need to make it a first class citizen in browsers. Until we do, we’ll keep wondering why developers aren’t making accessible websites.”

Kilian Valkhof

Is It Time for A Web Performance Rebrand? — “Web Performance is a niche term in a broad market, should we broaden our appeal to reach more people?”

Simon Hearne

Free for 30 Days: MongoDB Atlas Is Easy. Make It Powerful. — Use MongoDB Atlas? Try the perfect partner for it. Save hours with our GUI & unlock the power you need, with Studio 3T.

Studio 3T sponsor

Beginner's Guide to Eleventy — This is an extensive and down-to-earth multi-part introductory guide to using Eleventy the popular static site generator.

Tatiana Mac

A Guide to window.location — A breakdown that covers most of the methods and properties available on the DOM’s window.location object.

samantha ming

Styling in the Shadow DOM With CSS Shadow Parts — Using the ::part() selector.

Ollie Williams

Progressively Enhancing Radio Buttons with SVG Whilst Staying Accessible

Christian Heilmann

How to Create Pure CSS Games (No JS)

Elad Shechter

???? Code, Tools and Resources

Pico: Take Browser Screenshots Client-Side with JavaScript — Different from capturing a webpage using Puppeteer or a similar tool in that the screenshot taking happens entirely client side.

Gripeless

???? I18n Ally: An All-in-One i18n Extension for VS Code — Got some internationalization work to do? I18n Ally gives you inline annotations, automated translations via Google Translate (which you can review), progress indication, etc. Supports React, Angular, Vue and other frameworks.

Anthony Fu

web-vitals-extension: A Chrome Extension to Measure Essential Metrics for A Healthy Site — This extension measures three core web vitals metrics (Largest contentful paint, cumulative layout shift, and first input delay) in a way that matches how they’re measured by Chrome and reported to other Google tools (see top feature in this issue).

Google Chrome

Faster CI/CD for All Your Software Projects Using Buildkite

Buildkite sponsor

utfu: Replace Busted Characters From Legacy Text with UTF-8 — Useful when old content contains characters like “— in place of a single quote, and similar legacy text issues.

Daniel Sieradski

Sitesauce: A Static Site for Your Dynamically-Generated Website — This paid tool converts dynamic websites (e.g. WordPress, Ghost, Joomla, etc.) into static sites, and keeps content in sync.

Miguel Piedrafita




o

Start to save today to survive tomorrow

In times such as these, you need to make every rupee count. Use the money you save to add to your investments or to buy medical insurance, instead of subscribing to more OTT platforms, suggests Bindisha Sarang.




o

How to trade safely? BSE, NSE's advice to investors

Both the exchanges advised their trading members to exercise additional due diligence while trading in illiquid stocks either on own account or on behalf of their clients.




o

Nervous investors look to the stars for guidance

The spread of COVID-19 and the accompanying mayhem caused the S&P BSE Sensex to drop over 38.5 per cent from its all-time high of 42,273.9 to a low of 25,981.2 on March 23.




o

Investment hubs to come under Sebi lens for China ties

The regulator last week reached out to custodians for beneficial ownership information of investors coming from China, Hong Kong, and 11 other countries.




o

Why investors MUST book partial profits in gold

Such an economic environment tends to be positive for gold, the ultimate safe-haven asset. Since gold cannot be debased by central banks, it naturally gains in value.




o

PE/VC investments hit 12-quarter low at $5.1 billion

The quarter also saw exits worth $1.9 billion across 37 deals, 59 per cent higher YoY. This was driven by one of India's largest PE-backed IPO exit, the $1-billion partial exit by Carlyle in the SBI Cards IPO.




o

Why you need to watch out for April SIP numbers

Due to tax associations with the fiscal-ending, April is a month of SIP renewal. So, the April numbers will be important and may perhaps, mark a change in retail attitude.




o

Is this a good time to invest in gold bonds?

You also avoid capital gains tax during redemption in case the gold price is higher, making them tax efficient.




o

Silver Lake to invest Rs 5,656 cr in Jio Platforms

The deal, as well as some other strategic and financial investments in works, will help Ambani cut debt at RIL.




o

After a hard pause, Haryana industry begins its slow return to normalcy




o

Nihang dera being run with panchayat’s help: Govt tells HC




o

162 samples of LPU students,staff turn out negative, High Court told




o

Three weeks on, health officials yet to pinpoint how Jalandhar’s first 6 patients got infected




o

Haryana records five fresh cases, state’s 12 districts Covid-free




o

24 hrs after he violated quarantine, health dept issues showcause to Patiala senior deputy mayor




o

Punjabi NRIs reach out to students stranded in Australia




o

Cyber cell use CDRs, tower location to trace travel history of Covid patients




o

Kin can now transfer money online to Burail inmates




o

May not be possible to completely lift lockdown, says Capt; Punjab looks for new testing strategy; and more




o

Distributing food packets at PGI, Gurdwara Nada Sahib feeds over 1,000 people everyday




o

Panchkula health team counsels addicts and cops on duty




o

One tests positive at Chandigarh’s GMCH




o

Paramedics on 112 emergency duty operate with minimum gear, stay on guard by tracking patient’s reports




o

Stranded with barely any food or money, students, patients from Ladakh an anxious lot




o

Pathankot: No paediatric expertise available due to lockdown, Army doctors perform life-saving surgery on day-old baby




o

In Punjab, procurement pace better than ’19 — 61% more wheat purchased




o

Lockdown Impact: Beas cleanest in state, little improvement in Sutlej downstream from Ludhiana




o

Amid lockdown, thalassemia patients travel miles for treatment at PGIMER




o

Punjab firm comes up with anti-infective wear for life after lockdown




o

Watch: Chandigarh police’ device to catch lockdown violators, with social distancing




o

Coronavirus outbreak: After MHA nod, Haryana CM says shops to start opening today onwards




o

45-hr journey, 100 buses: 3,700 pilgrims stranded at Nanded are on way to Punjab




o

Haryana launches mobile app for necessary services during lockdown




o

Post-Covid strategy: Montek to head group tasked to formulate Punjab’s economic revival plan




o

Chandigarh: J&K govt, SLSA step in, airlifting of patients begins




o

Coronavirus outbreak: With more cases, Mohali ahead of Chandigarh even in testing




o

Chandigarh: Another GMCH ward attendant tests positive for COVID-19




o

Chandigarh: From iron fist to heart of gold, UT Police undergoes image makeover




o

Chandigarh: Essential service providers being screened on priority, Admin tells High Court




o

Haryana: In Majri village, families without ration cards yet to receive help from govt




o

Coronavirus outbreak: No relaxation in curfew in Mohali district




o

Panchkula: Kites colour sky everyday, but many at home despair




o

Coronavirus outbreak: Panchkula to open shops in accordance with Centre’s norms




o

Hired under central scheme, ‘unpaid’ migrants labour work in farms to survive




o

Jalandhar: ‘Asked Civil Hospital to assist in Covid patient’s cremation, got no reply,’ alleges private hospital




o

In the lockdown, take part in the virtual run today




o

With six new patients, Chandigarh records highest Covid spike in a day




o

Three infected, but no set quarantine protocol for contractual staff at PGIMER




o

Hit hard by lockdown: Transgender community stands isolated with no financial resources