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

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