2ch.hk is displaying incorrectly
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:
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.
2ch.hk is displaying incorrectly
With Palemoon 28.14.0, a site 2ch.hk is displaying incorrectly.
How it is now (screenshot of 2ch.hk/bo)
How it should be:
Browser is running in "Safe mode".
How it is now (screenshot of 2ch.hk/bo)
How it should be:
Browser is running in "Safe mode".
You do not have the required permissions to view the files attached to this post.
-
- Pale Moon guru
- Posts: 37676
- Joined: 2011-08-28, 17:27
- Location: Motala, SE
Re: 2ch.hk is displaying incorrectly
According to the CSS this is exactly the way it should be displayed.
flexbox container,
header: flex 1 100% <-- this is a mistake, I'm sure they meant 1 0 100% if they wanted the header to fill the top space -- Since this doesn't parse it will default to auto
aside: flex 0 0 250px (fixed size 250 px)
main: flex 1 1 (= 1 1 auto, meaning fill the remaining space)
Result, 3 columns evenly spaced left/right with 250 px middle column.
If they'd fix their css mistake in the header, it will display as-expected. (which is not what you think "how it should be" because it's missing the "aside" column entirely)
flexbox container,
header: flex 1 100% <-- this is a mistake, I'm sure they meant 1 0 100% if they wanted the header to fill the top space -- Since this doesn't parse it will default to auto
aside: flex 0 0 250px (fixed size 250 px)
main: flex 1 1 (= 1 1 auto, meaning fill the remaining space)
Result, 3 columns evenly spaced left/right with 250 px middle column.
If they'd fix their css mistake in the header, it will display as-expected. (which is not what you think "how it should be" because it's missing the "aside" column entirely)
You do not have the required permissions to view the files attached to this post.
"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
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite
Re: 2ch.hk is displaying incorrectly
Sorry, but I still have some doubts about this issue because all other browsers render this page the same way as Pale Moon 28.13.0 and the layout became broken only after Issue #1647 (UXP) was landed. Isn't this a regression?
-
- Pale Moon guru
- Posts: 37676
- Joined: 2011-08-28, 17:27
- Location: Motala, SE
Re: 2ch.hk is displaying incorrectly
We didn't change the parsing of flex, at all. Not even touched anything near it.
"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
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite
Re: 2ch.hk is displaying incorrectly
I don't have an explanation of how exactly this affected, but sequential test builds clearly point to commits from Issue #1647 (UXP).
-
- Pale Moon guru
- Posts: 37676
- Joined: 2011-08-28, 17:27
- Location: Motala, SE
Re: 2ch.hk is displaying incorrectly
It -is- quite possible that the error was interpreted differently before the update. Being interpreted as flex 1 0 (=grow, don't shrink) before (because the percentage didn't serialize) and being interpreted as flex 1 1 (=grow or shrink) now (because it serialized to 100%=1)
@athenian200, layout/inspector/inDOMUtils.cpp Line 845, was that correct? or should that have been with fill/stroke above it? there's no opacity on grid keywords font weight or initial_letter, afaik, but there would be on fill/stroke, and that might influence flex?
@athenian200, layout/inspector/inDOMUtils.cpp Line 845, was that correct? or should that have been with fill/stroke above it? there's no opacity on grid keywords font weight or initial_letter, afaik, but there would be on fill/stroke, and that might influence flex?
"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
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite
-
- Contributing developer
- Posts: 1612
- Joined: 2018-10-28, 19:56
- Location: Georgia
Re: 2ch.hk is displaying incorrectly
Thank you for helping me find the issue with my code! Really wish I had noticed that before release, but better late than never.JustOff wrote: ↑2020-09-29, 20:58I don't have an explanation of how exactly this affected, but sequential test builds clearly point to commits from Issue #1647 (UXP).
Actually, that line shouldn't have been there at all. I was going out of my way to make sure VARIANT_OPACITY was parsed in all/most of the same cases VARIANT_NUMBER is because I didn't want my implementation to break unexpectedly by failing to allow percentages to serialize as numbers. However, it worked a little too well... I added it to so many places that it serialized a percentage as a number in a situation where it shouldn't, which kind of defeats the main point of having VARIANT_OPACITY rather than just adding a new case for VARIANT_NUMBER that accepts percentage tokens and converts them to numbers if serializing as a percentage isn't allowed (what you saw just now is precisely why I couldn't simply do it that way).Moonchild wrote: ↑2020-09-29, 21:00It -is- quite possible that the error was interpreted differently before the update. Being interpreted as flex 1 0 before (because the percentage didn't serialize) and being interpreted as flex 1 1 now (because it serialized to 100%=1)
@athenian200, layout/inspector/inDOMUtils.cpp Line 845, was that correct? or should that have been with fill/stroke above it? there's no opacity on grid keywords font weight or initial_letter, afaik, but there would be on fill/stroke, and that might influence flex?
It's actually kind of weird that this issue came up, though. You would think if a field didn't allow percentages, people wouldn't use percentages there, much less depend on the behavior that results from what they entered not being allowed. But the spec is the spec, and website authors apparently rely on it being EXACTLY what it is in all sorts of subtle/weird ways you wouldn't expect.
"The Athenians, however, represent the unity of these opposites; in them, mind or spirit has emerged from the Theban subjectivity without losing itself in the Spartan objectivity of ethical life. With the Athenians, the rights of the State and of the individual found as perfect a union as was possible at all at the level of the Greek spirit." -- Hegel's philosophy of Mind
-
- Pale Moon guru
- Posts: 37676
- Joined: 2011-08-28, 17:27
- Location: Motala, SE
Re: 2ch.hk is displaying incorrectly
I don't think they relied on it here, per se, but rather that they didn't notice their mistake because it happened to work in the way they intended
"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
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite
Re: 2ch.hk is displaying incorrectly
Which is the entire prpblem with coding for only one browser and the quirks of one engine being the so called reference implementation.
The spec is not the spec but Google's implementation, as always.
The spec is not the spec but Google's implementation, as always.
-
- Astronaut
- Posts: 670
- Joined: 2017-03-23, 19:56
Re: 2ch.hk is displaying incorrectly
Such like issue I reported here
viewtopic.php?f=29&t=25236&p=200514#p200514
viewtopic.php?f=29&t=25236&p=200514#p200514
Windows 10 pro /64 (version 1809)
PM last/64
PM last/64
-
- Board Warrior
- Posts: 1442
- Joined: 2019-05-20, 20:07
- Location: New England
Re: 2ch.hk is displaying incorrectly
Off-topic:
This ought to be raised in the antitrust probe (as a "and not to mention!" type comment), because on a practical level it means that anyone who actually tries to use a different browser from Chrome/Chromium [read: us. Pretty much just us nowadays] is made to leap through hoops to get many websites to work.New Tobin Paradigm wrote: ↑2020-10-01, 01:11The spec is not the spec but Google's implementation, as always.
-
- Pale Moon guru
- Posts: 37676
- Joined: 2011-08-28, 17:27
- Location: Motala, SE
Re: 2ch.hk is displaying incorrectly
Off-topic:
Trust me I've already raised this point in my communication with the DoJ.Tharthan wrote: ↑2020-10-01, 06:29This ought to be raised in the antitrust probe (as a "and not to mention!" type comment), because on a practical level it means that anyone who actually tries to use a different browser from Chrome/Chromium [read: us. Pretty much just us nowadays] is made to leap through hoops to get many websites to work.
"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
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite
-
- Pale Moon guru
- Posts: 37676
- Joined: 2011-08-28, 17:27
- Location: Motala, SE
Re: 2ch.hk is displaying incorrectly
This issue is resolved, will be in the next update. Still doesn't take away that 2ch.hk needs to fix their mistake 

"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
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite
Re: 2ch.hk is displaying incorrectly
I'm glad it was helpful. It's impressive how quickly you sorted things out after that.athenian200 wrote: ↑2020-09-30, 20:59Thank you for helping me find the issue with my code! Really wish I had noticed that before release, but better late than never.