---
title: "A 'div' that looks different in each major browser"
publication: "Frontend Focus"
issue: 348
published_at: "2018-07-11"
canonical_url: "https://frontendfoc.us/issues/348"
---

This Week's HTML5, CSS, Browser, and Frontend News       

#348 — July 11, 2018 

[Read on the Web](https://frontendfoc.us/issues/348)   

Frontend Focus 

[![A 'div' That Looks Different In Each Major Browser\](https://res.cloudinary.com/cpress/image/upload/w_1280,e_sharpen:60/xf09ra8zcljcnkuf0rbh.jpg)](https://twitter.com/Martijn_Cuppens/status/1015169981368225793)  

[A 'div' That Looks Different In Each Major Browser](https://twitter.com/Martijn_Cuppens/status/1015169981368225793) — A neat demonstration of how specs don’t guarantee an identical result across browsers. Here’s [the CodePen](https://codepen.io/MartijnCuppens/pen/MXojmw) to try it for yourself. 

Martijn Cuppens on Twitter   

[Writing IE-Friendly CSS Grid Code](https://css-tricks.com/css-grid-in-ie-css-grid-and-the-new-autoprefixer/) — Want to lean on CSS Grid but not get in trouble for abandoning Internet Explorer 11 users? Using Autoprefixer and keeping some rules in mind will help you get there. 

Daniel Tonon   

[CSS Working Group Working on Native CSS Nesting Support](https://github.com/w3c/csswg-drafts/issues/2701#issuecomment-402392212) — It’s still a _long_ way from getting browser support, but the ball is now truly rolling on native support for [Sass-like style nesting in ordinary CSS.](https://tabatkins.github.io/specs/css-nesting/) _Thanks to Tobi Reif for sending this in._ 

World Wide Web Consortium   [![\](https://copm.s3.amazonaws.com/8a2b5cb6.png)](https://www.telerik.com/campaigns/kendo-ui/wp-functional-programming-with-js-cheat-sheet?utm_medium=cpm&utm_source=frontendfocus&utm_campaign=kendo-ui-jquery-whitepaper-funcwithjs&utm_content=primary) 

[How to Do Functional Programming with JavaScript?](https://www.telerik.com/campaigns/kendo-ui/wp-functional-programming-with-js-cheat-sheet?utm_medium=cpm&utm_source=frontendfocus&utm_campaign=kendo-ui-jquery-whitepaper-funcwithjs&utm_content=primary) — JavaScript developers, here’s a handy resource for your reference stack. This essential cheat sheet outlines syntax features that enable you to express your code using functional programming techniques. Check it out. 

Progress Kendo UI sponsor   

[15 HTML Element Methods You’ve Potentially Never Heard of](https://hackernoon.com/15-html-element-methods-youve-potentially-never-heard-of-fc6863e41b2a) — The DOM is full of delights, some of which David pokes at here, including `scrollIntoView`, `getBoundingClientRect`, and `select`. 

David Gilbertson   

[Pattern Library First: An Approach For Managing CSS](https://www.smashingmagazine.com/2018/07/pattern-library-first-css/) — Rachel Andrew looks at how using a pattern-based approach can make CSS easier to manage across a project. In this case, she uses [Fractal](https://fractal.build/) to manage components which use CSS Grid. 

Rachel Andrew   

[Web Components in 2018](https://www.sitepen.com/blog/2018/07/06/web-components-in-2018/) — What we call “Web Components” is really a set of often separately specified Web technologies, including Shadow DOM, Custom Elements, and HTML templates. 

James Milner   

[An Introduction to the CSS Paint API](https://css-tricks.com/the-css-paint-api/) — The CSS Paint API allows you to call a special `paint` JavaScript function wherever you might ordinarily write a value where an image is expected by a CSS property. Google also has [a guide to this feature](https://developers.google.com/web/updates/2018/01/paintapi) which is, as yet, [only supported in Chrome](https://caniuse.com/#feat=css-paint-api). 

Ruth John   

[Intent to Ship in Blink/Chrome: Web Locks API](https://groups.google.com/a/chromium.org/d/msg/blink-dev/e2fg_-Ha-AE/nheenHnXBgAJ) — [Web Locks](https://inexorabletash.github.io/web-locks/) is an API that lets scripts asynchronously gain locks over resources such as data stores. 

Blink-Dev  

💻 Jobs  

[Sr. Front-End Engineer, Creator Tools - New York City](https://grnh.se/136e07cc1) — We empower video creators to tell exceptional stories and to connect with their audiences & communities. Build the future with us. 

Vimeo   

[Front-end Designer With Strong UI/UX Focus](https://www.helical-levity.com/careers/frontend-designer) — Help our growing team build amazing tools, games and websites used by thousands of people every day. Near Oxford and/or UK remote. 

Helical Levity   

[Find A Job Through Vettery](https://www.vettery.com/tech?utm_source=newsletter&utm_medium=cooper-webopsweekly&utm_term=tech&utm_content=grouped&utm_campaign=ad-75452) — Vettery matches top tech talent with fast-growing companies. Create your profile to get started. 

Vettery  

📘 Tutorials  

[Physics-Based Background Scroll Effects](https://codersblock.com/blog/physics-based-background-scroll-effects/) — Creating physics-based scroll effects using the open-source framework Matter.js. 

Will Boyd   

[Performance Auditing: A Firefox Developer Tools Deep Dive](https://www.sitepoint.com/performance-auditing-a-firefox-developer-tools-deep-dive/) — An in-depth guide to making use of the performance-related tools within Firefox. 

Ahmed Bouchefra   

[Gallery Grid with CSS Grid](https://laurakalbag.com/gallery-grid-with-css-grid/) — How to simply add a variable number of images into a blog post and have the scaling handled for you. 

Laura Kalbag   

[CSS Grid in IE: Faking an Auto-Placement Grid with Gaps](https://css-tricks.com/css-grid-in-ie-faking-an-auto-placement-grid-with-gaps/) 

Daniel Tonon   

[WebRTC and the Mechanics of Peer-to-Peer Networking](https://blog.sessionstack.com/how-javascript-works-webrtc-and-the-mechanics-of-peer-to-peer-connectivity-87cc56c1d0ab) 

Alexander Zlatkov   

[Experimenting with First Input Delay in the Chrome UX Report](https://developers.google.com/web/updates/2018/07/first-input-delay-in-crux) — [First Input Delay](https://developers.google.com/web/updates/2018/05/first-input-delay) is the time it takes for a page to respond to a user’s first interaction with it, and ideally that’s under 100 milliseconds. 

Google Developers   

[How to Quickly Prototype Apps with CSS Grid and CSS Variables](https://medium.freecodecamp.org/how-to-quickly-prototype-apps-with-css-grid-and-css-variables-8d3d96d68eaa) 

Per Harald Borgen   

[How to Build Complicated Grids using CSS Grid](https://itnext.io/how-to-build-complicated-grids-using-css-grid-609b1197cf75) — A real-world example showing the creation of an unconventional homepage grid layout. 

Dan Webb   

[On Leading and Trailing Spaces in HTML Attribute Values](https://www.impressivewebs.com/leading-trailing-spaces-html-attribute-values/) 

Louis Lazaris  

🔧 Code and Tools 

[![30 CSS Radio Button Styles Demonstrated with CodePen\](https://res.cloudinary.com/cpress/image/upload/v1531315654/odfy1owkwchezn7j6zpg.gif)](https://freebiesupply.com/blog/css-radio-buttons/)  

[30 CSS Radio Button Styles Demonstrated with CodePen](https://freebiesupply.com/blog/css-radio-buttons/) 

Freebie Supply   

[Browsh: A Fully-Modern Text-based Browser, Rendering to TTY and Browsers](https://github.com/browsh-org/browsh) — A fun one, this. It uses headless Firefox behind the scenes but renders graphics and video out to terminal. 

Browsh   

[web-riimote: Turn Your Phone Into a 3D Controller for the Web](https://github.com/konaraddio/web-riimote) 

Omkar Konaraddi         

A **[Cooperpress](https://cooperpress.com/)** publication. 

[Change your email address](https://frontendfoc.us/edit_subscription/*|UID|*) or[Stop getting this newsletter](https://frontendfoc.us/leave/*|UID|*) 

© Cooper Press Ltd · Fairfield Enterprise Centre, Louth, LN11 0LS, United Kingdom
