Skip to content

Commit 699c9f0

Browse files
committed
Merge branch 'main' of github.com:Auto-Explore/css_inspector
2 parents d122535 + 6f15faa commit 699c9f0

12 files changed

Lines changed: 2479 additions & 134 deletions

File tree

.github/workflows/rust.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Rust
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
env:
10+
CARGO_TERM_COLOR: always
11+
12+
jobs:
13+
build:
14+
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- uses: actions/checkout@v4
19+
- name: Build
20+
run: cargo build
21+
- name: Run tests
22+
run: cargo test

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ High-level checks (errors unless noted):
4040
Configuration knobs:
4141

4242
- `profile`: selects the “known properties” set from `data/css_properties/*.properties`.
43+
- `profile=css4`: uses the CSS3 profile plus a small Level 4 property-name supplement
44+
(`data/css_properties/CSS4Properties.properties`). Details: `css4.md`.
4345
- `medium`: if set, warns if an `@media ... {` block doesn’t match the configured medium.
4446
- `warning`: numeric warning threshold; `0` is the default, and `-1` suppresses all warnings.
4547

@@ -53,6 +55,10 @@ Update them with:
5355

5456
`python3 scripts/update_css_properties_data.py`
5557

58+
Regenerate the `css4` supplement with:
59+
60+
`python3 scripts/generate_css4_properties_data.py`
61+
5662
## Regenerate manifest
5763

5864
`python3 scripts/extract_autotest_manifest.py > test_results/autotest_manifest.jsonl`

crates/css_inspector/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,5 @@ license.workspace = true
88
serde.workspace = true
99
thiserror.workspace = true
1010

11+
[dev-dependencies]
12+
serde_json.workspace = true

0 commit comments

Comments
 (0)