cssdiff
semantic css diff
install
pip install cssdiff
see css difference
cssdiff command is installed. using this command, be enable to see css difference.
adding detection
we have two files.
x-only.css
all.css
x-only.css include only about x element, all.css has about x and y.
$ cat data/x-only.css
x {
color: black;
display: none;
}
$ cat data/all.css
x {
color: black;
display: none;
}
y {
color: white;
display: none;
}
so, cssdiff answered, addition about y.
$ cssdiff data/x-only.css data/all.css
y {
+ color: white;
+ display: none;
}
changing detection
If x’s color is changed, cssdiff tell me that x’s color is changed.
$ cat data/x-color-changed.css
x {
color: white;
display: none;
}
y {
color: white;
display: none;
}
$ cssdiff data/all.css data/x-color-changed.css
x {
- color: black;
+ color: white;
}
semantic diff
below files are same meaning of all.css. so, no-difference.
$ cat data/all-separated.css
x {
color: black;
}
y {
color: white;
}
x {
display: none;
}
y {
display: none;
}
$ cssdiff data/all.css data/all-separated.css
$ cat data/all-squashed.css
x,
y{
display: none;
}
x {
color: black;
}
y {
color: white;
}
$ cssdiff data/all.css data/all-separated.css
$ cat data/all-conflicted.css
x {
color: white;
display: none;
}
y {
color: white;
display: none;
}
x {
color: black;
display: none;
}
y {
color: white;
display: none;
}
$ cssdiff data/all.css data/all-conflicted.css
appendix
extra.css has extra information. so, cssdiff notify it.
$ cat data/extra.css
x,
y,
a > b,
a + b{
display: none;
}
x {
color: black;
}
y {
color: white;
}
$ cssdiff data/all.css data/extra.css
a + b {
+ display: none;
}
a > b {
+ display: none;
}
Metadata
Release files for cssdiff 0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| cssdiff-0.1.tar.gz | 3.5 kB | Without provenance | Details for cssdiff-0.1.tar.gz |
Release files / cssdiff-0.1.tar.gz
| Download URL | cssdiff-0.1.tar.gz |
|---|---|
| Size | 3.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
991ea7bdf77d5db79adca1816247a3dcc5b09966106c75ddff1d9a80f5c3ceb0
|
|
BLAKE2b-256 checksum How to use checksums |
0f719386ff6f7d55e6d346110ae0c05a3bb622ff05f4a6b91eb7d4a77a28a414
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for cssdiff 0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.