Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upMake inline elements work in fullscreen mode #24034
Conversation
|
r? @emilio I am not sure if this is the right fix. But this patch makes fullscreen mode work for video elements. |
|
This goes against https://fullscreen.spec.whatwg.org/#user-agent-level-style-sheet-defaults. Also, how does this even work when the video has a relatively-positioned ancestor? |
|
r? @emilio |
|
So I'm not a fan of this because this is just working around #19771. If we were to do this, I'd rather either:
|
| @@ -219,9 +220,10 @@ impl<'a, 'b: 'a> StyleAdjuster<'a, 'b> { | |||
| let display = self.style.get_box().clone_display(); | |||
| let blockified_display = display.equivalent_block_display(is_root); | |||
| if display != blockified_display { | |||
| let is_fullscreen = self.style.get_box()._servo_top_layer == InTopLayer::Top; | |||
This comment has been minimized.
This comment has been minimized.
|
@bors-servo try=wpt |
Make inline elements work in fullscreen mode - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #22358 <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/24034) <!-- Reviewable:end -->
|
r? @emilio |
|
This makes much more sense. Adding a test for this would be pretty nice. The test-case in #19771 should be trivially convertible into a reftest, test without Another request: Please double-check that the element actually remains fixed to the viewport, file a followup if not? And a final one: Please file a followup to cleanup / potentially remove the r=me with that and the comment addressed. Thank you! |
|
|
|
@bors-servo try=wpt |
Make inline elements work in fullscreen mode - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #22358 <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/24034) <!-- Reviewable:end -->
|
|
|
@bors-servo r=emilio |
|
|
Make inline elements work in fullscreen mode - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #22358 <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/24034) <!-- Reviewable:end -->
|
|
ferjm commentedAug 22, 2019
•
edited by SimonSapin
./mach build -ddoes not report any errors./mach test-tidydoes not report any errorsThis change is