Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(15)

Issue 974783002: Match the Fullscreen spec's CSS as far as currently practical (Closed)

Created:
5 years, 9 months ago by philipj_slow
Modified:
5 years, 9 months ago
CC:
darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-css, dglazkov+blink, ed+blinkwatch_opera.com, rwlbuis
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Match the Fullscreen spec's CSS as far as currently practical This change was prompted by the "Fullscreen API bug fixes" blink-dev thread started by Ali Alabbas at Microsoft: https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/f-V2GWatXkA This is very similar to, and borrows from, the in-progress review to move Fullscreen to the top layer system: https://codereview.chromium.org/788073004/ With this change, any fullscreen element (except :root) will have style applied that makes match the screen size, where previously this was only done for iframe and video. This will cause a re-layout of those elements when entering and exiting fullscreen, with the side effect that the full-screen-render-inline.html test now works. While the bug does not reproduce now, the underlying cause has not been fixed, the move to top layer is probably the best cure. iframe:-webkit-full-screen { border: none; } was previously !important, but isn't in the spec. This is the cause of the changed test expectations for full-screen-iframe-zIndex.html. The flex:1 and display:block rules for audio and video originate from a Vimeo fullscreen bug: https://bugs.webkit.org/show_bug.cgi?id=58291 With the size and position of the fullscreen element forced to match the viewport by the UA style sheet, neither of these rules should have any observable effect, so they are removed. BUG=402378, 246077 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=191409

Patch Set 1 #

Patch Set 2 : tests #

Total comments: 29

Patch Set 3 : address feedback #

Total comments: 8

Patch Set 4 : drop flex rule and tweak tests #

Total comments: 2

Patch Set 5 : disambiguate Fullscreen UA style sheet #

Unified diffs Side-by-side diffs Delta from patch set Stats (+199 lines, -50 lines) Patch
M LayoutTests/fullscreen/enter-exit-full-screen-hover.html View 2 chunks +9 lines, -1 line 0 comments Download
M LayoutTests/fullscreen/full-screen-iframe-zIndex.html View 1 2 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fullscreen/full-screen-iframe-zIndex-expected.html View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/fullscreen/full-screen-render-inline-expected.html View 1 chunk +1 line, -2 lines 0 comments Download
M LayoutTests/fullscreen/full-screen-zIndex-expected.html View 1 chunk +5 lines, -6 lines 0 comments Download
M LayoutTests/fullscreen/parent-flow-inline-with-block-child-expected.html View 1 chunk +2 lines, -2 lines 0 comments Download
A LayoutTests/fullscreen/rendering/ua-style-iframe-border.html View 1 2 3 1 chunk +25 lines, -0 lines 0 comments Download
A LayoutTests/fullscreen/rendering/ua-style-override.html View 1 2 3 4 1 chunk +59 lines, -0 lines 0 comments Download
A LayoutTests/fullscreen/rendering/ua-style-root.html View 1 2 3 4 1 chunk +49 lines, -0 lines 0 comments Download
M Source/core/css/fullscreen.css View 1 2 3 2 chunks +47 lines, -38 lines 0 comments Download

Messages

Total messages: 17 (3 generated)
philipj_slow
tests
5 years, 9 months ago (2015-03-03 17:31:32 UTC) #1
philipj_slow
PTAL
5 years, 9 months ago (2015-03-03 17:39:26 UTC) #3
Julien - ping for review
https://codereview.chromium.org/974783002/diff/20001/LayoutTests/fullscreen/full-screen-render-inline-expected.html File LayoutTests/fullscreen/full-screen-render-inline-expected.html (left): https://codereview.chromium.org/974783002/diff/20001/LayoutTests/fullscreen/full-screen-render-inline-expected.html#oldcode2 LayoutTests/fullscreen/full-screen-render-inline-expected.html:2: <!-- FIXME: the <br> is needed until http://crbug.com/246077 is ...
5 years, 9 months ago (2015-03-04 01:07:38 UTC) #4
philipj_slow
address feedback
5 years, 9 months ago (2015-03-04 07:14:10 UTC) #5
philipj_slow
Thanks for the detailed feedback, Julien! There are a few issues left to discuss in ...
5 years, 9 months ago (2015-03-04 07:15:29 UTC) #6
philipj_slow
https://codereview.chromium.org/974783002/diff/40001/Source/core/css/fullscreen.css File Source/core/css/fullscreen.css (right): https://codereview.chromium.org/974783002/diff/40001/Source/core/css/fullscreen.css#newcode27 Source/core/css/fullscreen.css:27: border: none; This is a change from before, it ...
5 years, 9 months ago (2015-03-04 07:20:51 UTC) #7
Julien - ping for review
https://codereview.chromium.org/974783002/diff/20001/LayoutTests/fullscreen/rendering/style-defaults-iframe.html File LayoutTests/fullscreen/rendering/style-defaults-iframe.html (right): https://codereview.chromium.org/974783002/diff/20001/LayoutTests/fullscreen/rendering/style-defaults-iframe.html#newcode2 LayoutTests/fullscreen/rendering/style-defaults-iframe.html:2: <title>User-agent level style sheet defaults for an iframe</title> On ...
5 years, 9 months ago (2015-03-04 17:50:23 UTC) #8
philipj_slow
drop flex rule and tweak tests
5 years, 9 months ago (2015-03-05 03:58:03 UTC) #9
philipj_slow
Thanks again Julien, I hope you can sift through the back-and-forth changes and that everything ...
5 years, 9 months ago (2015-03-05 04:05:06 UTC) #10
Julien - ping for review
lgtm https://codereview.chromium.org/974783002/diff/20001/LayoutTests/fullscreen/rendering/style-defaults-iframe.html File LayoutTests/fullscreen/rendering/style-defaults-iframe.html (right): https://codereview.chromium.org/974783002/diff/20001/LayoutTests/fullscreen/rendering/style-defaults-iframe.html#newcode2 LayoutTests/fullscreen/rendering/style-defaults-iframe.html:2: <title>User-agent level style sheet defaults for an iframe</title> ...
5 years, 9 months ago (2015-03-05 18:19:03 UTC) #11
philipj_slow
disambiguate Fullscreen UA style sheet
5 years, 9 months ago (2015-03-06 02:31:11 UTC) #12
philipj_slow
Thanks Julien, landing now and bracing for regressions :) https://codereview.chromium.org/974783002/diff/20001/LayoutTests/fullscreen/rendering/style-defaults-iframe.html File LayoutTests/fullscreen/rendering/style-defaults-iframe.html (right): https://codereview.chromium.org/974783002/diff/20001/LayoutTests/fullscreen/rendering/style-defaults-iframe.html#newcode2 LayoutTests/fullscreen/rendering/style-defaults-iframe.html:2: ...
5 years, 9 months ago (2015-03-06 02:43:40 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/974783002/80001
5 years, 9 months ago (2015-03-06 02:44:18 UTC) #16
commit-bot: I haz the power
5 years, 9 months ago (2015-03-06 04:20:06 UTC) #17
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=191409

Powered by Google App Engine
This is Rietveld 408576698