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
Mu-An Chiou
July 19, 2018
Technology
370
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
160
Having no patience(Japanese)
muan
1
400
JSDC
muan
2
560
Design with Code
muan
5
570
Having no patience
muan
1
320
Design in GitHub
muan
5
380
Project Lab Squirrel #2
muan
1
670
Project Lab Squirrel #1
muan
8
890
A girl with no patience
muan
18
2k
Other Decks in Technology
See All in Technology
名刺メーカーDevグループ 紹介資料
sansan33
PRO
0
1.1k
扱える不確実性を増やしていく - スタートアップEMが考える「任せ方」
kadoppe
0
300
AI와 협업하는 조직으로의 여정
arawn
0
420
Eight Engineering Unit 紹介資料
sansan33
PRO
3
7.3k
AWS Agent Registry の基礎・概要を理解する/aws-agent-registry-intro
ren8k
3
380
AI バイブコーティングでキーボード不要?!
samakada
0
570
ハーネスエンジニアリングをやりすぎた話 ~そのハーネスは解体された~
gotalab555
4
1.7k
[最強DB講義]推薦システム | 基礎編
recsyslab
PRO
1
170
No Types Needed, Just Callable Method Check
dak2
1
1.2k
生成AIが変える SaaS の競争原理と弁護士ドットコムのプロダクト戦略
bengo4com
0
710
20260428_Product Management Summit_Loglass_JoeHirose
loglassjoe
0
1.1k
Digitization部 紹介資料
sansan33
PRO
1
7.3k
Featured
See All Featured
What does AI have to do with Human Rights?
axbom
PRO
1
2.1k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
32
2.8k
The Director’s Chair: Orchestrating AI for Truly Effective Learning
tmiket
1
150
We Have a Design System, Now What?
morganepeng
55
8.1k
Paper Plane (Part 1)
katiecoart
PRO
0
6.7k
Music & Morning Musume
bryan
47
7.2k
Rebuilding a faster, lazier Slack
samanthasiow
85
9.5k
Build your cross-platform service in a week with App Engine
jlugia
234
18k
Mind Mapping
helmedeiros
PRO
1
150
How To Speak Unicorn (iThemes Webinar)
marktimemedia
1
440
Beyond borders and beyond the search box: How to win the global "messy middle" with AI-driven SEO
davidcarrasco
3
110
What Being in a Rock Band Can Teach Us About Real World SEO
427marketing
0
220
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.