summaryrefslogtreecommitdiff
path: root/Libraries/LibHTML/Parser/CSSParser.h
AgeCommit message (Collapse)Author
2019-11-18LibHTML: Implement the "margin" shorthand propertyAndreas Kling
This is a very bulky way of doing this, and doesn't seem sustainable to implement every shorthand property this way, but it's a place to start. The "margin" CSS property now expands into its four longhands as far as my understanding of the specs. Note that shorthand expansion happens when we *resolve* style, not when we parse CSS. I'm not sure this is correct anymore, I think other UA's may actually expand shorthands into the declaration directly at parse these days. If so, we should do this at parsing as well.
2019-11-07LibHTML: Make the CSS parser return RefPtr'sAndreas Kling
It should be possible for the CSS parser to fail, and we'll know it failed if it returns nullptr. Returning RefPtr's makes it actually possible to return nullptr. :^)
2019-10-07LibHTML: Make the CSS and HTML parsers take StringViewsAndreas Kling
This allows us to avoid unnecessary making unnecessary String copies of all the source text.
2019-09-30LibHTML: Refactor the CSS parser into a classAndreas Kling
Also added a parser function for standalone style declarations.
2019-07-04Libraries: Create top level directory for libraries.Andreas Kling
Things were getting a little crowded in the project root, so this patch moves the Lib*/ directories into Libraries/.