Inspect HTML5 date picker shadow DOM

自闭症网瘾萝莉.ら 提交于 2019-12-04 22:28:26

Looks like the actual picker is loaded in an entirely different layer (basically a different window without the titlebar). So I guess the answer is: no, you can't.

I agree it would be great to be able to customize it. And similar popups too. Mozilla in XUL has display:popup which is used by context menus, flyout and similar things. Would be definitely great being able to use that in userland content too.

The calendar popup of Google Chrome is not in Shadow DOM. It's in a separated page mapped to a popup window. See WebPagePopupImpl.cpp

And the popup content is written by HTML/JavaScript.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!