react / react/yoga

Support `Start` and `End` alignment keywords

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

Nobody has claimed this yet.

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

Description

Report

CSS defines both start/end and flex-start/flex-end alignment keywords. The difference is that the flex-* versions are affected by both direction and flex-direction whereas the other versions ignore flex-direction.

Yoga only has FlexStart and FlexEnd variants in it's Align and Justify enums, and this issue is a request for Start and End to be added (and also to check that Yoga's FlexStart and FlexEnd do actually correspond to flex-start and flex-end semantics).

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 with Yoga's Align and Justify enums and trace how FlexStart and FlexEnd are resolved against direction and flex-direction. Compare that behavior with CSS start/end versus flex-start/flex-end, then consider the work complete when Start and End variants have the requested semantics and existing Flex* behavior has been verified.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, css
Domain
frontend, web-dev
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.