Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Details on <details>
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Mu-An Chiou
July 19, 2018
Technology
380
0
Share
Details on <details>
https://gist.github.com/muan/adf26249c0adf018aea828105a5846eb
Mu-An Chiou
July 19, 2018
More Decks by Mu-An Chiou
See All by Mu-An Chiou
Publishing and Hosting on GitHub pages
muan
4
170
Having no patience(Japanese)
muan
1
410
JSDC
muan
2
560
Design with Code
muan
5
580
Having no patience
muan
1
320
Design in GitHub
muan
5
390
Project Lab Squirrel #2
muan
1
670
Project Lab Squirrel #1
muan
8
900
A girl with no patience
muan
18
2k
Other Decks in Technology
See All in Technology
『家族アルバム みてね』における インシデント対応との向き合い方 / Approach incident response in Family Album
kohbis
2
200
AI時代に求められる思考のパラダイムシフト
nrinetcom
PRO
1
150
テストコードのないプロジェクトにテストを根付かせる
tttol
0
170
long-running-tasks
cipepser
2
360
checker.tsにチキンレースを仕掛けてみた:型エラー(TS2589)が発生する境界線を求めて
hal_spidernight
1
210
TSKaigi 2026 - 型プラグインシステムの実装に使われるテクニック
teamlab
PRO
2
440
大規模環境でどのように監視を実現する?
yuobayashi
1
150
20260528_生成AIを専属DSに_Howの次にすべきことを考える
doradora09
PRO
0
200
RubyでRuby拡張を書いたらRubyより35倍速になったってどういうこと??
kazuho
3
620
コーディングエージェントはTypeScriptの 型エラーをどう自己修正しているのか
melonps
4
490
データ分析基盤の信頼を支える視点と設計
yuki_saito
1
680
Anthropic AIネイティブ・スタートアップ構築のプレイブック を理解する
nagatsu
0
190
Featured
See All Featured
How Software Deployment tools have changed in the past 20 years
geshan
0
34k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
25
1.9k
The Cost Of JavaScript in 2023
addyosmani
55
9.9k
<Decoding/> the Language of Devs - We Love SEO 2024
nikkihalliwell
1
220
How to audit for AI Accessibility on your Front & Back End
davetheseo
0
380
The Illustrated Guide to Node.js - THAT Conference 2024
reverentgeek
1
360
The SEO identity crisis: Don't let AI make you average
varn
0
470
Neural Spatial Audio Processing for Sound Field Analysis and Control
skoyamalab
0
300
Automating Front-end Workflow
addyosmani
1370
210k
Building Experiences: Design Systems, User Experience, and Full Site Editing
marktimemedia
0
510
The Limits of Empathy - UXLibs8
cassininazir
1
340
Reality Check: Gamification 10 Years Later
codingconduct
0
2.2k
Transcript
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.