Unleashing the Power of CSS by Eckles Stephanie;
Author:Eckles, Stephanie; [Stephanie Eckles]
Language: eng
Format: epub
ISBN: 978-1-925836-56-1
Publisher: SitePoint
Published: 2022-04-06T23:00:00+00:00
Dealing with Partial Browser Support
Because Firefox has been rolling out support for :has() in parts, Bramus Van Damme cautions that, when weâre using the @supports method, we should include a relative selector to check if full support is available for all types of :has() selectors.
The Future of :has()
While weâve seen that :has() is very useful in and of itself, itâs also an excellent sidekick to other modern features.
For example, any time a count of something could affect a layoutâfor example, given a wider or narrower parentâthere will be a use case for :has() combined with container size queries!
When container style queries are also available, use of :has() will help with toggling custom properties. Those might be based on count or the presence of childrenâsuch as a logo in a navigation block. Weâll then be able to use those custom property values with the style query.
A bit further into the future will be CSS scope, at which time :has() will allow scoping to be even more precise.
Given that :has() is a brand-new property, its âbest practicesâ are yet to be established, and there are endless opportunities to explore. Grab a browser that supports it and start experimenting!
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Deep Learning with Python by François Chollet(15897)
The Mikado Method by Ola Ellnestam Daniel Brolund(13160)
Hello! Python by Anthony Briggs(12990)
OCA Java SE 8 Programmer I Certification Guide by Mala Gupta(12175)
Dependency Injection in .NET by Mark Seemann(12027)
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(10799)
The Well-Grounded Java Developer by Benjamin J. Evans Martijn Verburg(10614)
A Developer's Guide to Building Resilient Cloud Applications with Azure by Hamida Rebai Trabelsi(10536)
Grails in Action by Glen Smith Peter Ledbrook(10095)
Secrets of the JavaScript Ninja by John Resig Bear Bibeault(9972)
Sass and Compass in Action by Wynn Netherland Nathan Weizenbaum Chris Eppstein Brandon Mathis(9460)
Hit Refresh by Satya Nadella(9040)
Kotlin in Action by Dmitry Jemerov(8687)
Test-Driven iOS Development with Swift 4 by Dominik Hauser(8634)
The Kubernetes Operator Framework Book by Michael Dame(8484)
Exploring Deepfakes by Bryan Lyon and Matt Tora(8305)
Robo-Advisor with Python by Aki Ranin(8260)
Practical Computer Architecture with Python and ARM by Alan Clements(8232)
Implementing Enterprise Observability for Success by Manisha Agrawal and Karun Krishnannair(8201)