This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 23298 - dialog::backdrop should be visible by default
Summary: dialog::backdrop should be visible by default
Status: RESOLVED FIXED
Alias: None
Product: WHATWG
Classification: Unclassified
Component: HTML (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: Unsorted
Assignee: Ian 'Hixie' Hickson
QA Contact: contributor
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 23401
  Show dependency treegraph
 
Reported: 2013-09-19 20:57 UTC by Matt Falkenhagen
Modified: 2013-09-30 18:47 UTC (History)
3 users (show)

See Also:


Attachments

Description Matt Falkenhagen 2013-09-19 20:57:40 UTC
The suggested UA style sheet[1] has:
  dialog::backdrop { background: rgba(0,0,0,0.1); }

So by default, the backdrop has height and width 0. I suspect most use cases of a modal dialog want a visible backdrop. Those authors will have to add something like:
  dialog::backdrop { position: fixed; top: 0; bottom: 0; left: 0; right: 0; }
which is a bit cumbersome.

How about adding such style to the suggested style sheet?

[1] http://www.whatwg.org/specs/web-apps/current-work/multipage/rendering.html#flow-content-1
Comment 1 Ian 'Hixie' Hickson 2013-09-23 19:44:10 UTC
That's taken care of in:
   http://fullscreen.spec.whatwg.org/#user-agent-level-style-sheet-defaults
Comment 2 Simon Pieters 2013-09-24 07:53:57 UTC
That sets styles for :fullscreen elements, which dialog generally isn't.
Comment 3 Ian 'Hixie' Hickson 2013-09-24 22:19:34 UTC
Ah, right. My bad.
Comment 4 contributor 2013-09-24 22:20:39 UTC
Checked in as WHATWG revision r8197.
Check-in comment: dialog::backdrop needs positioning, it isn't _that_ magical
http://html5.org/tools/web-apps-tracker?from=8196&to=8197