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:
- Clear any current output
- Navigate or refresh the page in question
- Copy and paste Errors or seemingly relevant Warnings into a single [ code ] block.
-
back2themoon
- Knows the dark side

- Posts: 3306
- Joined: 2012-08-19, 20:32
Post
by back2themoon » 2026-07-03, 15:17
Example:
https://www.dagospia.com/media-gallery/ ... 46/2276276
Result:
Expected:
Error Console:
Error: [Exception... "Component returned failure code: 0x80004002 (NS_NOINTERFACE) [nsIWebProgress.DOMWindow]" nsresult: "0x80004002 (NS_NOINTERFACE)" location: "JS frame :: chrome://browser/content/browser.js :: onStateChange :: line 11162" data: no]
You do not have the required permissions to view the files attached to this post.
-
therube
- Board Warrior

- Posts: 1776
- Joined: 2018-06-08, 17:02
Post
by therube » 2026-07-03, 16:11
(I'll just confirm the issue.)
-
Kris_88
- Board Warrior

- Posts: 1195
- Joined: 2021-01-26, 11:18
Post
by Kris_88 » 2026-07-03, 17:10
The CSS aspect-ratio property does not work correctly.
Code: Select all
<a href="/media-gallery/alessandro-di-battista-515846/1909339" class="carousel-control right"><img src="https://static.dagospia.com/img/icons/circle-chevron-right.svg" alt=""></a>
.gallery .img-gallery-wrapper .carousel-control {
aspect-ratio: 1;
...
}
-
andyprough
- Forum staff

- Posts: 1574
- Joined: 2020-05-31, 04:33
Post
by andyprough » 2026-07-03, 21:42
This Modify HTTP Response filter seems to work:
Code: Select all
[
["www.dagospia.com",["/.*/",["</head>","<style id=\"pm-dagospia-carousel-fix\">.gallery .img-gallery-wrapper .carousel-control{width:32px!important;height:32px!important;aspect-ratio:auto!important}.gallery .img-gallery-wrapper .carousel-control img{width:32px!important;height:32px!important}</style></head>"]]],
["dagospia.com",["/.*/",["</head>","<style id=\"pm-dagospia-carousel-fix\">.gallery .img-gallery-wrapper .carousel-control{width:32px!important;height:32px!important;aspect-ratio:auto!important}.gallery .img-gallery-wrapper .carousel-control img{width:32px!important;height:32px!important}</style></head>"]]]
]
This is a temporary CSS override that replaces the site’s aspect-ratio: 1 sizing with explicit width/height fixes the problem.
You do not have the required permissions to view the files attached to this post.
-
Moonchild
- Project founder

- Posts: 39633
- Joined: 2011-08-28, 17:27
- Location: Sweden
Post
by Moonchild » 2026-07-04, 02:04
Question: How is "1" a valid aspect ratio? It's not a ratio if you only have a single value.
"Sales hates anything that can't be turned into a confident sentence." - anonymous warehouse worker
"Why debate someone you fundamentally don't trust?" - Dario Amodei
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite
-
andyprough
- Forum staff

- Posts: 1574
- Joined: 2020-05-31, 04:33
Post
by andyprough » 2026-07-04, 02:27
Moonchild wrote: ↑2026-07-04, 02:04
Question: How is "1" a valid aspect ratio? It's not a ratio if you only have a single value.
Here's the MDN on it:
The <ratio> is the ratio of the width and height, in that order. It is represented by two positive <number> values separated by a forward slash (/) or a single <number>. When a single number is used, it is the same as writing the ratio as <number> / 1, which is also the width divided by the height.
So I guess 1 is an aspect ratio of 1/1 in CSS terms?
-
Moonchild
- Project founder

- Posts: 39633
- Joined: 2011-08-28, 17:27
- Location: Sweden
Post
by Moonchild » 2026-07-04, 02:57
andyprough wrote: ↑2026-07-04, 02:27
So I guess 1 is an aspect ratio of 1/1 in CSS terms?
Why even use it, in that case?
"Sales hates anything that can't be turned into a confident sentence." - anonymous warehouse worker
"Why debate someone you fundamentally don't trust?" - Dario Amodei
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite
-
andyprough
- Forum staff

- Posts: 1574
- Joined: 2020-05-31, 04:33
Post
by andyprough » 2026-07-04, 03:48
Moonchild wrote: ↑2026-07-04, 02:57
Why even use it, in that case?
I don't know, I was going through this with AI step by step and trying to learn what I could from reading the MDN source documents, and it resulted in a workable Modify HTTPS Response filter, but I don't know why CSS aspect ratio is the way that it is. I think that is something you would be the expert in.
Does that answer your question to me, or were you asking a different question?
-
back2themoon
- Knows the dark side

- Posts: 3306
- Joined: 2012-08-19, 20:32
Post
by back2themoon » 2026-07-04, 03:57
Thanks all for the help. Got an emergency and will probably be away for a while
-
Goodydino
- Keeps coming back

- Posts: 980
- Joined: 2017-10-10, 21:20
Post
by Goodydino » 2026-07-04, 20:43
What is the yellow overlay over the top picture?
-
adoxa
- Astronaut

- Posts: 668
- Joined: 2019-03-16, 13:26
- Location: Qld, Aus.
Post
by adoxa » 2026-07-05, 01:34
Kris was right - it seems
aspect-ratio on the
a is not applied correctly; here's a userstyle to fix it.
Code: Select all
@-moz-document domain("www.dagospia.com") {
.carousel-control {
aspect-ratio: unset !important;
}
}
According to Firefox the other images should also be square - width 100%, aspect-ratio 1, thus height should be the same as width.