Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New sizing value stretch fails validation #271

Open
binury opened this issue Feb 13, 2024 · 1 comment
Open

New sizing value stretch fails validation #271

binury opened this issue Feb 13, 2024 · 1 comment

Comments

@binury
Copy link

binury commented Feb 13, 2024

Amended syntax

  syntax: auto | <length> | <percentage> | min-content | max-content | fit-content | fit-content( <length-percentage> ) | stretch | contain

Source - https://drafts.csswg.org/css-sizing-4/#sizing-values

MDN - https://developer.mozilla.org/en-US/docs/Web/CSS/height#browser_compatibility

@binury
Copy link
Author

binury commented Feb 13, 2024

It seems like this should have been added here 36a2a6d
and the current version of the file retains the stretch rule exception as well

csstree/data/patch.json

Lines 330 to 332 in 36a2a6d

"height": {
"syntax": "| stretch | <-non-standard-size>"
},

but the validator will not accept stretch 🤔

Unique properties: 0
Unique declarations: 4 (total: 6)
  ✓ Valid:   3 (75.00%)
  ✗ Invalid: 1 (25.00%)
      1 × Mismatch
Mismatch × 3
  syntax: auto | <length> | <percentage> | min-content | max-content | fit-content | fit-content( <length-percentage> )
  height: stretch
  --------^

edit: I suppose it is possible that this is due to an outdated version of csstree being used but admittedly at the time of op I was not able to confirm the versions used

@binury binury changed the title New sizing values: stretch ("fill-available") || contain New sizing value stretch fails validation Feb 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant