Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Details on <details>
Search
Mu-An Chiou
July 19, 2018
Technology
420
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Details on <details>
https://gist.github.com/muan/adf26249c0adf018aea828105a5846eb
Mu-An Chiou
July 19, 2018
Transcript
38 slides
Greet(‘Brooklyn JS’)
Who this Mu-An Chiou Web Systems Engineer @ GitHub Taiwan
#1 GitHub @muan / Twitter @muanchiou
Details on <details> The best element in HTML 5. Do
@ me.
https://www.chromestatus.com/metrics/feature/timeline/popularity/480
What
What <details> <summary>Details</summary> <p>content</p> </details>
What <details> <summary>Details</summary> <p>content</p> </details>
What <details> <summary>Details</summary> <p>content</p> </details>
What <details open> <summary>Details</summary> <p>content</p> </details>
What details.open = true/false
What details.addEventListener(‘toggle’, () => {})
Why not this el.addEventListener('click', e => { const thing =
document.querySelector(‘.thing’) thing.style.display = ‘none’ })
Or this input:check + * { display: block; }
Here’s why Semantic
Here’s why Accessible
Here’s why No JavaScript
Here’s why = Interactive on load
When
When Accordions Popovers Dropdowns …
The beginning ! IE 11
Dropdown menu <div class=“dropdown js-menu-container”> <button class=“btn js-menu-target” aria-haspopup=“menu”>…</button> <ul
class=“dropdown-content js-menu-content”> <li><a href=“/muan">profile</a></li> … </ul> </div>
Dropdown menu <details class=“dropdown”> <summary class=“btn” aria-haspopup=“menu”>…</summary> <ul class=“dropdown-content”> <li><a
href=“/muan">profile</a></li> … </ul> </details>
Dropdown menu
Dropdown menu CSS: summary::before
Dropdown menu CSS: summary::before + JS: [esc] to close
Build status
Emoji reactions
Also Dialogs!
None
<details> <summary aria-haspopup=“dialog”>…</summary> <details-dialog> … </details-dialog> </details> <details-dialog>
<details-dialog> Focus management Tab trapping Accessibility enhancements Sorry <dialog>
<details> <summary aria-haspopup=“menu”>…</summary> <details-menu> … </details-menu> </details> <details-menu>
EXCITED? Let’s talk browser support —
Browser support Desktop 86% / Mobile 95% http://caniuse.com/#search=details
Polyfill javan/details-element-polyfill
CSS Helpers primer-utilities @ npm
<3 HTML
</details> GitHub @muan / Twitter @muanchiou Definitely the best element
in HTML 5.
More Decks by Mu-An Chiou
See All by Mu-An Chiou
Publishing and Hosting on GitHub pages
muan
4
180
Having no patience(Japanese)
muan
1
420
JSDC
muan
2
580
Design with Code
muan
5
600
Having no patience
muan
1
330
Design in GitHub
muan
5
400
Project Lab Squirrel #2
muan
1
710
Project Lab Squirrel #1
muan
8
930
A girl with no patience
muan
18
2k
Other Decks in Technology
See All in Technology
ポケモンバトルのAIエージェント
koji_kawamura
0
250
RAGの改善を速く回すための評価基盤
yosukeyoshida
6
3.6k
AWS Blocksで AIエージェント作れるの知ってます?
kmiya84377
1
170
サーバーラックは作る時代! 3Dプリンターで作る10インチラックのススメ
jacopen
2
520
20261119_AgentCore
takuyay0ne
2
300
メルカリの小規模チーム「Pod」で、 エンジニアがデータアナリストなしで、 AIを使ってデータ分析の自走を目指す取り組み
jackojacko_
1
360
kubellの最新データ分析環境
kubell_hr
2
270
自動計装なしでECSサービスをApplication Signalsに載せるまで
ota1022
2
480
Is the Website Dying?
miriamschwab
0
210
デザインシステムのフィードバックループをほぼ自動化した話
tongari07
0
520
SBOM 生成ツールで 2026 Minimum Elements はどこまで満たせるのか
gokken
0
160
目を覚ませ!僕らの認証情報が何者かに侵略されてるぞ
tkito
2
490
Featured
See All Featured
sira's awesome portfolio website redesign presentation
elsirapls
0
530
Faster Mobile Websites
deanohume
310
32k
The Curious Case for Waylosing
cassininazir
1
630
GitHub's CSS Performance
jonrohan
1033
470k
Building Better People: How to give real-time feedback that sticks.
wjessup
371
20k
Data-driven link building: lessons from a $708K investment (BrightonSEO talk)
szymonslowik
1
1.5k
Conquering PDFs: document understanding beyond plain text
inesmontani
PRO
4
3.3k
How People are Using Generative and Agentic AI to Supercharge Their Products, Projects, Services and Value Streams Today
helenjbeal
2
410
svc-hook: hooking system calls on ARM64 by binary rewriting
retrage
2
690
Being A Developer After 40
akosma
PRO
92
590k
Ethics towards AI in product and experience design
skipperchong
2
470
The #1 spot is gone: here's how to win anyway
tamaranovitovic
4
1.2k