<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>23298</bug_id>
          
          <creation_ts>2013-09-19 20:57:40 +0000</creation_ts>
          <short_desc>dialog::backdrop should be visible by default</short_desc>
          <delta_ts>2013-09-30 18:47:34 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WHATWG</product>
          <component>HTML</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          
          <blocked>23401</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Matt Falkenhagen">falken</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>ian</cc>
    
    <cc>mike</cc>
    
    <cc>zcorpan</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>93582</commentid>
    <comment_count>0</comment_count>
    <who name="Matt Falkenhagen">falken</who>
    <bug_when>2013-09-19 20:57:40 +0000</bug_when>
    <thetext>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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93674</commentid>
    <comment_count>1</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-09-23 19:44:10 +0000</bug_when>
    <thetext>That&apos;s taken care of in:
   http://fullscreen.spec.whatwg.org/#user-agent-level-style-sheet-defaults</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93711</commentid>
    <comment_count>2</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2013-09-24 07:53:57 +0000</bug_when>
    <thetext>That sets styles for :fullscreen elements, which dialog generally isn&apos;t.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93752</commentid>
    <comment_count>3</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-09-24 22:19:34 +0000</bug_when>
    <thetext>Ah, right. My bad.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93753</commentid>
    <comment_count>4</comment_count>
    <who name="">contributor</who>
    <bug_when>2013-09-24 22:20:39 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r8197.
Check-in comment: dialog::backdrop needs positioning, it isn&apos;t _that_ magical
http://html5.org/tools/web-apps-tracker?from=8196&amp;to=8197</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>