www.y8.com vs Flash Player and CSS width/height mess Topic is solved

For support with specific websites

Moderator: trava90

Forum rules
Please always mention the name/domain of the website in question in your topic title.
Please one website per topic thread (to help keep things organized). While behavior on different sites might at first glance seem similar, they are not necessarily caused by the same.

Please try to include any relevant output from the Toolkit Error Console or the Developer Tools Web Console using the following procedure:
  1. Clear any current output
  2. Navigate or refresh the page in question
  3. Copy and paste Errors or seemingly relevant Warnings into a single [ code ] block.
User avatar
UCyborg
Lunatic
Lunatic
Posts: 380
Joined: 2019-01-10, 09:37
Location: Slovenia

www.y8.com vs Flash Player and CSS width/height mess

Post by UCyborg » 2025-07-05, 10:46

I figured out I can easily block Ruffle on this site so Flash Player is used with Flash games using the following filter in uBlock:

Code: Select all

||unpkg.com/@ruffle-rs/*$script
But I can't figure out how to make the game container the normal size. I can manually uncheck width and height in the huge selector that is visible when inspecting the embed element with SWF file.

Image

But a permanent solution copying the huge selector to user CSS and unsetting width and height doesn't produce the same effect (eg.: height: unset !important;).

I've seen this mess with the stupid web app at work where I also unset width: 100% and height: 100% on the menu bar element in order for it to not go bonkers with size on Pale Moon. If I had access to source code or 99% people on this rotten planet weren't NPCs you can't reason with, those useless directives would be gone already.

Example URL on Y8: https://www.y8.com/games/crush_the_castle_2
Last edited by UCyborg on 2025-07-05, 12:38, edited 1 time in total.

User avatar
MasterSlenderTR
Apollo supporter
Apollo supporter
Posts: 43
Joined: 2025-05-10, 13:37
Location: Turkey

Re: www.y8.com vs Flash Player and CSS width/height mess

Post by MasterSlenderTR » 2025-07-05, 11:09

There used to be an extension that forced all Ruffle content to use Flash Player but sadly it no longer works.
You do not have the required permissions to view the files attached to this post.
RTX 3060 Ti | Ryzen 7 5700x3d | ASUS Prime B450M-A II | 48GB DDR4 RAM | Windows 7

Image -> Desktop Setup <-

User avatar
UCyborg
Lunatic
Lunatic
Posts: 380
Joined: 2019-01-10, 09:37
Location: Slovenia

Re: www.y8.com vs Flash Player and CSS width/height mess

Post by UCyborg » 2025-07-05, 12:36

I'm not too concerned about Flash. I'm more concerned about that it should normally look like this:

Image

While it looks like this:

Image

It's not the first time I see this bullshit where CSS directives width/height set to 100% cause issues. I don't know if it's a bug in the browser or badly written CSS, but if former, resolution could be helpful in more places.

User avatar
adoxa
Lunatic
Lunatic
Posts: 437
Joined: 2019-03-16, 13:26
Location: Qld, Aus.

Re: www.y8.com vs Flash Player and CSS width/height mess

Post by adoxa » 2025-07-06, 02:28

It's another missing aspect-ratio issue; try this userstyle:

Code: Select all

@-moz-document domain("www.y8.com") {
  .item-direct-container {
    height: 100vh !important;
    width: calc((100vh - 95px) * 8/5) !important;
  }
}
That's intended for max-height (what I have, and appears to be what you have); for others wanting to try this where they get the full height:

Code: Select all

@-moz-document domain("www.y8.com") {
  .item-direct-container {
    height: calc((100vw - 345px) * 5/8) !important;
  }
}

User avatar
UCyborg
Lunatic
Lunatic
Posts: 380
Joined: 2019-01-10, 09:37
Location: Slovenia

Re: www.y8.com vs Flash Player and CSS width/height mess

Post by UCyborg » 2025-07-06, 10:51

That works great! Full height is intended appearance I think, judging by how it looks in Firefox with Ruffle.