Skip to content

css-syntax-patches-for-csstree #1466

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

Merged
merged 73 commits into from
Nov 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
73 commits
Select commit Hold shift + click to select a range
d2969e9
css-syntax-for-csstree
romainmenke Aug 24, 2024
dd7129f
wip
romainmenke Aug 25, 2024
ab8aae1
wip
romainmenke Aug 25, 2024
cc64314
wip
romainmenke Aug 26, 2024
5d03b1b
wip
romainmenke Aug 26, 2024
ff63b1c
wip
romainmenke Aug 27, 2024
d328f2c
wip
romainmenke Aug 27, 2024
e03c7e3
wip
romainmenke Aug 28, 2024
9d2d538
wip
romainmenke Aug 28, 2024
79f7a68
wip
romainmenke Aug 28, 2024
2d1766a
wip
romainmenke Aug 28, 2024
83aab5b
fix
romainmenke Aug 28, 2024
78f3de9
add community tests
romainmenke Aug 28, 2024
b51ac9a
add more community tests
romainmenke Aug 28, 2024
ae9f541
Merge branch 'main' into css-syntax-for-csstree--sincere-sponge-485d3…
romainmenke Aug 28, 2024
0c9a67c
wip
romainmenke Aug 29, 2024
26da1f2
wip
romainmenke Aug 31, 2024
69c60c7
update webref
romainmenke Aug 31, 2024
470cf91
wip
romainmenke Aug 31, 2024
bd711eb
fix clip
romainmenke Sep 1, 2024
9694f4c
wip
romainmenke Sep 1, 2024
d966fbb
legacy hsl
romainmenke Sep 1, 2024
53388e4
modern hsl
romainmenke Sep 1, 2024
013822b
omit some types
romainmenke Sep 1, 2024
82e6f8c
rgb
romainmenke Sep 1, 2024
df4895f
lch/lab/oklch/oklab
romainmenke Sep 1, 2024
e1d5eb6
more tests
romainmenke Sep 1, 2024
51dee62
device-cmyk
romainmenke Sep 1, 2024
a47c43b
finish color
romainmenke Sep 1, 2024
4433376
more color tests
romainmenke Sep 1, 2024
bb431e6
relative color keywords
romainmenke Sep 1, 2024
2abf170
some progress on animations
romainmenke Sep 1, 2024
38ebcf2
wip
romainmenke Sep 1, 2024
3bb6a67
latest webref
romainmenke Sep 12, 2024
f784ebd
wip
romainmenke Sep 12, 2024
d48fdca
wip
romainmenke Sep 15, 2024
772154a
Merge remote-tracking branch 'origin/main' into css-syntax-for-csstre…
romainmenke Sep 15, 2024
15338df
wip
romainmenke Sep 15, 2024
65e4cf1
wip
romainmenke Sep 15, 2024
68bce7b
fix
romainmenke Sep 15, 2024
21207a6
update
romainmenke Sep 15, 2024
8a567fb
Merge remote-tracking branch 'origin/main' into css-syntax-for-csstre…
romainmenke Sep 21, 2024
d346fe5
conic gradient
romainmenke Sep 21, 2024
4860624
consistent key length
romainmenke Sep 21, 2024
f8d375b
Merge remote-tracking branch 'origin/main' into css-syntax-for-csstre…
romainmenke Oct 10, 2024
3b694e9
update dependencies
romainmenke Oct 11, 2024
28dc4e9
fix
romainmenke Oct 11, 2024
9667cd7
fmt
romainmenke Oct 12, 2024
4b33c86
add some more patches
romainmenke Oct 12, 2024
c2e2288
wip
romainmenke Oct 12, 2024
c30f553
wip
romainmenke Oct 18, 2024
80a249e
Merge remote-tracking branch 'origin/main' into css-syntax-for-csstre…
romainmenke Oct 21, 2024
658d439
wip
romainmenke Oct 21, 2024
a0764b3
wip
romainmenke Oct 22, 2024
07acb1b
Merge remote-tracking branch 'origin/main' into css-syntax-for-csstre…
romainmenke Oct 24, 2024
d6efb13
wip
romainmenke Oct 24, 2024
5123986
Merge remote-tracking branch 'origin/main' into css-syntax-for-csstre…
romainmenke Oct 30, 2024
fb2f10b
anchors
romainmenke Oct 30, 2024
e5f59b2
wip
romainmenke Oct 30, 2024
c90548d
wip
romainmenke Oct 30, 2024
5b7f003
fix
romainmenke Oct 30, 2024
6f6a5e5
wip
romainmenke Oct 31, 2024
e1ebe06
wip
romainmenke Oct 31, 2024
e649159
wip
romainmenke Oct 31, 2024
3c32333
wip
romainmenke Oct 31, 2024
a02ec16
start work on atrule descriptors
romainmenke Oct 31, 2024
c9804b3
wip
romainmenke Nov 1, 2024
e3e148a
finish atrules
romainmenke Nov 1, 2024
4b2fa2d
docs
romainmenke Nov 1, 2024
f65c00c
split build and tests
romainmenke Nov 1, 2024
db8d2b2
wip
romainmenke Nov 1, 2024
e6cfbbd
finish tests
romainmenke Nov 1, 2024
ed2c7f3
labeler
romainmenke Nov 1, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,22 @@
- changed-files:
- any-glob-to-any-file:
- .github/**
- base-cli
- packages/base-cli/**
- packages/cascade-layer-name-parser/**
- packages/color-helpers/**
- packages/css-calc/**
- packages/css-color-parser/**
- packages/css-parser-algorithms/**
- packages/css-syntax-patches-for-csstree/**
- packages/css-tokenizer/**
- packages/generate-test-cases/**
- packages/media-query-list-parser/**
- packages/pack-test/**
- packages/postcss-tape/**
- packages/selector-resolve-nested/**
- packages/selector-specificity/**
- packages/utilities/**
- plugins/postcss-base-plugin/**
- plugins/postcss-debug-logger/**
- rollup/**
Expand Down
776 changes: 375 additions & 401 deletions package-lock.json

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions packages/css-syntax-patches-for-csstree/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Changes to CSS Syntax Patches For CSSTree

### Unreleased (patch)

- initial version
18 changes: 18 additions & 0 deletions packages/css-syntax-patches-for-csstree/LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
MIT No Attribution (MIT-0)

Copyright © CSSTools Contributors

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the “Software”), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
36 changes: 36 additions & 0 deletions packages/css-syntax-patches-for-csstree/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# CSS Syntax Patches For CSSTree

[<img alt="npm version" src="https://img.shields.io/npm/v/@csstools/css-syntax-patches-for-csstree.svg" height="20">][npm-url]
[<img alt="Build Status" src="https://github.com/csstools/postcss-plugins/workflows/test/badge.svg" height="20">][cli-url]

Path [csstree](https://github.com/csstree/csstree) syntax definitions with the latest data from CSS specifications.

## Usage

```bash
npm install @csstools/css-syntax-patches-for-csstree --save-dev
```

```js
import { fork } from 'css-tree-3.0.0';
import syntax_patches from '@csstools/css-syntax-patches-for-csstree' with { type: 'json' };

const forkedLexer = fork({
atrules: syntax_patches.next.atrules,
properties: syntax_patches.next.properties,
types: syntax_patches.next.types,
}).lexer;
```

## `next`

CSS specifications are often still in flux and various parts might change or disappear altogether.
Specifications also contains parts that haven't been implemented yet in a browser.
Only CSS that is widely adopted can be expected to be stable.

The `next` grouping contains a combination of what is currently valid in browsers and the progress in various specifications.

_In the future more groupings might be added._

[cli-url]: https://github.com/csstools/postcss-plugins/actions/workflows/test.yml?query=workflow/test
[npm-url]: https://www.npmjs.com/package/@csstools/css-syntax-patches-for-csstree
679 changes: 679 additions & 0 deletions packages/css-syntax-patches-for-csstree/dist/index.json

Large diffs are not rendered by default.

66 changes: 66 additions & 0 deletions packages/css-syntax-patches-for-csstree/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
{
"name": "@csstools/css-syntax-patches-for-csstree",
"description": "CSS syntax patches for CSS tree",
"version": "0.0.0",
"contributors": [
{
"name": "Antonio Laguna",
"email": "antonio@laguna.es",
"url": "https://antonio.laguna.es"
},
{
"name": "Romain Menke",
"email": "romainmenke@gmail.com"
}
],
"license": "MIT-0",
"funding": [
{
"type": "github",
"url": "https://github.com/sponsors/csstools"
},
{
"type": "opencollective",
"url": "https://opencollective.com/csstools"
}
],
"engines": {
"node": ">=18"
},
"main": "dist/index.json",
"files": [
"CHANGELOG.md",
"LICENSE.md",
"README.md",
"dist"
],
"peerDependencies": {
"postcss": "^8.4"
},
"devDependencies": {
"@webref/css": "^6.15.2",
"css-tree": "^2.3.1",
"css-tree-3.0.0": "npm:css-tree@~3.0.0"
},
"scripts": {
"build": "node ./scripts/index.mjs",
"lint": "node ../../.github/bin/format-package-json.mjs",
"prepublishOnly": "npm run build && npm run test",
"test": "node --test"
},
"homepage": "https://github.com/csstools/postcss-plugins/tree/main/packages/css-syntax-patches-for-csstree#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/csstools/postcss-plugins.git",
"directory": "packages/css-syntax-patches-for-csstree"
},
"bugs": "https://github.com/csstools/postcss-plugins/issues",
"keywords": [
"css",
"csstree",
"syntax"
],
"volta": {
"extends": "../../package.json"
}
}
Loading