Khan / Khan/live-editor

CSS numbers without units where units are necessary should cause a warning

Open
#418 3 comments 0 reactions 0 assignees View on GitHub
idea webpage
Dominant language
JavaScript
Stars
776
Forks
180
PR merge metrics
No merged PRs in 30d

Description

In this case `top` and `left` should have units after their values.

```
#greeting {
background: rgb(255, 255, 0);
border: 2px solid black;
font-family: "Comic Sans MS", fantasy;
padding: 5px;
width: 262px;
position: absolute;
top: 100;
left: 20;
z-index: 2;
}
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Use the CSS example in the issue as the acceptance case, focusing on the unitless `top: 100` and `left: 20` declarations. Trace the warning or validation entry point and verify that these declarations produce warnings while valid unit-bearing values and `z-index: 2` remain appropriate.

Written by the indexing model from the issue text.

Assessment

Tech stack
css
Domain
tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.