aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/style/parsing/position.rs
Commit message (Collapse)AuthorAgeFilesLines
* style: Remove unit tests that test non-compliant stuff.Emilio Cobos Álvarez2019-07-231-145/+0
| | | | <position> no longer parses three values.
* Update MPL license to https (part 5)Jan Andre Ikenmeyer2018-11-271-1/+1
|
* `cargo fix --edition`Simon Sapin2018-11-101-1/+1
|
* Format remaining filesPyfisch2018-11-061-1/+0
|
* Remove testing feature from style crateManish Goregaokar2017-08-071-103/+1
|
* Serialize 'minmax(auto, <flex>)' as '<flex>'Nazım Can Altınova2017-07-191-1/+1
|
* Switch to GridTemplateComponent for subgrid line namesRavi Shankar2017-07-031-3/+16
|
* Add a truckload of tests for <track-size> and <track-list>Ravi Shankar2017-05-181-1/+66
|
* Refactor PositionAnthony Ramine2017-05-101-39/+43
| | | | | | | | | | | | | | | | | | A specified position is now a struct made of two values of different types, the first one being PositionComponent<X>, and the second one PositionComponent<Y>. A position component is represented by the new enum PositionComponent<Side>, with the three values Center, Length(LengthOrPercentage), and Side(Side, Option<LengthOrPercentage>). Side keywords are represented by the X and Y enums, which don't include a value for the center keyword anymore. They are accompanied by the Side trait, which allows us to determine whether a side keyword is "left" or "top". This refactor simplified the parsing and serialisation code and exposed bugs in it, where it would reject valid <position> values followed by arbitrary tokens, and where it would fail to prefer "left" to "right" when serialising positions in basic shapes.
* Centralize ParserContext for testsJ. Ryan Stinnett2017-04-141-4/+1
| | | | | | | To simplify adding additional data to `ParserContext`, this moves test usages to a few shared locations, instead of being spread across many tests. MozReview-Commit-ID: 1OahV797eq
* Pull rule_type into ParserContextJ. Ryan Stinnett2017-04-121-1/+1
| | | | | | | Absorb `rule_type` into the `ParserContext` so that it's easier to pass down to deeper levels of the parser. MozReview-Commit-ID: DjBNytLxGKX
* Add parsing/serialisation for 'grid-auto-flow'George White2017-03-181-0/+25
|
* Invalid three value positions are no longer acceptedshubDhond2017-02-231-0/+5
|
* Implement HorizontalPosition / VerticalPositionNazım Can Altınova2016-12-121-0/+75
|
* Fix the unit tests to use contextRavi Shankar2016-11-271-27/+30
|
* Fix related to #14101Artem Biryukov2016-11-121-0/+1
| | | | Add Parse trait implementation for some structures
* Fix the unit tests to make use of local ToCssRavi Shankar2016-11-071-0/+1
|
* Change parsing behavior and implement to_computed_value functionNazım Can Altınova2016-08-271-16/+41
|
* Add serialize_four_sides, use for serializing BorderRadiusManish Goregaokar2016-08-021-0/+4
|
* Add roundtrip parsing tests for basic_shape/positionManish Goregaokar2016-08-021-0/+30