Commit Graph

19 Commits

Author SHA1 Message Date
tophf
b185140176 show an error for misplaced @document
#367
2018-03-21 09:32:32 +03:00
tophf
65905edec9 parserlib actions are void 2018-03-18 07:10:33 +03:00
tophf
32cd558dda parse a few nonstandard webkit CSS properties 2018-03-09 02:34:29 +03:00
tophf
5acf815b79 report invalid selector in :not() as a warning
to prevent failures when updating usercss styles that have to override [currently] invalid :not() selectors used by the site

see #356
2018-03-03 17:28:29 +03:00
tophf
b220b2d2f0 code refactor: define parser actions just once 2018-03-01 21:26:57 +03:00
tophf
3a68c4e636 CSSLint: parse CSS4 :matches(), the future of :any() 2018-03-01 21:04:39 +03:00
tophf
e4c399a1c0 try to ignore /*[[USO-var]]*// first 2018-02-28 21:16:00 +03:00
tophf
696690c8da
show invalid :not() as a nonfatal error (#357) 2018-02-28 20:53:50 +03:00
tophf
0ba26072f7 restore Chrome 49 compatibility: remove "u" flag in RegExp
since it wasn't used globally (e.g. vendor code) it made no real difference
2018-02-28 05:15:28 +03:00
tophf
76d9d32dce skip uso-var between declarations 2018-01-12 15:01:13 +03:00
tophf
79e95eadf2 code cosmetics 2018-01-07 23:26:47 +03:00
tophf
9111ebcd2b unget the unary token if got no term to finalize 2018-01-07 19:11:00 +03:00
tophf
acbb69e5ad expr may be null 2018-01-07 18:59:31 +03:00
tophf
67ceaa2e43 fixups; code cosmetics
* show #{min,max} if constraints are present
* parse [row names] in grid properties
* skip uso-vars in selector sequence
* recognize number tokens with +-
* skip comments/whitespace in stream.mustMatch();
2018-01-07 12:33:48 +03:00
tophf
57f0afbc9c CSS Intrinsic & Extrinsic Sizing L3 for *width/*height
https://drafts.csswg.org/css-sizing-3/#sizing-properties
2018-01-07 12:32:50 +03:00
tophf
e7bd155300 CSS Transform Module Level 2 (ED 2017-11-09) - 3d transforms
https://drafts.csswg.org/css-transforms-2/#three-d-transform-functions
2018-01-07 12:32:50 +03:00
tophf
e684f677a6 CSS Display Module Level 3 (ED 2017-11-09)
https://drafts.csswg.org/css-display/
2018-01-07 12:32:50 +03:00
tophf
2036819442 reuse parserCache on subsequent saving of usercss 2018-01-07 12:31:23 +03:00
tophf
d2cba96e10 refactor CSSLint
* reduce linting delay
* parse mozformat in worker
* allow empty functions in 'filter:' property
  https://drafts.fxtf.org/filter-effects/#supported-filter-functions
* support comma-separated list in :lang()
* strip vendor prefix in isLiteral()
2018-01-07 12:31:23 +03:00