therapia.gr - content missing 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
back2themoon
Moon Magic practitioner
Moon Magic practitioner
Posts: 2900
Joined: 2012-08-19, 20:32

therapia.gr - content missing

Post by back2themoon » 2025-03-26, 15:44

https://www.therapia.gr/ti-einai-to-penthos/

Scroll a bit down and you will see some fairly large blank spaces. Looks like some blocks of text are not getting loaded.

Error Console:
EC.png
You do not have the required permissions to view the files attached to this post.
Last edited by back2themoon on 2025-03-26, 16:19, edited 1 time in total.

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

Re: therapia.gr - content (text) missing

Post by Moonchild » 2025-03-26, 16:02

The text is there, but it's white-on-white. Using text selection it can be revealed.
Image1.png
it seems to be deliberate in the wp theme they use. Not sure why.

Code: Select all

                                    body.single-post > main > article section.curve:nth-of-type(even) {
                                        --color:var(--color6);
                                        --curve-top:url('https://therapia.gr/wp-content/themes/therapia-2022/assets/svg/edge-curve-color6.svg');
                                        --curve-bot:url('https://therapia.gr/wp-content/themes/therapia-2022/assets/svg/edge-curve-color6-flipped.svg');
                                        color: #FFF; /* var(--color2); */
                                    }
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

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

Re: therapia.gr - content (text) missing

Post by back2themoon » 2025-03-26, 16:12

Yes, you are right. I'm afraid selecting invisible text isn't really a solution. Forgot to mention that there is some colour stylisation in the pages that is missing:
Style.png
You do not have the required permissions to view the files attached to this post.

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

Re: therapia.gr - content missing

Post by Moonchild » 2025-03-26, 17:31

aha well that would explain the text being unreadable. They swapped colours to contrast with the background, but without the background it doesn't show up in a readable fashion.
The background is being created with some gradient trickery using a ton of in-line calc() inside the gradients which we likely don't yet support.
"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

Goodydino
Keeps coming back
Keeps coming back
Posts: 905
Joined: 2017-10-10, 21:20

Re: therapia.gr - content (text) missing

Post by Goodydino » 2025-03-26, 18:36

back2themoon wrote:
2025-03-26, 16:12
Yes, you are right. I'm afraid selecting invisible text isn't really a solution. Forgot to mention that there is some colour stylisation in the pages that is missing:

Style.png
They do not bother setting a background colour. Since I changed the default background, I saw the white text. I dislike white backgrounds.

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

Re: therapia.gr - content missing

Post by Moonchild » 2025-03-26, 18:38

Yeah but setting a solid background colour as fallback and for accessibility reasons is so 2010. :P
"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

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

Re: therapia.gr - content (text) missing

Post by back2themoon » 2025-03-26, 18:43

Goodydino wrote:
2025-03-26, 18:36
They do not bother setting a background colour. Since I changed the default background, I saw the white text.
Thanks. You reminded me that both text and background colour can be quickly changed with NoSquint. This makes the website essentially fully functional. No styling but I'll survive that.

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

Re: therapia.gr - content missing

Post by adoxa » 2025-03-27, 01:51

Double-position color stops are not supported in linear-gradient, here's a userstyle workaround.

Code: Select all

@-moz-document domain("www.therapia.gr") {
  .curve.top {
    background:
      var(--curve-top) no-repeat left top,
      linear-gradient(to bottom,
        transparent  0.0vw,
        transparent  3.8vw,
        var(--color) 3.8vw,
        var(--color) 100%
      )
      !important;
  }
  .curve.bot {
    background:
      linear-gradient(to bottom,
        var(--color) 0.0vw,
        var(--color) calc(100% - 3.8vw),
        transparent  calc(100% - 3.8vw),
        transparent 100%
      ),
      var(--curve-bot) no-repeat left bottom
      !important;
  }
  .curve.top.bot {
    background: 
      var(--curve-top) no-repeat left top,
      linear-gradient(to bottom,
        transparent 0,
        transparent 3.8vw,
        var(--color) 3.8vw,
        var(--color) calc(100% - 3.8vw),
        transparent calc(100% - 3.8vw),
        transparent 100%
      ),
      var(--curve-bot) no-repeat left bottom
      !important
  }
}

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

Re: therapia.gr - content missing

Post by Moonchild » 2025-03-27, 09:27

Double-position color stops are not supported in linear-gradient
wait... what? Don't tell me they went ahead and changed a very long standing gradient standard...

EDIT: I can't even find anything related to it in BZ to see what changed and why.
"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

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

Re: therapia.gr - content missing

Post by back2themoon » 2025-03-27, 14:27

adoxa wrote:
2025-03-27, 01:51
Double-position color stops are not supported in linear-gradient, here's a userstyle workaround.
Thank you adoxa, works fine. I don't know how you manage to make unsupported features work but hey, I won't complain. :)

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

Re: therapia.gr - content missing

Post by adoxa » 2025-03-28, 00:23

This one was easy, since "color stop1 stop2" is just shorthand for "color stop1, color stop2" (there's an example at MDN showing just that). Although there does seem to be a transitional line in UXP that isn't present in FF, so maybe it's not quite equivalent, or there's another issue at play.

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

Re: therapia.gr - content missing

Post by Moonchild » 2025-03-28, 01:37

I just don't get how they changed things there. color stops aren't limited to just two. the formal syntax is (still!):

Code: Select all

<linear-gradient-syntax> = 
  [ <angle> | <zero> | to <side-or-corner> ]? , <color-stop-list>  
  
<color-stop-list> = 
  <linear-color-stop> , [ <linear-color-hint>? , <linear-color-stop> ]#?  
# = The hash mark multiplier indicates that the entity may be repeated one or more times (for example, the plus multiplier), but each occurrence is separated by a comma (',').
? = The question mark multiplier indicates that the entity is optional, and must appear zero or one time.
[] = Brackets enclose several entities, combinators, and multipliers, then transform them as a single component. They are used to group components to bypass the precedence rules.
so the syntax ("color stop1 stop2" without commas) used would be incorrect according to that syntax, because commas are mandatory.
"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

User avatar
RealityRipple
Keeps coming back
Keeps coming back
Posts: 862
Joined: 2018-05-17, 02:34
Location: Los Berros Canyon, California

Re: therapia.gr - content missing

Post by RealityRipple » 2025-03-28, 02:24

They redefined a single <color-stop> to allow two positions:
A color stop with two positions is equivalent to specifying two color stops with the same color, one for each position.

Note: Usually, this results in a solid-color "stripe" between the two positions, but using a longer <color-interpolation-method> will instead create a "rainbow" between the two positions.
It's poorly written, tbh, and only says "two" without saying it can't be more than two.

User avatar
Shadow
Moon lover
Moon lover
Posts: 80
Joined: 2023-03-16, 13:21

Re: therapia.gr - content missing

Post by Shadow » 2025-03-28, 17:56

Moonchild wrote:
2025-03-27, 09:27
I can't even find anything related to it in BZ to see what changed and why.
It appears to be this one.

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

Re: therapia.gr - content missing

Post by Moonchild » 2025-03-28, 19:16

Shadow wrote:
2025-03-28, 17:56
Moonchild wrote:
2025-03-27, 09:27
I can't even find anything related to it in BZ to see what changed and why.
It appears to be this one.
Right. Well that's all Servo so that doesn't help us, but I already have a pretty decent idea how this can be done since it's effectively just appending another colour stop if a second position is present. It doesn't fundamentally change the way gradients are parsed.
I disagree with touching the long-established standard in the search of skim-work, though. (possibly another embrace & extend move by Google, here)
Filed Issue #2720 (UXP)
"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

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

Re: therapia.gr - content missing

Post by Moonchild » 2025-04-08, 20:21

User style workaround should no longer be necessary with 33.7.0
"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

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

Re: therapia.gr - content missing

Post by back2themoon » 2025-04-08, 20:34

Thanks for the fix/implementation, I did notice the release notes. Can't verify yet (SSE2) but I'm sure it is fine.