react / react/yoga

[Feature request] support vw&vh units

Open
#1,097 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Algorithm Feature Request
Dominant language
C++
Stars
18.9k
Forks
1.6k
Avg merge
1m
Merged PRs (30d)
1

Description

Now yoga only support auto percent and point units,
Can add support for vw and vh units ?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing Yoga's existing handling of auto, percent, and point units and identify how viewport dimensions would be supplied for vw and vh. Define the required API behavior and tests for resolving both units, then verify that existing unit handling remains unchanged.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.