Support voor calculated values
Open
Nobody has claimed this yet.
enhancement
good first issue
- Dominant language
- TypeScript
- Stars
- 1.5k
- Forks
- 331
- Avg merge
- 19h 52m
- Merged PRs (30d)
- 9
Description
I want to be able to pass calcs to the sizes attribute.
Example
sizes="100vw md:calc(100vw - 40px) 2xl:636px"
Looks like this is not possible at the moment, while this is possible on the native img element.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating how the sizes attribute is parsed and rendered by the Nuxt image module. Compare its behavior with the native img element, then verify that the example 100vw md:calc(100vw - 40px) 2xl:636px is accepted and emitted correctly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- nuxt, typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100