1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 09:38:11 +00:00
serenity/Userland/Libraries/LibWeb/CSS
Andreas Kling e7370443f2 LibWeb: Make non-finite CSS lengths resolve to "auto"
When we're performing max-content layout (a separate throwaway layout
pass that only exists to discover the intrinsic max-content size of
a specific box), we act as if the containing block has infinite width.

This allows an infinite length to propagate into the layout system,
which is fine, but at some point it needs to be turned into a finite
number or some loop conditions will not make sense and we can hang
indefinitely (e.g in the flexible lengths resolution algorithm.)

We fix this by making Length::resolved() turn non-finite values into
an "auto" length.
2022-07-06 20:31:19 +02:00
..
Parser AK: Use an enum instead of a bool for String::replace(all_occurences) 2022-07-06 11:12:45 +02:00
SyntaxHighlighter LibWeb: Move Token and Tokenizer into Parser namespace 2022-04-12 23:03:46 +02:00
Angle.cpp LibWeb: Fix calculation of degrees from radians 2022-06-15 19:10:43 +01:00
Angle.h LibWeb: Implement CSS Angle class 2022-02-24 08:04:25 +01:00
ComputedValues.h LibWeb: Keep both horizontal and vertical border radii till painting 2022-06-13 09:43:45 +01:00
CSSConditionRule.cpp Libraries: Use default constructors/destructors in LibWeb 2022-03-17 17:23:49 +00:00
CSSConditionRule.h LibWeb: Add CSSConditionRule wrapper 2022-05-11 20:16:10 +02:00
CSSConditionRule.idl LibWeb: Add CSSConditionRule wrapper 2022-05-11 20:16:10 +02:00
CSSFontFaceRule.cpp LibWeb: Implement initial CSSFontFaceRule and FontFace classes 2022-03-28 22:25:25 +02:00
CSSFontFaceRule.h LibWeb: Implement initial CSSFontFaceRule and FontFace classes 2022-03-28 22:25:25 +02:00
CSSFontFaceRule.idl LibWeb: Implement initial CSSFontFaceRule and FontFace classes 2022-03-28 22:25:25 +02:00
CSSGroupingRule.cpp LibWeb: Implement CSSRule.parentRule and .parentStyleSheet 2022-05-11 20:16:10 +02:00
CSSGroupingRule.h LibWeb: Implement CSSRule.parentRule and .parentStyleSheet 2022-05-11 20:16:10 +02:00
CSSGroupingRule.idl LibWeb: Add CSSGroupingRule wrapper 2022-05-11 20:16:10 +02:00
CSSImportRule.cpp LibWeb: Move CSS Parser into new Web::CSS::Parser namespace 2022-04-12 23:03:46 +02:00
CSSImportRule.h LibWeb: Add CSSImportRule wrapper 2022-05-11 20:16:10 +02:00
CSSImportRule.idl LibWeb: Add CSSImportRule wrapper 2022-05-11 20:16:10 +02:00
CSSMediaRule.cpp Libraries: Use default constructors/destructors in LibWeb 2022-03-17 17:23:49 +00:00
CSSMediaRule.h LibWeb: Add CSSMediaRule wrapper 2022-05-11 20:16:10 +02:00
CSSMediaRule.idl LibWeb: Add CSSMediaRule wrapper 2022-05-11 20:16:10 +02:00
CSSRule.cpp LibWeb: Simplify some WeakPtr assignments 2022-07-04 22:30:59 +02:00
CSSRule.h LibWeb: Implement CSSRule.parentRule and .parentStyleSheet 2022-05-11 20:16:10 +02:00
CSSRule.idl LibWeb: Implement CSSRule.parentRule and .parentStyleSheet 2022-05-11 20:16:10 +02:00
CSSRuleList.cpp LibWeb: Hold a strong ref to old_rule in CSSRuleList::remove_a_css_rule 2022-06-11 19:27:09 +01:00
CSSRuleList.h LibWeb: Allow passing StringView to CSSRuleList::insert_a_css_rule() 2022-05-11 20:16:10 +02:00
CSSRuleList.idl LibWeb: Add imports to all IDL files that depend on others 2022-02-16 22:48:32 +03:30
CSSStyleDeclaration.cpp LibWeb: Move CSS Parser into new Web::CSS::Parser namespace 2022-04-12 23:03:46 +02:00
CSSStyleDeclaration.h LibWeb: Support CSSStyleDeclaration.getPropertyPriority() 2022-04-11 21:10:07 +02:00
CSSStyleDeclaration.idl LibWeb: Support CSSStyleDeclaration.getPropertyPriority() 2022-04-11 21:10:07 +02:00
CSSStyleRule.cpp Libraries: Use default constructors/destructors in LibWeb 2022-03-17 17:23:49 +00:00
CSSStyleRule.h Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
CSSStyleRule.idl LibWeb: Add imports to all IDL files that depend on others 2022-02-16 22:48:32 +03:30
CSSStyleSheet.cpp LibWeb: Implement CSSRule.parentRule and .parentStyleSheet 2022-05-11 20:16:10 +02:00
CSSStyleSheet.h LibWeb: Spec-comment parse_a_stylesheet() 2022-03-30 18:43:07 +02:00
CSSStyleSheet.idl LibWeb: Add imports to all IDL files that depend on others 2022-02-16 22:48:32 +03:30
CSSSupportsRule.cpp LibWeb: Implement @supports serialization 2022-05-11 20:16:10 +02:00
CSSSupportsRule.h LibWeb: Add CSSSupportsRule wrapper 2022-05-11 20:16:10 +02:00
CSSSupportsRule.idl LibWeb: Add CSSSupportsRule wrapper 2022-05-11 20:16:10 +02: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: Fix typo in CSS::Display::is_outside_and_inside() name 2022-04-13 16:40:46 +02:00
Enums.json LibWeb: Add deprecated image-rendering values 2022-06-16 17:36:13 +01:00
FontFace.cpp LibWeb: Parse @font-face unicode-range descriptor 2022-04-07 21:20:14 +02:00
FontFace.h LibWeb: Understand the format() part of a @font-face's src 2022-04-07 21:20:14 +02: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 deprecated image-rendering values 2022-06-16 17:36:13 +01:00
Length.cpp LibWeb: Make non-finite CSS lengths resolve to "auto" 2022-07-06 20:31:19 +02:00
Length.h Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
LengthBox.h LibWeb: Stop including StyleValue.h in a few places 2022-04-14 14:54:06 +02:00
MediaFeatures.json LibWeb: Add missing MEDIAQUERIES-5 media-features 2022-03-16 22:07:53 +01:00
MediaList.cpp LibWeb: Add MediaList wrapper 2022-05-11 20:16:10 +02:00
MediaList.h LibWeb: Add MediaList wrapper 2022-05-11 20:16:10 +02:00
MediaList.idl LibWeb: Add MediaList wrapper 2022-05-11 20:16:10 +02:00
MediaQuery.cpp LibWeb: Extract MediaType to/from_string() logic into functions 2022-04-29 00:07:31 +02:00
MediaQuery.h LibWeb: Extract MediaType to/from_string() logic into functions 2022-04-29 00:07:31 +02: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: Replace ad-hoc EventHandler type with callback function typedef 2022-03-31 01:10:47 +02:00
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+AudioServer: Remove unused spaceship operators 2022-04-23 10:43:32 -07:00
Percentage.cpp LibWeb: Implement CSS Time class 2022-02-24 08:04:25 +01:00
Percentage.h LibWeb: Make resolved styles handle calculated length-percentages 2022-04-03 23:12:13 +02: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: Use generated enum code for property value validation 2022-04-14 14:54:06 +02:00
QuirksMode.css Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
Ratio.cpp LibWeb+AudioServer: Remove unused spaceship operators 2022-04-23 10:43:32 -07:00
Ratio.h LibWeb+AudioServer: Remove unused spaceship operators 2022-04-23 10:43:32 -07: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 LibWeb: Remove unnecessary return in ResolvedCSSStyleDeclaration 2022-07-04 12:39:48 +02:00
ResolvedCSSStyleDeclaration.h LibWeb: Implement CSSStyleDeclaration.{set,remove}Property close to spec 2022-04-11 21:10:07 +02: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/CSS: Add :focus-within serialisation 2022-06-10 15:25:24 +01:00
Selector.h LibWeb: Make an+b pattern selector serialization spec compliant 2022-05-08 16:29:06 +02:00
SelectorEngine.cpp LibWeb: Use lowercase type selectors to match against html elements 2022-07-04 12:39:48 +02: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: Actually use BorderRadiusShorthandStyleValue 2022-04-18 21:30:51 +02:00
StyleComputer.h LibWeb: Move ComponentValue to CSS::Parser namespace 2022-04-12 23:03:46 +02:00
StyleProperties.cpp LibWeb: Allow multiple text-decoration-lines 2022-04-14 21:54:10 +02:00
StyleProperties.h LibWeb: Allow multiple text-decoration-lines 2022-04-14 21:54:10 +02: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: Load fonts from style sheet once when sheet is added 2022-04-08 21:27:35 +02:00
StyleSheetList.h LibWeb: Remove unused StyleSheetList::m_generation 2022-03-29 16:35:46 +02:00
StyleSheetList.idl LibWeb: Add imports to all IDL files that depend on others 2022-02-16 22:48:32 +03:30
StyleValue.cpp LibWeb: Fix background images not showing till scrolling/repaint 2022-06-30 20:11:40 +01:00
StyleValue.h LibWeb: Use SmoothPixels scaling mode as the pixelated rendering 2022-06-16 14:26:55 +01:00
Supports.cpp LibWeb: Implement @supports serialization 2022-05-11 20:16:10 +02:00
Supports.h LibWeb: Implement @supports serialization 2022-05-11 20:16:10 +02: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
TransformFunctions.json LibWeb: Add code generator for CSS transform functions 2022-04-18 14:16:28 +02:00
UnicodeRange.h LibWeb: Add CSS::UnicodeRange class 2022-04-07 21:20:14 +02:00