1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-20 13:25:08 +00:00
serenity/Userland/Libraries/LibWeb/CSS
Sam Atkins 6edea1d59f LibWeb: Assign limits to CSS properties that cannot be negative
I believe this is all of them, but I may have missed some.

Several properties technically do not allow negative numbers but the
description says to accept these as valid, and then clamp them
afterwards to the desired range. As such, we don't reject them during
parsing.
2022-03-26 18:15:08 +01:00
..
Parser LibWeb: Move HTML dimension value parsing from CSS to HTML namespace 2022-03-26 17:31:01 +01:00
SyntaxHighlighter LibWeb: Implement first draft of CSS syntax highlighting :^) 2021-10-23 19:07:44 +02:00
.gitignore Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
Angle.cpp LibWeb: Implement CSS Angle class 2022-02-24 08:04:25 +01:00
Angle.h LibWeb: Implement CSS Angle class 2022-02-24 08:04:25 +01:00
ComputedValues.h LibWeb: Parse and compute text-shadow property 2022-03-24 18:08:34 +01:00
CSSConditionRule.cpp Libraries: Use default constructors/destructors in LibWeb 2022-03-17 17:23:49 +00:00
CSSConditionRule.h Libraries: Use default constructors/destructors in LibWeb 2022-03-17 17:23:49 +00:00
CSSConditionRule.idl LibWeb: Add imports to all IDL files that depend on others 2022-02-16 22:48:32 +03:30
CSSGroupingRule.cpp Libraries: Use default constructors/destructors in LibWeb 2022-03-17 17:23:49 +00:00
CSSGroupingRule.h Libraries: Use default constructors/destructors in LibWeb 2022-03-17 17:23:49 +00:00
CSSGroupingRule.idl LibWeb: Add imports to all IDL files that depend on others 2022-02-16 22:48:32 +03:30
CSSImportRule.cpp Libraries: Use default constructors/destructors in LibWeb 2022-03-17 17:23:49 +00:00
CSSImportRule.h Libraries: Use default constructors/destructors in LibWeb 2022-03-17 17:23:49 +00:00
CSSMediaRule.cpp Libraries: Use default constructors/destructors in LibWeb 2022-03-17 17:23:49 +00:00
CSSMediaRule.h Libraries: Use default constructors/destructors in LibWeb 2022-03-17 17:23:49 +00:00
CSSRule.cpp Libraries: Use default constructors/destructors in LibWeb 2022-03-17 17:23:49 +00:00
CSSRule.h Libraries: Use default constructors/destructors in LibWeb 2022-03-17 17:23:49 +00:00
CSSRule.idl LibWeb: Implement CSSRule and CSSStyleDeclaration serialization 2021-10-01 20:17:15 +02:00
CSSRuleList.cpp Libraries: Use default constructors/destructors in LibWeb 2022-03-17 17:23:49 +00:00
CSSRuleList.h Libraries: Use default constructors/destructors in LibWeb 2022-03-17 17:23:49 +00:00
CSSRuleList.idl LibWeb: Add imports to all IDL files that depend on others 2022-02-16 22:48:32 +03:30
CSSStyleDeclaration.cpp Libraries: Use default constructors/destructors in LibWeb 2022-03-17 17:23:49 +00:00
CSSStyleDeclaration.h Libraries: Use default constructors/destructors in LibWeb 2022-03-17 17:23:49 +00:00
CSSStyleDeclaration.idl LibWeb: Support simplest form of CSSStyleDeclaration.setProperty() 2021-09-26 19:07:03 +02:00
CSSStyleRule.cpp Libraries: Use default constructors/destructors in LibWeb 2022-03-17 17:23:49 +00:00
CSSStyleRule.h Libraries: Use default constructors/destructors in LibWeb 2022-03-17 17:23:49 +00:00
CSSStyleRule.idl LibWeb: Add imports to all IDL files that depend on others 2022-02-16 22:48:32 +03:30
CSSStyleSheet.cpp Libraries: Use default constructors/destructors in LibWeb 2022-03-17 17:23:49 +00:00
CSSStyleSheet.h Libraries: Use default constructors/destructors in LibWeb 2022-03-17 17:23:49 +00:00
CSSStyleSheet.idl LibWeb: Add imports to all IDL files that depend on others 2022-02-16 22:48:32 +03:30
CSSSupportsRule.cpp Libraries: Use default constructors/destructors in LibWeb 2022-03-17 17:23:49 +00:00
CSSSupportsRule.h Libraries: Use default constructors/destructors in LibWeb 2022-03-17 17:23:49 +00:00
Default.css LibWeb: Use ThreedShadow1 palette color for input border in Default.css 2022-03-26 01:35:39 +00:00
Display.cpp LibWeb: Don't crash on unknown CSS display types, fall back to inline 2022-02-13 01:03:49 +01:00
Display.h LibWeb: Don't crash on unknown CSS display types, fall back to inline 2022-02-13 01:03:49 +01:00
Frequency.cpp LibWeb: Implement CSS Frequency class 2022-02-24 08:04:25 +01:00
Frequency.h LibWeb: Implement CSS Frequency class 2022-02-24 08:04:25 +01:00
GeneralEnclosed.h LibWeb: Implement independent GeneralEnclosed class 2021-11-24 22:57:46 +01:00
Identifiers.json LibWeb: Add MEDIAQUERIES-5 identifiers 2022-03-16 22:07:53 +01:00
Length.cpp LibWeb: Add fast-path for absolute lengths in Length::to_px() 2022-03-24 18:14:01 +01:00
Length.h LibWeb: Move length-unit-from-string code into Length 2022-02-24 08:04:25 +01:00
LengthBox.h LibWeb: Convert width/height and min-/max- versions to LengthPercentage 2022-01-20 00:04:10 +01:00
MediaFeatures.json LibWeb: Add missing MEDIAQUERIES-5 media-features 2022-03-16 22:07:53 +01:00
MediaList.cpp Libraries: Use default constructors/destructors in LibWeb 2022-03-17 17:23:49 +00:00
MediaList.h Libraries: Use default constructors/destructors in LibWeb 2022-03-17 17:23:49 +00:00
MediaList.idl LibWeb: Add imports to all IDL files that depend on others 2022-02-16 22:48:32 +03:30
MediaQuery.cpp LibWeb: Use floats instead of doubles for CSS numbers 2022-03-22 15:47:36 +01:00
MediaQuery.h LibWeb: Use floats instead of doubles for CSS numbers 2022-03-22 15:47:36 +01:00
MediaQueryList.cpp Libraries: Use default constructors/destructors in LibWeb 2022-03-17 17:23:49 +00:00
MediaQueryList.h Libraries: Use default constructors/destructors in LibWeb 2022-03-17 17:23:49 +00:00
MediaQueryList.idl LibWeb: Add imports to all IDL files that depend on others 2022-02-16 22:48:32 +03:30
MediaQueryListEvent.h LibWeb: Fire MediaQueryListEvents when an MQL's match-state changes 2021-10-05 18:51:39 +02:00
MediaQueryListEvent.idl LibWeb: Fire MediaQueryListEvents when an MQL's match-state changes 2021-10-05 18:51:39 +02:00
Number.h LibWeb: Implement a CSS::Number class 2022-03-22 15:47:36 +01:00
Percentage.cpp LibWeb: Implement CSS Time class 2022-02-24 08:04:25 +01:00
Percentage.h Libraries: Use default constructors/destructors in LibWeb 2022-03-17 17:23:49 +00:00
PreferredColorScheme.cpp LibWeb: Add Web::CSS::PreferredColorScheme enum 2021-10-31 18:39:13 +01:00
PreferredColorScheme.h LibWeb: Add Web::CSS::PreferredColorScheme enum 2021-10-31 18:39:13 +01:00
Properties.json LibWeb: Assign limits to CSS properties that cannot be negative 2022-03-26 18:15:08 +01:00
QuirksMode.css Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
Ratio.cpp LibWeb: Introduce and parse CSS Ratio type 2022-03-07 13:42:25 +01:00
Ratio.h LibWeb: Introduce and parse CSS Ratio type 2022-03-07 13:42:25 +01:00
Resolution.cpp LibWeb: Implement CSS Resolution class 2022-02-24 08:04:25 +01:00
Resolution.h LibWeb: Implement CSS Resolution class 2022-02-24 08:04:25 +01:00
ResolvedCSSStyleDeclaration.cpp LbWeb: Rename BoxShadowFoo => ShadowFoo 2022-03-24 18:08:34 +01:00
ResolvedCSSStyleDeclaration.h Libraries: Use default constructors/destructors in LibWeb 2022-03-17 17:23:49 +00:00
Screen.cpp LibWeb: Move Window from DOM directory & namespace to HTML 2022-03-08 00:30:30 +01:00
Screen.h LibWeb: Move Window from DOM directory & namespace to HTML 2022-03-08 00:30:30 +01:00
Screen.idl LibWeb: Implement the Screen interface 2021-04-04 00:37:54 +02:00
Selector.cpp LibWeb: Remove now-unused null values from Selector enums 2022-03-22 15:47:36 +01:00
Selector.h LibWeb: Remove now-unused null values from Selector enums 2022-03-22 15:47:36 +01:00
SelectorEngine.cpp LibWeb: Remove now-unused null values from Selector enums 2022-03-22 15:47:36 +01:00
SelectorEngine.h LibWeb: Match styles for pseudo-elements 2022-02-25 19:35:34 +01:00
Serialize.cpp Everywhere: Pass AK::StringView by value 2021-11-11 01:27:46 +01:00
Serialize.h Everywhere: Pass AK::StringView by value 2021-11-11 01:27:46 +01:00
StyleComputer.cpp LibWeb: Resolve style values from the element inline style 2022-03-26 17:30:49 +01:00
StyleComputer.h LibWeb: Give StyleComputer a helper for getting the current viewport 2022-03-19 22:04:43 +01:00
StyleProperties.cpp LibWeb: Parse and compute text-shadow property 2022-03-24 18:08:34 +01:00
StyleProperties.h LibWeb: Parse and compute text-shadow property 2022-03-24 18:08:34 +01:00
StyleSheet.cpp LibWeb: Make StyleSheet::m_parent_style_sheet a WeakPtr 2021-12-06 19:22:16 +01:00
StyleSheet.h LibWeb: Add the StyleSheet.href attribute 2022-03-09 19:56:08 +01:00
StyleSheet.idl LibWeb: Add the StyleSheet.href attribute 2022-03-09 19:56:08 +01:00
StyleSheetList.cpp LibWeb: Use StyleComputer::invalidate_rule_cache() directly everywhere 2022-03-15 19:48:19 +01:00
StyleSheetList.h LibWeb: Use StyleComputer::invalidate_rule_cache() directly everywhere 2022-03-15 19:48:19 +01:00
StyleSheetList.idl LibWeb: Add imports to all IDL files that depend on others 2022-02-16 22:48:32 +03:30
StyleValue.cpp LbWeb: Rename BoxShadowFoo => ShadowFoo 2022-03-24 18:08:34 +01:00
StyleValue.h LbWeb: Rename BoxShadowFoo => ShadowFoo 2022-03-24 18:08:34 +01:00
Supports.cpp LibWeb: Implement @supports selector(.foo) 2022-02-19 19:33:54 +01:00
Supports.h LibWeb: Implement @supports selector(.foo) 2022-02-19 19:33:54 +01:00
Time.cpp LibWeb: Implement CSS Time class 2022-02-24 08:04:25 +01:00
Time.h LibWeb: Implement CSS Time class 2022-02-24 08:04:25 +01:00