Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
LibWeb: Expose type and raw values of basic CSS types
This makes it possible to do arithmetic on them without having to resolve to their canonical unit, which often requires context information that is not available until the last minute. For example, a Length cannot be resolved to px without knowing the font size, parent element's size, etc. Only Length currently requires such context, but treating all these types the same means that code that manipulates them does not need to know or care if a new unit gets added that does require contextual information.
- Loading branch information