Skip to content

Merge package:csslib #694

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 273 commits into from
Oct 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
273 commits
Select commit Hold shift + click to select a range
16e1848
Update versions before releasing.
sigmundch May 23, 2014
1de1c22
Make source map location information more readable.
nex3 May 27, 2014
b52fdae
Add .wasParsed() to ArgResults.
munificent Jul 17, 2014
61897da
Use source_span rather than source_maps in csslib.
nex3 Jul 30, 2014
222b18f
Fix csslib test failures on IE10.
nex3 Jul 30, 2014
b4d1ac6
Fix another csslib IE10 test failure.
nex3 Jul 30, 2014
4b5569e
Update my name in test data and comments.
nex3 Aug 1, 2014
56c0297
I was looking at the typo in 19178, and then the TODO in hexToInt. in…
srawlins Oct 13, 2014
83255b5
Initialize TokenizerBase int fields for better dart2js codegen.
rakudrama Oct 24, 2014
f07efc9
Use a constant instead of int.parse("0x10ffff")
rakudrama Oct 31, 2014
d24b3fa
Improve the speed and memory efficiency of csslib parsing.
nex3 Dec 3, 2014
3be23ba
Add gitignore, status, and codereview files.
nex3 Dec 19, 2014
b8259d9
Update the pubspec's homepage link.
nex3 Dec 19, 2014
5392493
Cleanup some ambiguous and incorrect types and disable a case that in…
jacob314 Feb 2, 2015
a03609e
formatting
kevmoo Mar 19, 2015
ae8f1cc
remove unused vars and fields
kevmoo Mar 19, 2015
4d9c2bc
pkg/csslib: fixes for args
kevmoo Apr 3, 2015
3900962
use pkg/test and allow latest version of logging pkg
kevmoo May 11, 2015
dbbf3b8
Remove a number of unused members, prepare for release
kevmoo May 12, 2015
7bbb983
Fixes a bug in the CSS string escape handling.
winstonewert Jul 10, 2015
e1d0991
Updated changelog and version
winstonewert Jul 10, 2015
7a6f302
Merge pull request dart-lang/csslib#12 from winstonewert/master
sigmundch Jul 10, 2015
57ad1f7
use pkg/test config for bots
kevmoo Aug 27, 2015
2afeb7d
Update README.md
Sep 21, 2015
aa3562c
fix strong mode errors, and a bunch of analyzer messages
Sep 21, 2015
ed3558f
Update README.md
Sep 21, 2015
1f6eb5d
Merge pull request dart-lang/csslib#13 from dart-lang/strong_mode
Sep 24, 2015
caa46d5
test for broken expression spans
yjbanov Sep 30, 2015
818c7f7
Merge pull request dart-lang/csslib#14 from yjbanov/expression-span
sigmundch Sep 30, 2015
6a9239a
chore: test showing a bug in calc() declarations
yjbanov Oct 14, 2015
91594e4
chore: link from skipped tests to github issues
yjbanov Oct 14, 2015
4621f7f
Merge pull request dart-lang/csslib#16 from yjbanov/calc-span
kevmoo Oct 14, 2015
fc3e886
Add partial support for calc
terrylucas Oct 16, 2015
62471b7
Fix all strong mode errors and warnings.
munificent Apr 21, 2016
470e9bb
Bump version to publish 0.13.0.
munificent Apr 21, 2016
073ca56
Fix two checked mode bugs introduced by 0.13.0.
munificent Apr 21, 2016
939bbf2
Make TreeNode.visit return dynamic.
sigmundch May 11, 2016
f3880bc
fix new strong mode error
jakemac53 Oct 17, 2016
83a2b34
update pubspec/changelog for 0.13.2+1
jakemac53 Oct 17, 2016
d078340
Merge pull request dart-lang/csslib#24 from dart-lang/fix-strong-mode…
jakemac53 Oct 17, 2016
87771b0
Fix warnings.
munificent Nov 17, 2016
41ff10f
Format Dart files with dartfmt
leonsenft Jan 20, 2017
2cd493f
Moves comments to appropriate lines
leonsenft Jan 20, 2017
19f462e
Adds support for identifier IE filters
leonsenft Jan 20, 2017
5db0555
Exports `Message` from parser.dart.
leonsenft Jan 23, 2017
e78d8cc
Fix @page output
leonsenft Jan 20, 2017
3516164
Updates version
leonsenft Jan 25, 2017
9dcc1d9
Adds support for shadow host selectors
leonsenft Jan 20, 2017
90e75c2
Update version
leonsenft Jan 25, 2017
9f43084
Merge branch 'master' into support-ident-ie-filter
leonsenft Jan 25, 2017
150fdd3
Merge pull request dart-lang/csslib#31 from leonsenft/support-ident-i…
leonsenft Jan 25, 2017
8ce1ce0
Adds support for shadow piercing combinators
leonsenft Jan 20, 2017
f263469
Swaps >>> and /deep/ as deep combinator and alias
leonsenft Jan 25, 2017
f20a1e1
'>>>' and '/deep/' no longer share a token
leonsenft Jan 25, 2017
464c149
Updates version and documents changes
leonsenft Jan 25, 2017
acb3b1e
Fixes typos
leonsenft Jan 26, 2017
ad404e2
Fixes analyzer error
leonsenft Jan 26, 2017
8ca885b
Handles CSS2.1 pseudo element syntax
leonsenft Feb 9, 2017
757a9d0
Merge pull request dart-lang/csslib#34 from leonsenft/backwards-compa…
leonsenft Feb 10, 2017
8ab25c7
Adds support for signed decimals with leading '.'
leonsenft Feb 23, 2017
9884997
Fixes parsing hex number when identifier follows
leonsenft Feb 24, 2017
bfc7ad9
Fixes parsing string with unicode-range sequences
leonsenft Feb 24, 2017
2c08be7
Merge pull request dart-lang/csslib#36 from leonsenft/fix-hex-parsing
leonsenft Feb 24, 2017
293b0e2
Merge pull request dart-lang/csslib#35 from leonsenft/fix-number-lexing
leonsenft Feb 24, 2017
2bb9977
Merge pull request dart-lang/csslib#37 from leonsenft/fix-string-lexing
leonsenft Feb 24, 2017
4b17eec
Updates version and changelog.
leonsenft Mar 7, 2017
ebc007b
Corrects changelog.
leonsenft Mar 7, 2017
0ee5793
Adds support for `@-moz-document`.
leonsenft Apr 6, 2017
f3b6b64
Adds group rule body to @-moz-document tests.
leonsenft Apr 6, 2017
c97b703
Merge pull request dart-lang/csslib#40 from leonsenft/add-moz-document
leonsenft Apr 6, 2017
06f4167
Adds support for `@supports`. (dart-lang/csslib#41)
leonsenft Apr 12, 2017
cfc15eb
Updates version and changelog.
leonsenft Apr 12, 2017
5248484
Updates changelog to reflect vendor specific rule.
leonsenft Apr 12, 2017
8b5eae3
Adds support for @viewport
leonsenft May 5, 2017
72f6491
Merge pull request dart-lang/csslib#46 from leonsenft/add-@viewport
leonsenft May 8, 2017
819f874
Fixes @media and invalid test cases (dart-lang/csslib#47)
leonsenft May 8, 2017
78421c7
Prevents exception for invalid dimension terms
leonsenft May 8, 2017
a4b30b9
Adds support for vendor-prefixed calc()
leonsenft May 8, 2017
4efc14e
Merge pull request dart-lang/csslib#49 from leonsenft/add-vendor-pref…
leonsenft May 12, 2017
3384bc3
Merge pull request dart-lang/csslib#48 from leonsenft/improve-term-er…
leonsenft May 12, 2017
8e9e0a3
Updates version and changelog
leonsenft May 12, 2017
c7033bc
Supports mixing /* */ and <!-- --> comments (dart-lang/csslib#53)
leonsenft May 17, 2017
ef93b93
Supports at-rules nested within at-rules (dart-lang/csslib#52)
leonsenft May 17, 2017
b65e1e0
Added a samples test to test csslib on common css frameworks (dart-la…
serates May 18, 2017
022217f
Restricts examples test to VM due to file I/O (dart-lang/csslib#54)
leonsenft May 18, 2017
d2ee654
Updates version (dart-lang/csslib#55)
leonsenft May 22, 2017
2b36d1c
Updates version (dart-lang/csslib#57)
leonsenft May 30, 2017
66a100d
Update the comment based generic syntax usage
keertip Jul 27, 2017
a39f810
rename analysis_options
kevmoo Jul 27, 2017
4a47482
Enable travis
kevmoo Jul 27, 2017
6c8b08e
dartfmt
kevmoo Jul 27, 2017
b34b2cf
sort directives, use isNotEmpty
kevmoo Jul 27, 2017
a116a4d
Stop using deprecated SourceSpan ctor
kevmoo Jul 27, 2017
abef48a
Remove -dev.infinity in SDK upper constraint
kevmoo Sep 19, 2017
28356e0
Update args usage logic
kevmoo Sep 21, 2017
a279c6f
Deprecate css.dart
kevmoo Sep 21, 2017
100cbae
Fix readme to only reference required imports
kevmoo Sep 21, 2017
0805185
Prepare for release
kevmoo Sep 21, 2017
04908e4
Stop testing Dartium on Travis
kevmoo Feb 15, 2018
1eaa516
Fixes Dart 2 runtime failure
leonsenft May 1, 2018
14ffbd2
Updates version and change log for release
leonsenft May 1, 2018
cd90ef6
Updates version for release
leonsenft May 1, 2018
3fa14f5
Removes unnecessary spaces from compact output
leonsenft May 9, 2018
6dc8eee
Updates version and changelog for release
leonsenft May 9, 2018
d2a5184
Improves compact output for @page at-rule
leonsenft May 10, 2018
72b0ba6
Adds changelog entry
leonsenft May 10, 2018
4ef0c91
Remove usage of upper-case constants.
lrhn Apr 10, 2018
ecc5451
update SDK version
lrhn Apr 10, 2018
a3b369d
Update changelog
lrhn Apr 12, 2018
b489474
Rebase, update version number.
lrhn May 4, 2018
0560a27
dartfmt
kevmoo Jul 9, 2018
91d11fe
dartfmt
kevmoo Jul 12, 2018
2197a76
chore: set max SDK version to <3.0.0 (dart-lang/csslib#73)
chalin Jul 16, 2018
394af86
Fix a crash caused by `:host()` without an argument
leonsenft Aug 14, 2018
edb9371
Update version for release
leonsenft Aug 14, 2018
9bd1081
Remove space between comma-delimited expressions in compact output
leonsenft Oct 3, 2018
2e1215e
Remove last semicolon from declaration groups in compact output
leonsenft Oct 3, 2018
6e7364c
Update version for release
leonsenft Oct 4, 2018
597a68e
Update test expectations for source_span output (dart-lang/csslib#77)
natebosch Jan 17, 2019
d916a2a
Change many variables from dynamic to proper type
srawlins Jan 28, 2019
ec1e586
Fix Validate; bug masked by dynamic
srawlins Jan 28, 2019
24e6583
Fix KeyFrameDirective.clone
srawlins Jan 28, 2019
3788545
Fix Supports{Con,Dis}Junction
srawlins Jan 28, 2019
36918c0
Merge pull request dart-lang/csslib#81 from srawlins/fix-Validate
srawlins Jan 28, 2019
dd39f13
Merge pull request dart-lang/csslib#83 from srawlins/fix-key-frame-di…
srawlins Jan 28, 2019
9f71c57
Flip comments to modern doc-comment syntax
srawlins Jan 28, 2019
db2f877
Merge pull request dart-lang/csslib#85 from srawlins/fix-supports-con…
srawlins Jan 28, 2019
aacead0
Feedback
srawlins Jan 28, 2019
e6fabb9
Fmt
srawlins Jan 28, 2019
2fb5a72
Merge pull request dart-lang/csslib#79 from srawlins/too-much-dynamic
srawlins Jan 28, 2019
fb122ff
Merge branch 'master' into dart-doc-comments
srawlins Jan 28, 2019
03ce74d
oops
srawlins Jan 28, 2019
3d97a62
Merge pull request dart-lang/csslib#87 from srawlins/dart-doc-comments
srawlins Jan 28, 2019
04c3b91
Enable lints, fix formatting, test on oldest supported SDK (dart-lang…
kevmoo Apr 8, 2019
b777952
Remove args and logging deps, along with other cleanup (dart-lang/css…
kevmoo Apr 10, 2019
c886dea
prepare to publish
kevmoo Apr 11, 2019
a0a41bd
Fix readme
kevmoo Apr 11, 2019
7784f79
Remove support for shadow-piercing combinators
leonsenft Apr 24, 2019
787c4e3
Prevent infinite loop when parsing an invalid selector
leonsenft Apr 24, 2019
eb5c62a
Update version for release
leonsenft Apr 24, 2019
5bf82c3
fixed expressions parsing
sjbanov Jul 1, 2019
38fcb2b
fix analyzer warnings: curly braces needed
sjbanov Jul 1, 2019
8d70b86
Update version for release
leonsenft Jul 8, 2019
b28b765
Delete codereview.settings
kevmoo Aug 1, 2019
c83b3c5
Fix a number of lints, disable a couple of lints that cannot be easil…
kevmoo Dec 27, 2019
699bcab
Add return types and remove local variable types (dart-lang/csslib#98)
natebosch Dec 27, 2019
7289e6b
Use explicit dynamic over void return types (dart-lang/csslib#99)
natebosch Jan 2, 2020
8d8f6b8
Enforce and fix prefer_typing_uninitialized_variables (dart-lang/cssl…
natebosch Jan 3, 2020
436a79d
Travis: merge test tasks, use Chrome instead of firefox (dart-lang/cs…
kevmoo Mar 26, 2020
84dd126
Support parsing identifiers with escape codes in them
leonsenft Jul 24, 2020
c362cc4
Fix typo
leonsenft Jul 24, 2020
87d53a3
Update changelog and version for release
leonsenft Jul 27, 2020
b20251d
Refactor some private final files with a getter (dart-lang/csslib#108)
natebosch Aug 18, 2020
950b92b
Correct a misused putIfAbsent call (dart-lang/csslib#109)
natebosch Aug 27, 2020
8c30da2
Migrate to null safety (dart-lang/csslib#110)
natebosch Aug 28, 2020
06e5184
Only test on the dev SDK (dart-lang/csslib#111)
natebosch Aug 28, 2020
2a9d6ad
Fix cast of nullable argument (dart-lang/csslib#112)
natebosch Aug 29, 2020
4f5e762
Disable implicit casts from dynamic (dart-lang/csslib#113)
natebosch Aug 31, 2020
5c0838c
Fix Travis config to run sound tests (dart-lang/csslib#114)
natebosch Sep 1, 2020
f7a0e19
fix formatting (dart-lang/csslib#115)
kevmoo Sep 8, 2020
306760b
Remove unnecessary cast. (dart-lang/csslib#117)
stereotype441 Sep 29, 2020
c8e19b6
Update SDK constraint and remove unneeded dependency overrides (dart-…
kevmoo Nov 5, 2020
916697a
Delete .test_config
kevmoo Nov 13, 2020
f9127bb
Merge pull request dart-lang/csslib#120 from dart-lang/kevmoo-patch-1
jakemac53 Nov 13, 2020
0419ffb
Migrate to GitHub Actions (dart-lang/csslib#121)
athomas Dec 21, 2020
08bf348
Add a psuedo compound selector global-context
TedSander Dec 22, 2020
1246ad0
Prepare to publish (dart-lang/csslib#125)
natebosch Jan 25, 2021
c988386
Add changelog entry for null safety (dart-lang/csslib#126)
natebosch Jan 25, 2021
9d0f0d2
prepare for stable, null-safe version (dart-lang/csslib#127)
kevmoo Feb 11, 2021
7ee4d52
Fix crash using `Color.css` with rgb(), rgba(). (dart-lang/csslib#104)
daohoangson Feb 23, 2021
235b350
Fix latest lints (dart-lang/csslib#128)
kevmoo Mar 11, 2021
767b3db
Update LICENSE
franklinyow Apr 5, 2021
c6690b9
Merge pull request dart-lang/csslib#129 from dart-lang/franklinyow-pa…
franklinyow Apr 5, 2021
5dd13ed
Latest CI setup, test on oldest supported SDK (dart-lang/csslib#130)
kevmoo Apr 23, 2021
a755378
Fix unneeded imports (dart-lang/csslib#131)
kevmoo May 24, 2021
6c2fd17
Dart format with latest SDK (dart-lang/csslib#132)
kevmoo Jul 11, 2021
f294e56
Fix updated lints (dart-lang/csslib#133)
kevmoo Aug 1, 2021
3a48a30
Fix pre-existing HintCode.UNNECESSARY_TYPE_CHECK_TRUE
scheglov Sep 1, 2021
0762389
Merge pull request dart-lang/csslib#135 from scheglov/fix-HintCode.UN…
scheglov Sep 2, 2021
5c111e5
Remove all third_party files stored in the wrong location
mit-mit Sep 16, 2021
9d48d62
Update test to run from third_party
mit-mit Sep 16, 2021
3cf6c91
Rename test
mit-mit Sep 16, 2021
1316153
Add third_party test files
mit-mit Sep 16, 2021
2ef2c15
Review feedback
mit-mit Oct 5, 2021
f29fe64
Prep for publishing
mit-mit Oct 5, 2021
bc2d1d7
Merge pull request dart-lang/csslib#137 from mit-mit/lic
mit-mit Oct 6, 2021
1a2b7bb
Add -acx-global-context
TedSander Oct 29, 2021
7db91d6
Run tests on windows (dart-lang/csslib#142)
natebosch Nov 11, 2021
d8f885d
Support math in min, max, and clamp
jathak Dec 6, 2021
c504179
Comma separate keyframe percentage lists (dart-lang/csslib#143)
natebosch Dec 6, 2021
a3bef43
Use a const set to list calc functions (dart-lang/csslib#146)
natebosch Dec 6, 2021
8bf6279
Revert "Comma separate keyframe percentage lists (dart-lang/csslib#14…
natebosch Dec 7, 2021
8657476
Avoid dynamic calls
srawlins Feb 9, 2022
0bd8e98
forgot-to-save
srawlins Feb 9, 2022
0c756b2
Merge pull request dart-lang/csslib#149 from dart-lang/dynamic-calls
srawlins Feb 9, 2022
8f32727
Fix crash found in intenal presubmit
srawlins Feb 9, 2022
dcdd40a
Merge pull request dart-lang/csslib#150 from dart-lang/crash
srawlins Feb 9, 2022
cad9286
Add commas between PercentageTerms in keyframes (dart-lang/csslib#151)
natebosch Feb 25, 2022
bbac468
Prepare to publish (dart-lang/csslib#152)
natebosch May 26, 2022
4028136
Add missing dev_dependency on term_glyph (dart-lang/csslib#153)
natebosch May 26, 2022
e295f18
blast_repo fixes (dart-lang/csslib#154)
kevmoo Nov 15, 2022
cb35d04
Bump actions/checkout from 3.1.0 to 3.2.0 (dart-lang/csslib#156)
dependabot[bot] Jan 3, 2023
a7f37e4
Migrate from no-implicit-casts to strict-casts (dart-lang/csslib#157)
srawlins Jan 10, 2023
28f7220
all the cleanup (dart-lang/csslib#155)
kevmoo Jan 27, 2023
3b0647d
Update test-package.yml (dart-lang/csslib#165)
devoncarew Jan 28, 2023
6a2c2b8
Bump actions/checkout from 3.2.0 to 3.3.0 (dart-lang/csslib#163)
dependabot[bot] Jan 28, 2023
2b82d2b
Bump dart-lang/setup-dart from 1.3 to 1.4 (dart-lang/csslib#164)
dependabot[bot] Jan 28, 2023
611df61
Update README.md (dart-lang/csslib#158)
devoncarew Jan 28, 2023
8d5da53
switch to using package:dart_flutter_team_lints (dart-lang/csslib#161)
devoncarew Jan 28, 2023
1cdd9b9
correct the logic in isPredefinedName (dart-lang/csslib#166)
devoncarew Jan 31, 2023
f43df85
add a repro for dart-lang/csslib#136 (dart-lang/csslib#160)
devoncarew Jan 31, 2023
43187f6
fix the reported span for expressions (dart-lang/csslib#167)
devoncarew Jan 31, 2023
429e0aa
fixed a regression parsing declaration values containing spaces (dart…
devoncarew Feb 7, 2023
9beff95
Add support for CSS `lh` and `rlh` units. (dart-lang/csslib#173)
MH15 Feb 15, 2023
5d9f109
refactor the package example (dart-lang/csslib#170)
devoncarew Mar 14, 2023
15e5a55
Bump actions/checkout from 3.3.0 to 3.5.0 (dart-lang/csslib#177)
dependabot[bot] Apr 4, 2023
0bd0aae
Bump dart-lang/setup-dart from 1.4.0 to 1.5.0 (dart-lang/csslib#176)
dependabot[bot] Apr 4, 2023
c944815
Bump actions/checkout from 3.5.0 to 3.5.2 (dart-lang/csslib#178)
dependabot[bot] May 8, 2023
2e72b86
fixed CssPrinter pretty print indent levels (dart-lang/csslib#169)
devoncarew May 10, 2023
5cc302b
address an issue parsing font names (dart-lang/csslib#168)
devoncarew May 10, 2023
6925c0d
Require Dart 2.19, latest lints, skin hanging test (dart-lang/csslib#…
kevmoo May 10, 2023
220c873
rev for publishing (dart-lang/csslib#179)
devoncarew May 10, 2023
785c5c9
Simplify TopLevelIncludes visitor (dart-lang/csslib#180)
natebosch May 11, 2023
2099a15
blast_repo fixes (dart-lang/csslib#181)
devoncarew May 15, 2023
81d3836
address a regression in the compact output format (dart-lang/csslib#183)
devoncarew May 18, 2023
055661a
rev to 1.0.0 (dart-lang/csslib#185)
devoncarew Jun 6, 2023
20ce74b
Bump actions/checkout from 3.5.2 to 3.5.3 (dart-lang/csslib#187)
dependabot[bot] Jul 1, 2023
3e16955
Bump actions/checkout from 3.5.3 to 3.6.0 (dart-lang/csslib#188)
dependabot[bot] Sep 1, 2023
583c0ea
Bump dart-lang/setup-dart from 1.5.0 to 1.5.1 (dart-lang/csslib#189)
dependabot[bot] Oct 1, 2023
189c933
Bump actions/checkout from 3.6.0 to 4.1.0 (dart-lang/csslib#190)
dependabot[bot] Oct 1, 2023
03fb164
Bump actions/checkout from 4.1.0 to 4.1.1 (dart-lang/csslib#192)
dependabot[bot] Nov 1, 2023
9a79891
Bump dart-lang/setup-dart from 1.5.1 to 1.6.0 (dart-lang/csslib#191)
dependabot[bot] Nov 1, 2023
a4ea452
blast_repo fixes (dart-lang/csslib#193)
kevmoo Dec 19, 2023
8d5a4ef
Bump actions/stale from 8.0.0 to 9.0.0 (dart-lang/csslib#195)
dependabot[bot] Jan 1, 2024
a668a2a
Require Dart 3.0, update and fix lints (dart-lang/csslib#194)
kevmoo Jan 9, 2024
e897e7c
Bump dart-lang/setup-dart from 1.6.0 to 1.6.2 (dart-lang/csslib#196)
dependabot[bot] Feb 1, 2024
e1a98cd
Update processFont to handle null expressions. (dart-lang/csslib#186)
ykmnkmi Mar 19, 2024
6d0a3d1
prep for publishing 1.0.1 (dart-lang/csslib#197)
devoncarew Mar 21, 2024
159fcf4
Bump actions/checkout from 4.1.1 to 4.1.2 (dart-lang/csslib#198)
dependabot[bot] Apr 1, 2024
1f646f6
Bump actions/checkout from 4.1.2 to 4.1.4 (dart-lang/csslib#199)
dependabot[bot] May 1, 2024
a6e15b7
Bump dart-lang/setup-dart from 1.6.2 to 1.6.4 (dart-lang/csslib#200)
dependabot[bot] May 1, 2024
ccc5ee4
blast_repo fixes (dart-lang/csslib#201)
devoncarew May 3, 2024
cf374fa
Bump actions/checkout from 4.1.4 to 4.1.6 in the github-actions group…
dependabot[bot] Jun 1, 2024
18fc78d
Update and fix lints, bump min SDK to Dart 3.1 (dart-lang/csslib#204)
kevmoo Jun 20, 2024
9dad4cf
Bump the github-actions group with 2 updates (dart-lang/csslib#205)
dependabot[bot] Jul 1, 2024
f715c96
Fix angle brackets in doc comments (dart-lang/csslib#206)
kevmoo Aug 26, 2024
bf09bd6
Bump actions/checkout from 4.1.7 to 4.2.0 in the github-actions group…
dependabot[bot] Oct 1, 2024
a5861dd
Merge package:csslib into the tools monorepo
mosuem Oct 25, 2024
bf774af
Add issue template and other fixes
mosuem Oct 25, 2024
429c06d
Moving fixes
mosuem Oct 25, 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
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/csslib.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
name: "package:csslib"
about: "Create a bug or file a feature request against package:csslib."
labels: "package:csslib"
---
4 changes: 4 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@
- changed-files:
- any-glob-to-any-file: 'pkgs/coverage/**'

'package:csslib':
- changed-files:
- any-glob-to-any-file: 'pkgs/csslib/**'

'package:extension_discovery':
- changed-files:
- any-glob-to-any-file: 'pkgs/extension_discovery/**'
Expand Down
72 changes: 72 additions & 0 deletions .github/workflows/csslib.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
name: package:csslib

on:
# Run on PRs and pushes to the default branch.
push:
branches: [ main ]
paths:
- '.github/workflows/csslib.yml'
- 'pkgs/csslib/**'
pull_request:
branches: [ main ]
paths:
- '.github/workflows/csslib.yml'
- 'pkgs/csslib/**'
schedule:
- cron: "0 0 * * 0"

env:
PUB_ENVIRONMENT: bot.github


defaults:
run:
working-directory: pkgs/csslib/

jobs:
# Check code formatting and static analysis on a single OS (linux)
# against Dart dev.
analyze:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
sdk: [dev]
steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
- uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672
with:
sdk: ${{ matrix.sdk }}
- id: install
name: Install dependencies
run: dart pub get
- name: Check formatting
run: dart format --output=none --set-exit-if-changed .
if: always() && steps.install.outcome == 'success'
- name: Analyze code
run: dart analyze --fatal-infos
if: always() && steps.install.outcome == 'success'

# Run tests on a matrix consisting of two dimensions:
# 1. OS: ubuntu-latest, (macos-latest, windows-latest)
# 2. release channel: dev
test:
needs: analyze
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
# Add macos-latest and/or windows-latest if relevant for this package.
os: [ubuntu-latest, windows-latest]
sdk: [3.1, dev]
steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
- uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672
with:
sdk: ${{ matrix.sdk }}
- id: install
name: Install dependencies
run: dart pub get
- name: Run VM tests
run: dart test --platform vm
if: always() && steps.install.outcome == 'success'
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ don't naturally belong to other topic monorepos (like
| [boolean_selector](pkgs/boolean_selector/) | A flexible syntax for boolean expressions, based on a simplified version of Dart's expression syntax. | [![pub package](https://img.shields.io/pub/v/boolean_selector.svg)](https://pub.dev/packages/boolean_selector) |
| [cli_config](pkgs/cli_config/) | A library to take config values from configuration files, CLI arguments, and environment variables. | [![pub package](https://img.shields.io/pub/v/cli_config.svg)](https://pub.dev/packages/cli_config) |
| [coverage](pkgs/coverage/) | Coverage data manipulation and formatting. | [![pub package](https://img.shields.io/pub/v/coverage.svg)](https://pub.dev/packages/coverage) |
| [csslib](pkgs/csslib/) | A library for parsing and analyzing CSS (Cascading Style Sheets). | [![pub package](https://img.shields.io/pub/v/csslib.svg)](https://pub.dev/packages/csslib) |
| [extension_discovery](pkgs/extension_discovery/) | A convention and utilities for package extension discovery. | [![pub package](https://img.shields.io/pub/v/extension_discovery.svg)](https://pub.dev/packages/extension_discovery) |
| [file](pkgs/file/) | A pluggable, mockable file system abstraction for Dart. | [![pub package](https://img.shields.io/pub/v/file.svg)](https://pub.dev/packages/file) |
| [file_testing](pkgs/file_testing/) | Testing utilities for package:file (published but unlisted). | [![pub package](https://img.shields.io/pub/v/file_testing.svg)](https://pub.dev/packages/file_testing) |
Expand Down
4 changes: 4 additions & 0 deletions pkgs/csslib/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.dart_tool
.packages
pubspec.lock
doc/api/
233 changes: 233 additions & 0 deletions pkgs/csslib/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,233 @@
## 1.0.2

- Require Dart 3.1
- Move to `dart-lang/tools` monorepo.

## 1.0.1

- Update `ExpressionsProcessor.processFont` to handle null expressions.
- Require Dart 3.0.

## 1.0.0

- Rev to `1.0.0` (note however that there are no API changes from `0.17.x`).

## 0.17.3

- Add markdown badges to the readme.
- Adopted `package:dart_flutter_team_lints` linting rules.
- Addressed an issue parsing font names not surrounded by quotes.
- Fixed the reported span for `Expression` nodes.
- Fixed a regression parsing declaration values containing spaces.
- Add support for `lh` and `rlh` units.
- Refactor the package example.
- Addressed an issue with the indent level of the `CssPrinter` output.
- Require Dart 2.19.

## 0.17.2

- Fixed a crash caused by `min()`, `max()` and `clamp()` functions that contain
mathematical expressions.
- Add commas between PercentageTerms in keyframe rules.

## 0.17.1

- Fix `Color.css` constructor when there are double values in the `rgba` string.

## 0.17.0

- Migrate to null safety.
- `Font.merge` and `BoxEdge.merge` are now static methods instead of factory
constructors.
- Add a type on the `identList` argument to `TokenKind.matchList`.
- Remove workaround for https://github.com/dart-lang/sdk/issues/43136, which is
now fixed.

## 0.16.2

- Added support for escape codes in identifiers.

## 0.16.1

- Fixed a crash caused by parsing certain calc() expressions and variables names that contain numbers.

## 0.16.0

- Removed support for the shadow-piercing comibnators `/deep/` and `>>>`. These
were dropped from the Shadow DOM specification.

## 0.15.0

- **BREAKING**
- Removed `css` executable from `bin` directory.
- Removed the deprecated `css.dart` library.
- `Message.level` is now of type `MessageLevel` defined in this package.
- Removed dependencies on `package:args` and `package:logging`.
- Require Dart SDK `>=2.1.0`.

## 0.14.6

* Removed whitespace between comma-delimited expressions in compact output.

Before:
```css
div{color:rgba(0, 0, 0, 0.5);}
```

After:
```css
div{color:rgba(0,0,0,0.5);}
```

* Removed last semicolon from declaration groups in compact output.

Before:
```css
div{color:red;background:blue;}
```

After:
```css
div{color:red;background:blue}
```

## 0.14.5

* Fixed a crashed caused by parsing `:host()` without an argument and added an
error message explaining that a selector argument is expected.

## 0.14.4+1

* Set max SDK version to `<3.0.0`, and adjust other dependencies.

## 0.14.4

* Reduced whitespace in compact output for the `@page` at-rule and margin boxes.
* Updated SDK version to 2.0.0-dev.17.0.
* Stop using deprecated constants.

## 0.14.3

* Reduced the amount of whitespace in compact output around braces.

## 0.14.2

* Fixed Dart 2 runtime failure.

## 0.14.1

* Deprecated `package:csslib/css.dart`.
Use `parser.dart` and `visitor.dart` instead.

## 0.14.0

### New features

* Supports nested at-rules.
* Supports nested HTML comments in CSS comments and vice-versa.

### Breaking changes

* The `List<RuleSet> rulesets` field on `MediaDirective`, `HostDirective`, and
`StyletDirective` has been replaced by `List<TreeNode> rules` to allow nested
at-rules in addition to rulesets.

## 0.13.6

* Adds support for `@viewport`.
* Adds support for `-webkit-calc()` and `-moz-calc()`.
* Adds support for querying media features without specifying an expression. For
example: `@media (transform-3d) { ... }`.
* Prevents exception being thrown for invalid dimension terms, and instead
issues an error.

## 0.13.5

* Adds support for `@-moz-document`.
* Adds support for `@supports`.

## 0.13.4

* Parses CSS 2.1 pseudo-elements as pseudo-elements instead of pseudo-classes.
* Supports signed decimal numbers with no integer part.
* Fixes parsing hexadecimal numbers when followed by an identifier.
* Fixes parsing strings which contain unicode-range character sequences.

## 0.13.3+1

* Fixes analyzer error.

## 0.13.3

* Adds support for shadow host selectors `:host()` and `:host-context()`.
* Adds support for shadow-piercing descendant combinator `>>>` and its alias
`/deep/` for backwards compatibility.
* Adds support for non-functional IE filter properties (i.e. `filter: FlipH`).
* Fixes emitted CSS for `@page` directive when body includes declarations and
page-margin boxes.
* Exports `Message` from `parser.dart` so it's no longer necessary to import
`src/messages.dart` to use the parser API.

## 0.13.2+2

* Fix static warnings.

## 0.13.2+1

* Fix new strong mode error.

## 0.13.2

* Relax type of TreeNode.visit, to allow returning values from visitors.

## 0.13.1

* Fix two checked mode bugs introduced in 0.13.0.

## 0.13.0

* **BREAKING** Fix all [strong mode][] errors and warnings.
This involved adding more precise on some public APIs, which
is why it may break users.

[strong mode]: https://github.com/dart-lang/dev_compiler/blob/master/STRONG_MODE.md

## 0.12.2

* Fix to handle calc functions however, the expressions are treated as a
LiteralTerm and not fully parsed into the AST.

## 0.12.1

* Fix to handling of escapes in strings.

## 0.12.0+1

* Allow the latest version of `logging` package.

## 0.12.0

* Top-level methods in `parser.dart` now take `PreprocessorOptions` instead of
`List<String>`.

* `PreprocessorOptions.inputFile` is now final.

## 0.11.0+4

* Cleanup some ambiguous and some incorrect type signatures.

## 0.11.0+3

* Improve the speed and memory efficiency of parsing.

## 0.11.0+2

* Fix another test that was failing on IE10.

## 0.11.0+1

* Fix a test that was failing on IE10.

## 0.11.0

* Switch from `source_maps`' `Span` class to `source_span`'s `SourceSpan` class.
27 changes: 27 additions & 0 deletions pkgs/csslib/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
Copyright 2013, the Dart project authors.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:

* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above
copyright notice, this list of conditions and the following
disclaimer in the documentation and/or other materials provided
with the distribution.
* Neither the name of Google LLC nor the names of its
contributors may be used to endorse or promote products derived
from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
21 changes: 21 additions & 0 deletions pkgs/csslib/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
[![Build Status](https://github.com/dart-lang/tools/actions/workflows/csslib.yaml/badge.svg)](https://github.com/dart-lang/tools/actions/workflows/csslib.yaml)
[![pub package](https://img.shields.io/pub/v/csslib.svg)](https://pub.dev/packages/csslib)
[![package publisher](https://img.shields.io/pub/publisher/csslib.svg)](https://pub.dev/packages/csslib/publisher)

A Dart [CSS](https://developer.mozilla.org/en-US/docs/Web/CSS) parser.

## Usage

Parsing CSS is easy!

```dart
import 'package:csslib/parser.dart';

void main() {
var stylesheet = parse(
'.foo { color: red; left: 20px; top: 20px; width: 100px; height:200px }');
print(stylesheet.toDebugString());
}
```

You can pass a `String` or `List<int>` to `parse`.
Loading
Loading