chsxf / cidercsskit Goto Github PK
View Code? Open in Web Editor NEWA fast and lightweight CSS parser, written as a pure Swift package
Home Page: https://chsxf.github.io/CiderCSSKit/documentation/cidercsskit
License: MIT License
A fast and lightweight CSS parser, written as a pure Swift package
Home Page: https://chsxf.github.io/CiderCSSKit/documentation/cidercsskit
License: MIT License
Color in ˋCSSValue.color` is stored with four RGBA components but that makes it impossible to accurately store colors in other color spaces like HSL or Lab
Add support for shorthand properties (like padding
or border-radius
)
https://developer.mozilla.org/en-US/docs/Web/CSS/Shorthand_properties
Add support for all units
https://developer.mozilla.org/en-US/docs/Learn/CSS/Building_blocks/Values_and_units
Right now, getting the next token as a String is mostly an uncontrolled process. Improve on that.
Custom Pages
Essentials
Values
Error Management
Extending and Validating
Tokens
Enumerations
Add support for short hexadecimal colors (#fff
for example)
Add support for the adjacent sibling combinator (+
)
https://developer.mozilla.org/en-US/docs/Web/CSS/Adjacent_sibling_combinator
For now, rgb()
and rgba()
methods are not parsed correctly. They expect 4 decimal components ranging from 0 to 1, but the specification calls for three decimals (RGB) from 0 to 255, and one (A) from 0 to 1.
Add support for pseudo-classes (like :hover)
https://developer.mozilla.org/en-US/docs/Web/CSS/Pseudo-classes
Add support for the general sibling combinator (~
)
https://developer.mozilla.org/en-US/docs/Web/CSS/General_sibling_combinator
Add support for hsl()
color function (and potentially other color spaces)
https://developer.mozilla.org/en-US/docs/Web/CSS/color_value
Added support for the universal selector (*
) in order to offer global rules
https://developer.mozilla.org/en-US/docs/Web/CSS/Universal_selectors
Add support for shorthand attributes with multiple types like border-image
, including value groups separator (/
) and validation of order
https://developer.mozilla.org/en-US/docs/Web/CSS/border-image
Create a visual identity for CiderCSSKit, based on the one made for CiderKit.
Icon design reference from Apple:
https://1drv.ms/u/s!AtX-9tNTFBqfh_wYg_qgOiZnhTUUKg?e=PQJrdE
Add absolute length conversion tools
Add missing font family keywords:
cursive
fantasy
system-ui
math
emoji
fangsong
Add support for the text-align
attribute
Support for custom-ident
type, used for example in the transition
or transition-property
CSS properties.
https://developer.mozilla.org/en-US/docs/Web/CSS/transition
https://developer.mozilla.org/en-US/docs/Web/CSS/transition-property
https://developer.mozilla.org/en-US/docs/Web/CSS/custom-ident
Strategy: Consider parsing the unquoted string to this type of identifier if no keyword is recognized and the property accepts it.
Add support for the child combinator (>
)
https://developer.mozilla.org/en-US/docs/Web/CSS/Child_combinator
Add support for chained CSS rules. This will enable style sheet stacks as if you would load multiple style sheets in sequence.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.