Commit graph

23 commits

Author SHA1 Message Date
Simon Sapin
e2ec549da5 Add computed values. 2013-08-29 17:06:33 +01:00
Simon Sapin
254c522ab4 Simplify properties template a bit. 2013-08-27 16:35:26 +01:00
Simon Sapin
a931c8d4a0 Add "inherited" markers on longhand properties. 2013-08-23 15:38:20 +01:00
Simon Sapin
622bc5705c Add PropertyDeclaration, refactor property parsing to use a Mako template. 2013-08-22 15:37:49 +01:00
Simon Sapin
8fec26174b Upgrade to rustc 0.8-pre (0a677bc 2013-08-14 10:35:12 -0700) 2013-08-16 14:49:32 +01:00
Simon Sapin
b5860f407f Only allow one @charset rule. 2013-08-14 14:17:33 +01:00
Simon Sapin
be51f4fb8f Remove the peekable() overhead in font-family parsing. 2013-08-14 00:30:31 +01:00
Simon Sapin
449683565f Add parsing of supported shorthand properties. 2013-08-13 23:43:42 +01:00
Simon Sapin
3343de55e6 Logic fixes in CSS longhand properties parsing. 2013-08-13 21:13:08 +01:00
Simon Sapin
9ea09f9d0d Parse all longhand properties that Servo seems to support. 2013-08-13 20:17:08 +01:00
Simon Sapin
c1b7e157b7 Update to rustc 0.8-pre (ecfc9a8 2013-08-12 04:29:11 -0700) 2013-08-12 17:08:02 +01:00
Simon Sapin
70c281fc25 Use a borrowed "device" for Media Queries matching. 2013-08-10 16:46:41 +01:00
Simon Sapin
e1bde72c59 Add a recursive style rule iterator for stylesheets. 2013-08-10 16:27:28 +01:00
Simon Sapin
5758c31df7 Add @media and media type parsing (no Media Queries yet.) 2013-08-10 16:27:06 +01:00
Simon Sapin
9b22acf2f3 Factor out parsing of various types of rules. 2013-08-10 13:22:30 +01:00
Simon Sapin
ff1f4e62ec Add a license (MPL2) and readme. 2013-08-09 16:49:07 +01:00
Simon Sapin
bde1fcc7e9 Parse :nth-child() using an+b parsing from rust-cssparser. 2013-08-09 16:21:28 +01:00
Simon Sapin
1195759e79 Makefile: rebuild when rust-cssparser changes. 2013-08-09 16:17:50 +01:00
Simon Sapin
cc302053ed Add selector specificity. 2013-08-09 11:54:29 +01:00
Simon Sapin
af2f90fe74 Stop the madness and use cssparser as an external lib / crate.
See mozilla-servo/rust-cssparser@bb35329bd6
and mozilla/rust#7899
2013-08-09 11:54:01 +01:00
Simon Sapin
3f6a557578 Mostly complete, untested selector parser. 2013-08-08 23:51:14 +01:00
Simon Sapin
9512d13cbb Parse @namespace rules. 2013-08-08 18:38:03 +01:00
Simon Sapin
10827f160b Initial pass at a stylesheet and selector parser 2013-08-08 17:13:48 +01:00