Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | tests: Add tests for position:sticky | Michael Drake | 2022-11-03 | 3 | -0/+120 |
| | |||||
* | test: Add test for display property grid values | Michael Drake | 2022-10-29 | 1 | -0/+111 |
| | |||||
* | test: dump: Add support for display property grid values | Michael Drake | 2022-10-29 | 1 | -0/+6 |
| | |||||
* | Tests: Add tests for explicit defaulting | Michael Drake | 2022-08-29 | 2 | -0/+1453 |
| | |||||
* | Select: Make inherit flag handling aware of other default values | Michael Drake | 2022-08-29 | 1 | -1/+7 |
| | |||||
* | Parse/MQ: unknown media-types do not match | John-Mark Bell | 2022-05-24 | 1 | -0/+21 |
| | | | | | | | | Per https://www.w3.org/TR/mediaqueries-4/#error-handling, "An unknown <media-type> must be treated as not matching" Ensure, however, that a rule with a condition and no type behaves as if type was all. | ||||
* | Parse/MQ: reject forbidden media-type identifiers | John-Mark Bell | 2022-05-24 | 5 | -17/+82 |
| | | | | | | "and" / "not" / "only" / "or" are forbidden, so must be rejected Add tests for these scenarios | ||||
* | Tests: Select test runner: Avoid forward declarations. | Michael Drake | 2021-06-16 | 1 | -900/+802 |
| | |||||
* | Selection: Don't duplicate unit conversion members in media descriptor.tlsa/units | Michael Drake | 2021-05-19 | 1 | -5/+5 |
| | |||||
* | Selection: Remove client callback for unit conversion. | Michael Drake | 2021-05-19 | 2 | -191/+140 |
| | | | | | | | Now clients provide a unit conversion context and libcss provides code to perform unit conversion. This reduces the amount of common code that clients have to write. | ||||
* | Units: Remove units that nobody supports. | Michael Drake | 2021-05-19 | 4 | -48/+6 |
| | |||||
* | Add regression test for system font callback units. | Michael Drake | 2021-05-19 | 2 | -1/+143 |
| | | | | Thanks to Ralf Junker. | ||||
* | bytecode: Change unit representation, so that length has a bit set. | Michael Drake | 2020-11-15 | 1 | -100/+100 |
| | | | | This means that we can use a mask to check the unit class. | ||||
* | tests: Add test for dodgy media block | Daniel Silverstone | 2019-12-01 | 2 | -0/+10 |
| | | | | | | | To ensure we don't regress and fail on media blocks which end with selectors with no ruleset, add a test to that effect. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org> | ||||
* | Tests: Add test for non-inherited properties. | Michael Drake | 2019-05-12 | 1 | -0/+128 |
| | | | | | | | These were broken before the uncommon extension block was dropped. Based on test provided by: https://bugs.netsurf-browser.org/mantis/view.php?id=2641 | ||||
* | Tests: Update for new API for media queries. | Michael Drake | 2019-05-04 | 1 | -13/+14 |
| | | | | Signed-off-by: Michael Drake <Michael Drake tlsa@netsurf-browser.org> | ||||
* | Tests: fix illegal display value test. | John-Mark Bell | 2019-03-10 | 1 | -1/+1 |
| | | | | | | | | | Recovery from malformed property values involves matching the various nesting mechanisms. Thanks to the bug in the parseAny state machine, this code was never run. The test data contained mismatched open parentheses, causing the recovery logic to continue reading until EOF. Fix the test input to match the expectations of the test assertions. | ||||
* | Media Queries: API for stylesheet import doesn't take media now. | Michael Drake | 2019-03-10 | 2 | -6/+2 |
| | |||||
* | Tests: Passing NULL to memcmp is undefined. | Michael Drake | 2018-07-28 | 1 | -1/+2 |
| | | | | test/parse2-auto.c:222:39: runtime error: null pointer passed as argument 2, which is declared to never be null | ||||
* | Tests: Fix undefined behaviour in css_fixed printing. | Michael Drake | 2018-07-28 | 1 | -1/+1 |
| | | | | test/number.c:137:22: runtime error: negation of -2147483648 cannot be represented in type 'int'; cast to an unsigned type to negate this value to itself | ||||
* | Tests: add tests for new length units. | Lucas Neves | 2017-11-13 | 5 | -0/+2550 |
| | |||||
* | Tests: Fixes sizing of font-size: smaller in selection test. | Lucas Neves | 2017-10-21 | 2 | -2/+2 |
| | |||||
* | Tests: Remove invalid lines from selection test. | Lucas Neves | 2017-10-21 | 1 | -4/+0 |
| | |||||
* | Fixes use of spaces instead of tabs for whitespace. | Lucas Neves | 2017-10-21 | 1 | -61/+61 |
| | |||||
* | Tests: Add support and selection tests for the flexbox properties. | Lucas Neves | 2017-10-21 | 2 | -0/+6490 |
| | |||||
* | Tests: Add support and parsing tests for the flexbox properties. | Lucas Neves | 2017-10-21 | 3 | -15/+1933 |
| | |||||
* | Unit tests: Add non-integer NUMBER parsing test. | Michael Drake | 2017-09-20 | 1 | -0/+8 |
| | |||||
* | Strip trailing whitespace. | Michael Drake | 2017-09-04 | 11 | -222/+222 |
| | |||||
* | Tests: Add box-sizing selection tests. | Michael Drake | 2017-04-27 | 1 | -0/+200 |
| | |||||
* | Tests: Dump box-sizing property in selection tests. | Michael Drake | 2017-04-27 | 2 | -0/+69 |
| | |||||
* | Tests: Add parser tests for box-sizing. | Michael Drake | 2017-04-27 | 1 | -0/+33 |
| | |||||
* | Tests: Add support for dumping the box-sizing property. | Michael Drake | 2017-04-27 | 1 | -0/+11 |
| | |||||
* | Tests: Add box-sizing bytecode unit tests. | Michael Drake | 2017-04-27 | 1 | -0/+58 |
| | |||||
* | Remove option to support not storing data on DOM nodes. | Michael Drake | 2016-11-19 | 5 | -31/+14 |
| | | | | It was complicating lifetimes and ownership. | ||||
* | Intern partial styles. | Michael Drake | 2016-11-19 | 1 | -1/+4 |
| | | | | | Note this changes the public API. We can't compose directly over child style now, since it may be interned. | ||||
* | After composing styles, intern the result in the style sharing arena. | Michael Drake | 2016-11-19 | 1 | -1/+1 |
| | | | | | Note this changes the API. Selection tests updated. | ||||
* | Change how presentational hints are handled.tlsa/upfront-hints | Michael Drake | 2016-02-02 | 1 | -6/+7 |
| | | | | | | | | | | | | | | | Previously, we performed normal selection from CSS sources, and then iterated over all the properties in the populated computed style. If the properties were unset or their values were not from either a UA stylesheet or user stylesheet with !important set, then we asked the client program (e.g. NetSurf) if there were any presentational hints for that node, for each such property. In the worst case this triggered N_PROPERTIES * N_NODES calls back to the client program, even for properties that can't be set via HTML attributes. The new API asks the client to supply a list of all the presentational hints that apply to the given node. For most nodes on modern documents, this is 0. Any presentational hints are applied before selection from CSS sources. | ||||
* | Testutils: undef assert before use | John-Mark Bell | 2015-07-18 | 1 | -0/+1 |
| | |||||
* | Fix build with gcc2. | Adrien Destugues | 2015-03-21 | 1 | -3/+4 |
| | |||||
* | Implement absolutification for column-rule-width. | Michael Drake | 2015-01-10 | 1 | -47/+47 |
| | |||||
* | Sync public getter wrapper's absolutification handling. | Michael Drake | 2015-01-10 | 1 | -111/+111 |
| | |||||
* | Ensure letter and word spacing are always absolutified. | Michael Drake | 2015-01-02 | 1 | -32/+32 |
| | |||||
* | Fix up test data. | Michael Drake | 2014-12-31 | 1 | -1551/+1551 |
| | |||||
* | Make it compose styles. | Michael Drake | 2014-12-31 | 1 | -6/+37 |
| | |||||
* | Add break-* property selection tests. | Michael Drake | 2014-12-29 | 1 | -0/+309 |
| | |||||
* | Dump break-* properties from computed styles, and update test data. | Michael Drake | 2014-12-29 | 2 | -0/+240 |
| | |||||
* | Add test case. | Michael Drake | 2014-12-29 | 1 | -2/+102 |
| | |||||
* | Update test data for uncommon property default value fixes. | Michael Drake | 2014-12-29 | 1 | -122/+122 |
| | |||||
* | Add test for column-* properties. | Michael Drake | 2014-12-06 | 1 | -44/+143 |
| | |||||
* | Add column-width to computed style dumping, and update test data. | Michael Drake | 2014-12-06 | 2 | -0/+70 |
| |