mirror of
https://github.com/RGBCube/serenity
synced 2026-01-14 23:11:00 +00:00
This makes it possible to write shorter CSS. Instead of writing
.foo {
border-width: 3px;
border-style: solid;
border-color: blue;
}
it is now possible to write
.foo {
border: 3px solid blue;
}
while the order of values is irrelevant.
Currently only the basic values are supported. More values should be
added in the future.
Three more value specific parse functions were added:
parse_line_width, parse_color, and parse_line_style
Additionally a few test cases were added to borders.html.
|
||
|---|---|---|
| .. | ||
| .gitignore | ||
| Default.css | ||
| Length.h | ||
| LengthBox.h | ||
| Properties.json | ||
| Selector.cpp | ||
| Selector.h | ||
| SelectorEngine.cpp | ||
| SelectorEngine.h | ||
| Specificity.h | ||
| StyleDeclaration.cpp | ||
| StyleDeclaration.h | ||
| StyleProperties.cpp | ||
| StyleProperties.h | ||
| StyleResolver.cpp | ||
| StyleResolver.h | ||
| StyleRule.cpp | ||
| StyleRule.h | ||
| StyleSheet.cpp | ||
| StyleSheet.h | ||
| StyleValue.cpp | ||
| StyleValue.h | ||