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

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>131166</bug_id>
          
          <creation_ts>2014-04-03 09:09:04 -0700</creation_ts>
          <short_desc>:-webkit-full-screen fails when ancestor has float (and more css issues)</short_desc>
          <delta_ts>2026-03-12 05:23:25 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebCore Misc.</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.9</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=84798</see_also>
          <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="Guy">guymguym</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>997183</commentid>
    <comment_count>0</comment_count>
    <who name="Guy">guymguym</who>
    <bug_when>2014-04-03 09:09:04 -0700</bug_when>
    <thetext>Detected when using &lt;video&gt; inside these bootstrap classes - modal (fixed) &gt; container &gt; row &gt; col-md-X (float).
When switching the video to fullscreen it did not show well and the video itself was actually positioned below the visible area of the screen.

I looked at the css -
https://code.google.com/p/webkit-mirror/source/browse/Source/WebCore/css/fullscreen.css?name=master
and although I didn&apos;t fully understand why it uses static positioning (rather than fixed) these rules seemed incomplete.
My workaround was to add these custom css rules that fixed the display (though I&apos;m no expert if it has other side-effects).
It might be worth fixing somehow in the original webcore css.

/* make ancestors show fullscreen and cancel float */
:-webkit-full-screen-ancestor:not(iframe) {
	float: none !important;
	margin: 0 !important;
	padding: 0 !important;
	width: 100% !important;
	height: 100% !important;
}
/* hide fullscreen siblings */
:-webkit-full-screen-ancestor &gt; *:not(:-webkit-full-screen):not(:-webkit-full-screen-ancestor) {
	display: none !important;
}

Thanks,
Guy</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2189528</commentid>
    <comment_count>1</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2026-03-12 05:23:25 -0700</bug_when>
    <thetext>I think this code does not exist any more - https://github.com/WebKit/WebKit/blob/9b98e7877c9f60e802d132b982a1b0dc7935224e/Source/WebCore/css/fullscreen.css#L4

so might be N/A bug.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>