Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SSR: CSS custom properties bug using v-bind #5443

Closed
jasonkellydk opened this issue Feb 17, 2022 · 2 comments
Closed

SSR: CSS custom properties bug using v-bind #5443

jasonkellydk opened this issue Feb 17, 2022 · 2 comments
Labels
🔨 p3-minor-bug Priority 3: this fixes a bug, but is an edge case that only affects very specific usage. scope: ssr

Comments

@jasonkellydk
Copy link

Version

3.2.31

Reproduction link

github.com

Steps to reproduce

  1. Npm run start

  2. Go to http://localhost:3000 see FOUT

2.a Alternatively see view-source:http://localhost:3000/ and watch the custom properties generated by v-bind

What is expected?

The custom property should have a valid syntax containing the "--" prefix

example of the problem: "7ba5bd90:250px";

What is actually happening?

the custom property would contain the required "--"

example of the solution: "--7ba5bd90:250px";


It happened while using server side rendering and noticing a flash of unstyled components

@simqifeng
Copy link

When will this bug be fixed, encountered the same problem

@yyx990803 yyx990803 added scope: ssr 🔨 p3-minor-bug Priority 3: this fixes a bug, but is an edge case that only affects very specific usage. labels May 13, 2022
@xiaoyongchen
Copy link

// template

// props
disabledColor: {
type: String,
default: "#86949e",
},

// css

.is-color-disabled {
font-weight: 600;
color: v-bind(disabledColor);
}

// result
color: var(--dc5f906c-disabledColor);

@github-actions github-actions bot locked and limited conversation to collaborators Sep 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🔨 p3-minor-bug Priority 3: this fixes a bug, but is an edge case that only affects very specific usage. scope: ssr
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants