ladybird/Userland/Libraries/LibWeb/CSS
Sam Atkins 87a30418bf LibWeb: Add CSS 'Supports' class
The name is a little awkward, but this corresponds to the condition of a
`@supports` rule or the `CSS.supports("")` function.

A supports query only gets evaluated once, since its condition cannot
change during runtime. (We either support something or we don't, and the
spec specifically mentions that user preferences that disable features
do not affect the result here.) We keep a representation of it around
though, so that it can be serialized if needed. This is a little awkward
since we hold onto a `StyleDeclarationRule` which should be an internal
Parser class. This means making some Parser functions more public.

Potentially we could evaluate the Supports inside the Parser, and have
it only store a String representation of itself. But this works for now.
:^)
2021-10-08 23:02:57 +02:00
..
Parser LibWeb: Add CSS 'Supports' class 2021-10-08 23:02:57 +02:00
.gitignore Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
ComputedValues.h LibWeb: Start work towards modern CSS "display" values 2021-10-06 19:12:52 +02:00
CSSConditionRule.cpp LibWeb: Add CSSConditionRule 2021-09-29 18:57:48 +02:00
CSSConditionRule.h LibWeb: Add CSSConditionRule 2021-09-29 18:57:48 +02:00
CSSConditionRule.idl LibWeb: Add CSSConditionRule 2021-09-29 18:57:48 +02:00
CSSGroupingRule.cpp LibWeb: Implement CSSRule and CSSStyleDeclaration serialization 2021-10-01 20:17:15 +02:00
CSSGroupingRule.h LibWeb: Implement CSSRule and CSSStyleDeclaration serialization 2021-10-01 20:17:15 +02:00
CSSGroupingRule.idl LibWeb: Add CSSGroupingRule 2021-09-29 18:57:48 +02:00
CSSImportRule.cpp LibWeb: Implement CSSRule and CSSStyleDeclaration serialization 2021-10-01 20:17:15 +02:00
CSSImportRule.h LibWeb: Resolve cyclic dependency between StyleSheet and ImportRule 2021-10-06 23:52:40 +01:00
CSSMediaRule.cpp LibWeb: Add CSSMediaRule 2021-10-01 20:03:03 +02:00
CSSMediaRule.h LibWeb: Add CSSMediaRule 2021-10-01 20:03:03 +02:00
CSSRule.cpp LibWeb: Implement CSSRule and CSSStyleDeclaration serialization 2021-10-01 20:17:15 +02:00
CSSRule.h LibWeb: Implement CSSRule and CSSStyleDeclaration serialization 2021-10-01 20:17:15 +02:00
CSSRule.idl LibWeb: Implement CSSRule and CSSStyleDeclaration serialization 2021-10-01 20:17:15 +02:00
CSSRuleList.cpp LibWeb: Implement most of CSSStyleRule.insertRule() 2021-09-29 21:21:57 +02:00
CSSRuleList.h LibWeb: Implement most of CSSStyleRule.insertRule() 2021-09-29 21:21:57 +02:00
CSSRuleList.idl LibWeb: Make CSSRule and CSSRuleList available to JavaScript :^) 2021-09-29 21:21:57 +02:00
CSSStyleDeclaration.cpp LibWeb: Implement CSSRule and CSSStyleDeclaration serialization 2021-10-01 20:17:15 +02:00
CSSStyleDeclaration.h LibWeb: Implement CSSRule and CSSStyleDeclaration serialization 2021-10-01 20:17:15 +02:00
CSSStyleDeclaration.idl LibWeb: Support simplest form of CSSStyleDeclaration.setProperty() 2021-09-26 19:07:03 +02:00
CSSStyleRule.cpp LibWeb: Implement CSSRule and CSSStyleDeclaration serialization 2021-10-01 20:17:15 +02:00
CSSStyleRule.h LibWeb: Implement CSSRule and CSSStyleDeclaration serialization 2021-10-01 20:17:15 +02:00
CSSStyleRule.idl LibWeb: Have CSSStyleRule inherit from CSSRule in IDL 2021-10-03 16:39:17 +02:00
CSSStyleSheet.cpp LibWeb: Resolve cyclic dependency between StyleSheet and ImportRule 2021-10-06 23:52:40 +01:00
CSSStyleSheet.h LibWeb: Resolve cyclic dependency between StyleSheet and ImportRule 2021-10-06 23:52:40 +01:00
CSSStyleSheet.idl LibWeb: Add CSSStyleSheet.{insert,delete,remove}Rule() APIs 2021-09-29 21:21:57 +02:00
Default.css LibWeb: Use -libweb-palette-base-text for text color in default CSS 2021-05-19 23:23:48 +01:00
Display.h LibWeb: Add CSS/Display.h 2021-10-06 19:30:14 +02:00
Identifiers.json LibWeb: Add a handful of missing CSS "display" value identifiers 2021-10-06 17:14:22 +02:00
Length.cpp LibWeb: Resolve cyclic dependency: Length and CalculatedStyleValue 2021-10-06 23:52:40 +01:00
Length.h LibWeb: Resolve cyclic dependency: Length and CalculatedStyleValue 2021-10-06 23:52:40 +01:00
LengthBox.h LibWeb: Add missing headers 2021-10-06 23:52:40 +01:00
MediaList.cpp LibWeb: Implement MediaQuery matching :^) 2021-10-05 18:51:39 +02:00
MediaList.h LibWeb: Implement MediaQuery matching :^) 2021-10-05 18:51:39 +02:00
MediaList.idl LibWeb: Add MediaList 2021-10-01 20:03:03 +02:00
MediaQuery.cpp LibWeb: Implement MediaQuery matching :^) 2021-10-05 18:51:39 +02:00
MediaQuery.h LibWeb: Implement MediaQuery matching :^) 2021-10-05 18:51:39 +02:00
MediaQueryList.cpp LibWeb: Implement MediaQuery matching :^) 2021-10-05 18:51:39 +02:00
MediaQueryList.h LibWeb: Implement MediaQuery matching :^) 2021-10-05 18:51:39 +02:00
MediaQueryList.idl LibWeb: Implement MediaQueryList.onchange 2021-10-01 01:35:30 +01: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
Properties.json LibWeb: Add range-checking to property_accepts_value() 2021-09-23 17:47:40 +02:00
QuirksMode.css Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
ResolvedCSSStyleDeclaration.cpp LibWeb: Start work towards modern CSS "display" values 2021-10-06 19:12:52 +02:00
ResolvedCSSStyleDeclaration.h LibWeb: Implement CSSRule and CSSStyleDeclaration serialization 2021-10-01 20:17:15 +02:00
Screen.cpp LibWeb: Add DOM::Window::page() 2021-09-09 21:25:10 +02:00
Screen.h AK: Rename adopt() to adopt_ref() 2021-04-23 16:46:57 +02:00
Screen.idl LibWeb: Implement the Screen interface 2021-04-04 00:37:54 +02:00
Selector.cpp AK: Move FormatParser definition from header to implementation file 2021-08-19 23:49:25 +02:00
Selector.h Everywhere: Use my shiny new serenityos.org email :^) 2021-09-03 12:22:36 +02:00
SelectorEngine.cpp Everywhere: Use my shiny new serenityos.org email :^) 2021-09-03 12:22:36 +02:00
SelectorEngine.h LibWeb: Convert CSS Dump, Selector, & SelectorEngine to east const 2021-07-14 13:31:00 +02:00
Serialize.cpp LibWeb: Add CSS.escape() JS function 2021-10-08 23:02:57 +02:00
Serialize.h LibWeb: Add CSS.escape() JS function 2021-10-08 23:02:57 +02:00
StyleComputer.cpp LibWeb: Resolve cyclic dependency between StyleSheet and ImportRule 2021-10-06 23:52:40 +01:00
StyleComputer.h LibWeb: Rename CSS::StyleResolver => StyleComputer 2021-09-24 15:12:15 +02:00
StyleInvalidator.cpp LibWeb: Rename CSS::StyleResolver => StyleComputer 2021-09-24 15:12:15 +02:00
StyleInvalidator.h LibWeb: Rename CSS::StyleResolver => StyleComputer 2021-09-24 15:12:15 +02:00
StyleProperties.cpp LibWeb: Rename Layout::BlockBox => BlockContainer 2021-10-06 20:10:36 +02:00
StyleProperties.h LibWeb: Make things aware of box-sizing 2021-10-05 18:49:47 +02:00
StyleSheet.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
StyleSheet.h LibWeb: Reimplement the <style> element following the spec 2021-09-30 00:00:55 +02:00
StyleSheet.idl LibWeb: Reimplement the <style> element following the spec 2021-09-30 00:00:55 +02:00
StyleSheetList.cpp LibWeb: Reimplement the <style> element following the spec 2021-09-30 00:00:55 +02:00
StyleSheetList.h LibWeb: Reimplement the <style> element following the spec 2021-09-30 00:00:55 +02:00
StyleSheetList.idl LibWeb: Make StyleSheetList.item an IDL getter 2021-09-29 14:57:59 +01:00
StyleValue.cpp LibWeb: Add missing headers 2021-10-06 23:52:40 +01:00
StyleValue.h LibWeb: Add missing headers 2021-10-06 23:52:40 +01:00
Supports.cpp LibWeb: Add CSS 'Supports' class 2021-10-08 23:02:57 +02:00
Supports.h LibWeb: Add CSS 'Supports' class 2021-10-08 23:02:57 +02:00