Тёмный

Using CSS :has() with HTML forms | Learn Web Dev with Austin Gil 

Akamai DevRel
Подписаться 8 тыс.
Просмотров 3,1 тыс.
50% 1

With support for CSS :has() function finally arriving in most browser, I thought I'd try to see how it can be used specifically with HTML forms. I found four pretty compelling use-cases:
- Inline input validation feedback
- Conditional content rendering
- Custom card inputs
- Visual validation feedback for submit buttons.
Links:
"How to Build HTML Forms Right" blog posts - austingil.com/how-to-build-ht...
Documentation - developer.mozilla.org/en-US/d...
GitHub repo - github.com/AustinGil/has-bett...
Watch Austin's Livestreams here:
RU-vid: / heyaustingil
Twitch: / heyaustingil
Website: austingil.com/
Chapters:
0:00 - Introduction
0:14 - Using CSS :has() with HTML forms
9:11 - Conclusion
#html #webdevelopment #css #htmlforms

Наука

Опубликовано:

 

10 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 3   
@philip9677
@philip9677 Год назад
Any idea when firefox will implement the :has selector, usually they are first to deploy latest css features, not sure why they are delaying with this when chrome and safari alreasy support :has. Nice tutorial btw
@heyAustinGil
@heyAustinGil Год назад
No idea, unfortunately. I imagine it's something they are working on, but I don't know anyone on the Firefox team that I could ask. I don't think it will be too long though. Thanks for the comment :)
@philip9677
@philip9677 Год назад
@@heyAustinGil Thanks austin, wondering if there is a polyfill for :has for browsers that dont support, or maybe have to use javascript
Далее
Беда приходит внезапно 😂
00:25
Просмотров 891 тыс.
Сравнили apple и xiaomi!
0:21
Просмотров 49 тыс.