less / less/less-docs

Overview > Operations > Conversion is impossible example giving different results

Open
#555 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Less
Stars
680
Forks
442
PR merge metrics
No merged PRs in 30d

Description

@incompatible-units: 2 + 5px - 3cm; // result is 4px

The docs state that the result is 4 px ( 2 + 5 = 7px minus cm ignored gives (7px - 3cm = 4px)). However, the result is different. For example,
p {
margin-left: 2 + 5px - 3cm;
}

According to the docs, the left margin must be 4px that is the paragraph content must be moved 4px to the right. However, the observed behaviour is: Paragraph content is moved 7px to the right and then 3cm to the left.

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 at the “Overview > Operations > Conversion” documentation section and reproduce the 2 + 5px - 3cm example shown in the issue. Compare the documented 4px result with the observed output, then update the documentation or clarify the example so the stated behavior matches the verified result.

Written by the indexing model from the issue text.

Assessment

Domain
documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.