politico.eu - rendering issue?

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
back2themoon
Moon Magic practitioner
Moon Magic practitioner
Posts: 2815
Joined: 2012-08-19, 20:32

politico.eu - rendering issue?

Unread post by back2themoon » 2025-03-19, 17:25

https://www.politico.eu/

A huge EU flag appears (various sizes) on top of the main page and most (all?) articles.
EU error.png
Error Console:
EU error console.png
You do not have the required permissions to view the files attached to this post.

User avatar
THX-1139
Lunatic
Lunatic
Posts: 475
Joined: 2019-06-13, 13:42
Location: In a place with no YT

Re: politico.eu - rendering issue?

Unread post by THX-1139 » 2025-03-19, 19:58

After that it sent me to a "We value your privacy" popup to sign over my user data to them (for their snooping) in order to continue.
it did give a choice of continuing without agreeing, but it I could not find a continue without agreeing in that page, just more of "Agree"
Pale Moon 33.5.0. (64) Win7 pro (64) Intel Core i5-3570 3.4GHz-16 GB DDR3

"The biggest joke on mankind is that computers have started asking humans to prove they're not a robot."

"Man needs difficulties; they are necessary for health." ~Carl Jung

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 37379
Joined: 2011-08-28, 17:27
Location: Motala, SE

Re: politico.eu - rendering issue?

Unread post by Moonchild » 2025-03-19, 20:50

My thoughts based on the error messages shown:
If their embed-min.js fails to load because they are providing the wrong MIME type for it as well as not allowing the browser to sniff/guess its correct MIME type, then essential JS functions are likely not loading for it. They should address that first.
"A dead end street is a place to turn around and go into a new direction" - Anonymous
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

Kris_88
Board Warrior
Board Warrior
Posts: 1072
Joined: 2021-01-26, 11:18

Re: politico.eu - rendering issue?

Unread post by Kris_88 » 2025-03-19, 22:20

The problem is the SVG image inside the "EUROPE" button.

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

Re: politico.eu - rendering issue?

Unread post by adoxa » 2025-03-20, 01:33

It wants aspect-ratio; here's a userstyle workaround.

Code: Select all

@-moz-document domain("www.politico.eu") {
  svg {
    width: 1.5em !important;
  }
  .navigation-mini__menu-list .navigation-mini__menu-item-icon {
    width: 1em !important;
  }
  .header__edition-nav .navigation-mini__toggle.is-button.has-inline-icon .button__icon-secondary,
  .header__edition-nav-alt .navigation-mini__toggle.is-button.has-inline-icon .button__icon-secondary {
    width: 1em !important;
  }
  .content-header-new__title .content-header-new__title-icon {
    width: var(--wp--custom--spacing--6);
  }
  .content-header-new__title .content-header-new__title-icon--before {
    width: var(--content-header-icon-before-size);
  }
}

User avatar
back2themoon
Moon Magic practitioner
Moon Magic practitioner
Posts: 2815
Joined: 2012-08-19, 20:32

Re: politico.eu - rendering issue?

Unread post by back2themoon » 2025-03-20, 15:44

Thank you, adoxa. Workaround works fine. :thumbup: