W3C home > Mailing lists > Public > www-style@w3.org > May 2014

Would be useful to have a pseudo-class to select modal dialogs

From: Ian Hickson <ian@hixie.ch>
Date: Tue, 6 May 2014 22:30:02 +0000 (UTC)
To: www-style@w3.org
Message-ID: <alpine.DEB.2.00.1405062225160.11736@ps20323.dreamhostps.com>

Hello,

The new <dialog> element in HTML can be triggered in two different ways, 
one of which results in a modal dialog, and one of which results in a 
non-modal dialog. For modal dialogs, we want slightly different styles, 
e.g. fading out the background, or taking up the whole screen when the 
viewport is narrow. To that end, it would be useful to have a pseudo-class 
that matches modal dialogs specifically, e.g.: dialog:modal { ... }

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Tuesday, 6 May 2014 22:30:30 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:51:26 UTC