summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Select: Properties: Implement copy handler for complex propertiesMichael Drake2022-08-298-155/+306
|
* Select: Properties: Add copy handler for simple propertiesMichael Drake2022-08-29118-507/+1778
|
* Select: Support CSS property-wide 'unset' valueMichael Drake2022-08-291-3/+18
|
* Select: Support CSS property-wide 'initial' valueMichael Drake2022-08-291-3/+6
|
* Select: Make inherit flag handling aware of other default valuesMichael Drake2022-08-2969-170/+172
|
* Parse: Nongenerated properties: Explicit defaultsMichael Drake2022-08-2931-135/+363
|
* Parse: Important: Handle new explicit defaulting valuesMichael Drake2022-08-291-1/+1
|
* Parse: Explicit default support for generated propertiesMichael Drake2022-08-291-93/+93
|
* Parse: Update code generator to support new valuesMichael Drake2022-08-291-4/+42
|
* Stylesheet: Helpers for all default property valuesMichael Drake2022-08-291-1/+33
|
* Parse: Utils: Helper to get any value from flagsMichael Drake2022-08-291-0/+29
|
* Bytecode: Flag values for explicit defaultingMichael Drake2022-08-291-4/+25
|
* Parse: Propstrings: Add unset and revertMichael Drake2022-08-292-2/+4
|
* Select: MQ: Support prefers-color-scheme in boolean contextMichael Drake2022-08-281-4/+5
| | | | | In boolean context it indicates that the browser supports this feature.
* Select: MQ: Use interned strings for media featuresMichael Drake2022-08-284-36/+63
| | | | Avoids some strcmps.
* Select: Add strings for media query featuresMichael Drake2022-08-282-0/+29
|
* Select: Split out useful stringsMichael Drake2022-08-284-289/+320
|
* Selection: Media queries: Apply prefers-color-schemeMichael Drake2022-07-311-0/+33
|
* Parse/MQ: unknown media-types do not matchJohn-Mark Bell2022-05-241-4/+1
| | | | | | | | 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 identifiersJohn-Mark Bell2022-05-241-15/+40
| | | | | | "and" / "not" / "only" / "or" are forbidden, so must be rejected Add tests for these scenarios
* Select: Hash: Fix bloom instrumentation for size != 4.Michael Drake2022-03-161-1/+1
|
* Bloom: Init: Switch to memset.Michael Drake2022-03-161-21/+2
| | | | | GCC is a bit better at optimising a memset. For clang it makes no difference.
* Bloom: Style: Align function parameters.Michael Drake2022-03-161-2/+3
|
* Bloom: Docs: Sync comments with reality.Michael Drake2022-03-161-4/+11
|
* Bloom: Docs: Fix comment typo.Michael Drake2022-03-161-1/+1
|
* Selection: Optimise bloom filter merging.Michael Drake2022-03-131-2/+3
|
* Squash warning on apple darwin CI.Michael Drake2021-06-141-7/+9
|
* Selection: Don't duplicate unit conversion members in media descriptor.Michael Drake2021-05-199-61/+93
|
* Selection: Remove client callback for unit conversion.Michael Drake2021-05-195-179/+76
| | | | | | | 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: Add support for length unit conversion to libcss.Michael Drake2021-05-195-97/+677
| | | | Currently only used for unit conversion.
* Units: Remove units that nobody supports.Michael Drake2021-05-195-36/+10
|
* parse: Squash leak of system font names.Michael Drake2021-05-191-0/+3
|
* parse: Perform client to parse unit conversion for system fonts.Michael Drake2021-05-191-2/+45
|
* add css 3.1 complex predefined counter styles for addative systemsVincent Sanders2021-02-156-5/+149
|
* Improve list style fallback styling and range processingVincent Sanders2021-02-141-176/+231
|
* fix list style formatting with negative valuesVincent Sanders2021-02-131-158/+161
|
* Initialise the string map with a better macroVincent Sanders2021-02-121-594/+598
| | | | | To avoid duplicating the string for every string map entry use a simple macro.
* implement the remaining css 3.1 simple predefined counter stylesVincent Sanders2021-02-126-4/+370
|
* implement the firt half of the css 3.1 simple predefined counter stylesVincent Sanders2021-02-096-98/+321
|
* Use two more bits, six total, for the list style propertyVincent Sanders2021-02-094-526/+526
| | | | | | Adding the two bits that were previously reserved (Must Be Zero) for use in the list style property gives space for sixty four styles instead of sixteen.
* add cyclic system to list style formattingVincent Sanders2021-02-081-2/+75
|
* make roman numeral list style obey range limit and fix decimal fallbackVincent Sanders2021-02-061-15/+31
|
* make list stle structures const and fix initialisation for older compilersVincent Sanders2021-02-061-22/+25
|
* add text formatting of values with list stylesVincent Sanders2021-02-052-1/+543
|
* select: Split out bytecode to unit conversion helper.Michael Drake2020-12-044-43/+54
|
* select: mq: Fix to convert parse unit types to public unit types.Michael Drake2020-12-011-4/+9
|
* parse: properties: Add property-specific unit class masks.Michael Drake2020-11-154-22/+270
| | | | | | | | | There's a table we can index into for calc(): const uint32_t property_unit_mask[CSS_N_PROPERTIES] And there are #defines for where the code is already property-specific, avoiding the lookup.
* parse: properties.gen: Convert to using unit allow masks.Michael Drake2020-11-151-21/+21
|
* bytecode: Change unit representation, so that length has a bit set.Michael Drake2020-11-151-42/+44
| | | | This means that we can use a mask to check the unit class.
* select: computed: Squash use of uninitialised variable warning.Michael Drake2020-11-131-1/+1
|