• About Us
  • Privacy Policy
  • Disclaimer
  • Contact Us
AimactGrow
  • Home
  • Technology
  • AI
  • SEO
  • Coding
  • Gaming
  • Cybersecurity
  • Digital marketing
No Result
View All Result
  • Home
  • Technology
  • AI
  • SEO
  • Coding
  • Gaming
  • Cybersecurity
  • Digital marketing
No Result
View All Result
AimactGrow
No Result
View All Result

What’s !necessary #17: Customized Spotlight API, CSS Navigation Matching, Fixing text-stroke, and Extra

Admin by Admin
August 14, 2026
Home Coding
Share on FacebookShare on Twitter


Plus, model skeleton UIs, allow diagonal scrolling, how pictures can overflow themselves, and but, nonetheless extra. Mainly, do a number of actually cool (CSS) stuff.

How you can use the CSS Customized Spotlight API

Sunkanmi Fafowora demonstrated use the CSS Customized Spotlight API, which is now supported by all main net browsers. Regardless of “CSS” being within the title (the styling is dealt with by the ::spotlight() pseudo-element perform), it’s truly JavaScript that makes the wheels go spherical for this one.

Each syntaxes are fairly enjoyable to work with, although.

Should you’re curious as to how ::spotlight() works alongside different spotlight pseudo-elements (there are literally fairly a couple of of them), I wrote one thing up not too way back.

How pictures can overflow themselves

Temani Afif defined how pictures can type of overflow themselves, as a result of the ingredient is sort of a container that the ‘changed content material’ (the picture useful resource) can overflow.

I suppose that explains why we will swap the src utilizing CSS, like this:

Alt text
img {
  content material: url(new-image.avif) / "New alt textual content";
}

And even this:

img {
  content material: image-set(
    url("https://css-tricks.com/whats-important-17/picture.avif") 1x,
    url("image-2x.avif") 2x,
    url("image-3x.avif") 3x
  );
}

Temani additionally confirmed us what we will do with this info:

How you can repair text-stroke

Tyler Sticka reminded us (effectively, I’m studying about it for the primary time…) repair text-stroke with paint-order. For many who don’t know, text-strokes are center-aligned, so half of the stroke seems on the surface whereas the opposite half seems on the within, and the within half typically seems to be horrible.

The words Bleh and Neat written in blue stylized fonts with white outlines against a salmon background, demonstrating the text-stroke CSS property without and then with paint-order.
Supply: Tyler Sticka.

The paint-order property doesn’t repair the alignment, nevertheless it does be sure that the textual content fill is painted over the within half of the stroke.

Additionally, the prefixed model of text-stroke (-webkit-text-stroke) continues to be needed for all browser distributors. General, an improve for text-stroke is lengthy overdue, and hopefully we see that quickly.

How you can model skeleton UIs

Lea Verou contemplated model skeleton UIs utilizing solely CSS, and the fantastic CSS neighborhood chimed in with various superior options too. It was so good to see box-decoration-break: clone in there (steered by Agustin Capeletto), though totally different components want totally different options, it appears.

Till it dawned on me: thick text-decoration + colour: clear + masks!
Demo: codepen.io/leaverou/pen…

However I am unable to for the lifetime of me work out spherical the sides (with out HTML modifications or fragility like hardcoding textual content measurement/size).
Any takers?

[image or embed]

— Lea Verou, PhD (@lea.verou.me) 17:39 · Aug 1, 2026

Other ways to make use of the lh unit

Ahmad Shadeed showcased other ways to make use of the lh unit, which, because it seems, has a variety of makes use of. Should you’re not acquainted, 1lh is the same as the computed line-height.

A screenshot of an interactive web demo showing an image floated to the left of some text. The ‘use lh [units]’ checkbox is selected, causing the image’s height to be equal to that of 6 lines of text.
Supply: Ahmad Shadeed.

Bramus defined how the brand new scroll-axis-lock property facilitates diagonal scrolling (the default conduct solely permits for scrolling one axis at a time).

An introduction to CSS navigation matching

Bramus additionally unveiled CSS navigation matching, which principally allows us to model components primarily based on the place the person is navigating to or from.

It’s sort of mind-blowing, to be sincere. Bramus truly revealed this proper after I wrote What’s !necessary #16 (the final situation), however I simply couldn’t let this one fly below the radar…

Since neither Chrome, Safari, nor Firefox has shipped a brand new secure model since What’s !necessary #16 (and since it’s Friday), let’s wrap this one up early. As an alternative, I’ll depart you with an fascinating query — what’s the worst HTML ingredient?

what’s the worst html ingredient? proper solutions solely

— Zach Leatherman (@zachleat.com) 16:46 · Aug 13, 2026

See ya in a few weeks!

Tags: APICSSCustomfixinghighlightimportantMatchingNavigationtextstrokeWhats
Admin

Admin

Next Post
Claude Now Watermarks Every little thing It Writes. This is What It Means for Entrepreneurs

Claude Now Watermarks Every little thing It Writes. This is What It Means for Entrepreneurs

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recommended.

Uncomfortable concepts | Seth’s Weblog

And when it breaks? | Seth’s Weblog

June 25, 2025
Stay Sports activities Scores In Google AI Mode

Stay Sports activities Scores In Google AI Mode

March 18, 2026

Trending.

From Basement to Breakthroughs: Contained in the Studio Powering the Web’s Boldest Manufacturers

From Basement to Breakthroughs: Contained in the Studio Powering the Web’s Boldest Manufacturers

December 15, 2025
HunyuanCustom Brings Single-Picture Video Deepfakes, With Audio and Lip Sync

HunyuanCustom Brings Single-Picture Video Deepfakes, With Audio and Lip Sync

May 8, 2025
A SQL MERGE assertion performs actions primarily based on a RIGHT JOIN

Use jOOQ’s code generator to simply go table-valued parameters

April 26, 2025
A SQL MERGE assertion performs actions primarily based on a RIGHT JOIN

With jOOQ – Java, SQL and jOOQ.

May 25, 2025
AI & data-driven Starbucks – Deep Brew

AI & data-driven Starbucks – Deep Brew

May 18, 2026

AimactGrow

Welcome to AimactGrow, your ultimate source for all things technology! Our mission is to provide insightful, up-to-date content on the latest advancements in technology, coding, gaming, digital marketing, SEO, cybersecurity, and artificial intelligence (AI).

Categories

  • AI
  • Coding
  • Cybersecurity
  • Digital marketing
  • Gaming
  • SEO
  • Technology

Recent News

How to make sure your model is seen throughout each channel

How to make sure your model is seen throughout each channel

November 16, 2026
10 Nice Video games That Outlined The Xbox 360

10 Nice Video games That Outlined The Xbox 360

November 16, 2026
  • About Us
  • Privacy Policy
  • Disclaimer
  • Contact Us

© 2025 https://blog.aimactgrow.com/ - All Rights Reserved

No Result
View All Result
  • Home
  • Technology
  • AI
  • SEO
  • Coding
  • Gaming
  • Cybersecurity
  • Digital marketing

© 2025 https://blog.aimactgrow.com/ - All Rights Reserved