<?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>27931</bug_id>
          
          <creation_ts>2015-01-30 14:27:35 +0000</creation_ts>
          <short_desc>Override &apos;flex&apos; and &apos;transform&apos; styling</short_desc>
          <delta_ts>2015-03-17 09:45:17 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebAppsWG</product>
          <component>Fullscreen</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>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Anne">annevk</reporter>
          <assigned_to name="Anne">annevk</assigned_to>
          <cc>falken</cc>
    
    <cc>jackalmage</cc>
    
    <cc>mike</cc>
    
    <cc>philipj</cc>
    
    <cc>public-webapps</cc>
    
    <cc>roc</cc>
    
    <cc>zcorpan</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>117620</commentid>
    <comment_count>0</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2015-01-30 14:27:35 +0000</bug_when>
    <thetext>The conclusion from https://lists.w3.org/Archives/Public/www-style/2014Nov/thread.html#msg287 seems to be that the rendering section should override &apos;flex&apos; and &apos;transform&apos;. Presumably as follows:

  *|*:not(:root):fullscreen {
    flex:none !important;
    transform:none !important;
  }

If anyone disagrees with this now would be a good time to speak up.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>117626</commentid>
    <comment_count>1</comment_count>
    <who name="Philip Jägenstedt">philipj</who>
    <bug_when>2015-01-30 17:22:20 +0000</bug_when>
    <thetext>Sounds great, one less non-standard thing about Chromium&apos;s fullscreen support to worry about!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>117627</commentid>
    <comment_count>2</comment_count>
    <who name="Philip Jägenstedt">philipj</who>
    <bug_when>2015-01-30 17:23:17 +0000</bug_when>
    <thetext>https://code.google.com/p/chromium/codesearch#chromium/src/third_party/WebKit/Source/core/css/fullscreen.css</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>117629</commentid>
    <comment_count>3</comment_count>
    <who name="Philip Jägenstedt">philipj</who>
    <bug_when>2015-01-30 17:36:48 +0000</bug_when>
    <thetext>So apparently Blink/WebKit have flex:1 !important, from this change:
https://trac.webkit.org/changeset/83654

flex:none means 0 0 auto says http://dev.w3.org/csswg/css-flexbox/#flex-property

I can&apos;t tell from the WebKit bug &lt;https://bugs.webkit.org/show_bug.cgi?id=58291&gt; what the original problematic CSS was.

When does flex:1 and flex:none result in different rendering? /me is clueless</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>117858</commentid>
    <comment_count>4</comment_count>
    <who name="Philip Jägenstedt">philipj</who>
    <bug_when>2015-02-12 08:51:55 +0000</bug_when>
    <thetext>I&apos;ve asked Tab to clue us in about flexbox.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>118243</commentid>
    <comment_count>5</comment_count>
    <who name="Philip Jägenstedt">philipj</who>
    <bug_when>2015-03-03 07:09:08 +0000</bug_when>
    <thetext>No reply from Tab. Here&apos;s a related Gecko bug:
https://bugzilla.mozilla.org/show_bug.cgi?id=1099052</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>118378</commentid>
    <comment_count>6</comment_count>
    <who name="Philip Jägenstedt">philipj</who>
    <bug_when>2015-03-06 02:47:56 +0000</bug_when>
    <thetext>In https://codereview.chromium.org/974783002/ I&apos;ve updated our style sheet to look more like the spec and came to the conclusion that the flex override doesn&apos;t matter when the  fullscreen element is forced to fill the viewport by other style.

What remains, although prefixed, is:

:not(:root):fullscreen {
    transform: none !important;
}

This should be uncontroversial, so make it so :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>118593</commentid>
    <comment_count>7</comment_count>
    <who name="Tab Atkins Jr.">jackalmage</who>
    <bug_when>2015-03-13 20:55:39 +0000</bug_when>
    <thetext>(In reply to Philip Jägenstedt from comment #5)
&gt; No reply from Tab. Here&apos;s a related Gecko bug:
&gt; https://bugzilla.mozilla.org/show_bug.cgi?id=1099052

Whoops, I missed that email because it came in while I was in Sydney; my email glut afterwards was horrific and still hasn&apos;t been fully processed.

The flex difference is because the fullscreen element is placed in an anonymous flexbox that fills the screen.  &quot;none&quot; means the element stays its natural size, while &quot;1&quot; means it&apos;ll stretch to fill the screen if possible (and importantly, *shrink* to fit in the screen if oversized).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>118602</commentid>
    <comment_count>8</comment_count>
    <who name="Philip Jägenstedt">philipj</who>
    <bug_when>2015-03-15 03:55:10 +0000</bug_when>
    <thetext>(In reply to Tab Atkins Jr. from comment #7)
&gt; (In reply to Philip Jägenstedt from comment #5)
&gt; &gt; No reply from Tab. Here&apos;s a related Gecko bug:
&gt; &gt; https://bugzilla.mozilla.org/show_bug.cgi?id=1099052
&gt; 
&gt; Whoops, I missed that email because it came in while I was in Sydney; my
&gt; email glut afterwards was horrific and still hasn&apos;t been fully processed.
&gt; 
&gt; The flex difference is because the fullscreen element is placed in an
&gt; anonymous flexbox that fills the screen.  &quot;none&quot; means the element stays its
&gt; natural size, while &quot;1&quot; means it&apos;ll stretch to fill the screen if possible
&gt; (and importantly, *shrink* to fit in the screen if oversized).

Does this matter when the fullscreen element is also has !important UA style sheet rules for top, right, bottom, left, width, min-width, max-width, height, min-height and max-height to make it fill the screen? In 10 minutes of tinkering I couldn&apos;t find a case where flex could have any influence, but I could very well be mistaken.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>118633</commentid>
    <comment_count>9</comment_count>
    <who name="Tab Atkins Jr.">jackalmage</who>
    <bug_when>2015-03-16 23:06:43 +0000</bug_when>
    <thetext>Oh, sorry, I was thinking of &lt;dialog&gt;, not fullscreen.

No, there shouldn&apos;t be any reason to mess with &apos;flex&apos; on a fullscreen element.  It&apos;s not a flex item (being fixpos guarantees that, even if it&apos;s a child of a flex container), so &apos;flex&apos; does nothing at all, regardless of what value it takes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>118641</commentid>
    <comment_count>10</comment_count>
    <who name="Philip Jägenstedt">philipj</who>
    <bug_when>2015-03-17 02:46:43 +0000</bug_when>
    <thetext>Awesome, thanks Tab!

Just to get things going: https://github.com/whatwg/fullscreen/pull/1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>118647</commentid>
    <comment_count>11</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2015-03-17 09:45:17 +0000</bug_when>
    <thetext>Thanks Philip!

https://github.com/whatwg/fullscreen/commit/a7d0ccf09c9ec01f987856dd9bc99e46a3f33fe2</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>