Web Component Pseudo-Classes and Pseudo-Elements are Easier Than You Think

We’ve discussed a lot about the internals of using CSS in this ongoing series on web components, but there are a few special pseudo-elements and pseudo-classes that, like good friends, willingly smell your possibly halitotic breath before you go …

Web Component Pseudo-Classes and Pseudo-Elements are Easier Than You Think originally published on CSS-Tricks. You should get the newsletter.

https://css-tricks.com/web-component-pseudo-classes-and-pseudo-elements/

3y | CSS tricks
Trailing Slashes on URLs: Contentious or Settled?

A fun deep dive from Zach. Do you have an opinion on which you should use? 1) https://website.com/foo/ 2) https://websites.com/foo The first option has a “trailing slash.” The second does not. I’ve always preferred this thinking: you use a trailing …

Trailing Slashes on URLs: Contentious or Settled? originally published on CSS-Tricks. You should get the newsletter.

https://css-tricks.com/trailing-slashes-on-urls-contentious-or-settled/

3y | CSS tricks
Manuel Matuzovic’s CSS Specificity Demo

If you’re looking for a primer on CSS specificity, we’ve got that. And if you’re trying to get ahead of the game, you should be aware of CSS Cascade Layers as well. One of the ways to help get …

Manuel Matuzovic’s CSS Specificity Demo originally published on CSS-Tricks. You should get the newsletter.

https://css-tricks.com/manuel-matuzovics-css-specificity-demo/

3y | CSS tricks
When to Avoid the text-decoration Shorthand Property

In my recent article about CSS underline bugs in Chrome, I discussed text-decoration-thickness and text-underline-offset, two relatively new and widely-supported CSS properties that give us more control over the styling of underlines. Let me demonstrate the usefulness of …

When to Avoid the text-decoration Shorthand Property originally published on CSS-Tricks. You should get the newsletter.

https://css-tricks.com/when-to-avoid-css-text-decoration-shorthand/

3y | CSS tricks
My white whale: A use case for will-change

 Nic Chan:

[…] the will-change property landed in major browsers in August 2015, and I’ve been on the lookout for when to use it ever since. It might seem self-evident to apply it to commonly animated properties such

My white whale: A use case for will-change originally published on CSS-Tricks. You should get the newsletter.

https://css-tricks.com/my-white-whale-a-use-case-for-will-change/

3y | CSS tricks
Superior Image Optimization: An Ideal Solution Using Gatsby & ImageEngine

(This is a sponsored post.) In recent years, the Jamstack methodology for building websites has become increasingly popular. Performance, scalable, and secure, it’s easy to see why it’s becoming an attractive way to build websites for developers. GatsbyJS is …

Superior Image Optimization: An Ideal Solution Using Gatsby & ImageEngine originally published on CSS-Tricks. You should get the newsletter.

https://css-tricks.com/superior-image-optimization-an-ideal-solution-using-gatsby-imageeng

3y | CSS tricks
Explain the First 10 Lines of Twitter’s Source Code to Me

For the past few weeks, I’ve been hiring for a senior full-stack JavaScript engineer at my rental furniture company, Pabio. Since we’re a remote team, we conduct our interviews on Zoom, and I’ve observed that some developers are not …

Explain the First 10 Lines of Twitter’s Source Code to Me originally published on CSS-Tricks. You should get the newsletter.

https://css-tricks.com/explain-the-first-10-lines-of-twitter-source-code/

3y | CSS tricks
CSS Database Queries? Sure We Can!

Kinda silly sounding, isn’t it? CSS database queries. But, hey, CSS is capable of talking to other languages in the sense that it can set the values of things that they can read. Plus, CSS can request other files, and …

CSS Database Queries? Sure We Can! originally published on CSS-Tricks. You should get the newsletter.

https://css-tricks.com/css-database-queries/

3y | CSS tricks
5 Accessibility Quick Wins You Can Implement Today

Let’s face it: building an AA or AAA-accessible product can be quite daunting. Luckily, having an accessible product isn’t all-or-nothing. Even seemingly small improvements can have nice quality of life benefits for many people. In that spirit, here are five …

5 Accessibility Quick Wins You Can Implement Today originally published on CSS-Tricks. You should get the newsletter.

https://css-tricks.com/5-accessibility-quick-wins-you-can-implement-today/

3y | CSS tricks
Before I go: When it comes to complaining about web browsers

That’s a damn one-two punch from Dave. He goes for the ultimate clickbait title¹, then follows up with a pile of epic advice for us all. If you want web browsers to get better, listen up:

Complaining on

Before I go: When it comes to complaining about web browsers originally published on CSS-Tricks. You should get the newsletter.

https://css-tricks.com/before-i-go-when-it-comes-to-complaining-about-web-browsers/

3y | CSS tricks

Căutare