No correct rendering in Material item

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
fmatz
New to the forum
New to the forum
Posts: 1
Joined: 2023-05-19, 15:49

No correct rendering in Material item

Unread post by fmatz » 2023-05-19, 16:01

Hi,

I am beginning with Vuetify & Material here: https://www.fmatz.com/Vuetify-Card-Work/chk_forms-poc.html

and if you click on an item there is white rendering in it.

Thanks, Fried

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

Re: No correct rendering in Material item

Unread post by Moonchild » 2023-05-19, 16:50

Works fine for me. Please make sure you're on the current, latest version (32.2.0)
Attachments
Image1.png
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"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
Kris_88
Keeps coming back
Keeps coming back
Posts: 937
Joined: 2021-01-26, 11:18

Re: No correct rendering in Material item

Unread post by Kris_88 » 2023-05-19, 17:44

Perhaps the problematic line is: "background-color: currentColor;"
Untitled.png
Untitled2.png

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

Re: No correct rendering in Material item

Unread post by Moonchild » 2023-05-19, 18:21

Ah I missed the clicking on it.
This is why exact steps to reproduce when reporting something is important ;)

Seems... both color and background-color are set to currentColor ...
I'm not sure if the first one even makes sense since you have a chicken and egg problem
The second one is definitely wrong because you're making the background the same as the text color with that line; meaning it will never show.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"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
Kris_88
Keeps coming back
Keeps coming back
Posts: 937
Joined: 2021-01-26, 11:18

Re: No correct rendering in Material item

Unread post by Kris_88 » 2023-05-19, 18:27

Moonchild wrote:
2023-05-19, 18:21
... both color and background-color are set to currentColor ...
MS Edge shows the correct picture, but it seems the background-color == color == white too.
There may be problem somewhere deeper... I don't know.

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

Re: No correct rendering in Material item

Unread post by Moonchild » 2023-05-19, 19:49

Kris_88 wrote:
2023-05-19, 18:27
MS Edge shows the correct picture, but it seems the background-color == color == white too.
That makes no sense. if they are both set to white, it should be white. So Blink is doing it wrong then?
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"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
Kris_88
Keeps coming back
Keeps coming back
Posts: 937
Joined: 2021-01-26, 11:18

Re: No correct rendering in Material item

Unread post by Kris_88 » 2023-05-19, 20:43

Moonchild wrote:
2023-05-19, 19:49
So Blink is doing it wrong then?
It is unlikely...

This div (.v-field__overlay) doesn't contain any text, it's just on top of the text. Yes, it's white on white, but there are some games with the opacity that are hard to track in the inspector...
Perhaps something does not work, like this:

Code: Select all

.v-field--variant-filled.v-field--focused .v-field__overlay {
  opacity: calc((0.04 + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier));
}

User avatar
Kris_88
Keeps coming back
Keeps coming back
Posts: 937
Joined: 2021-01-26, 11:18

Re: No correct rendering in Material item

Unread post by Kris_88 » 2023-05-20, 16:39

.v-field--variant-filled.v-field--focused .v-field__overlay {
opacity: calc((0.04 + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier));
}

Yes, the problem is in the "calc".
--v-focus-opacity == 0.12
--v-theme-overlay-multiplier == 1
so, the opacity == (0.04+0.12)*1 == 0.16
but it has a value of 1 instead.

dbsoft
Project Contributor
Project Contributor
Posts: 418
Joined: 2020-02-21, 17:35

Re: No correct rendering in Material item

Unread post by dbsoft » 2023-05-20, 18:29

Is this another instance where we don't handle calc()?

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

Re: No correct rendering in Material item

Unread post by Moonchild » 2023-05-20, 20:25

Well since Mozilla did all that stuff in Servo, we might not have it. There's no real easy record of which values are and are not accepting it right now because mozilla never documented exactly which they started supporting with servo aside from "we now support all of them the spec says we should". :P

See Issue #1826 (UXP)
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

Locked