ladybird/Tests/LibWeb/Text/expected/css
Sam Atkins 26acd897bf LibWeb: Produce computed values for custom properties
Custom properties are required to produce a computed value just like
regular properties. The computed value is defined in the spec as
"specified value with variables substituted, or the guaranteed-invalid
value", though in reality all arbitrary substitution functions should be
substituted, not just `var()`.

To support this, we parse the CSS-wide keywords normally in custom
properties, instead of ignoring them. We don't yet handle all of them
properly, and because that will require us to cascade them like regular
properties. This is just enough to prevent regressions when implementing
ASFs.

Our output in this new test is not quite correct, because of the awkward
way we handle whitespace in property values - so it has 3 spaces in the
middle instead of 1, until that's fixed.

It's possible this computed-value production should go in
cascade_custom_properties(), but I had issues with that. Hopefully once
we start cascading custom properties properly, it'll be clearer how
this should all work.
2025-07-09 16:44:20 +01:00
..
abspos-contributes-overflow-rect-into-containing-block-with-inline-children.txt LibWeb: Allow descendant boxes to contribute in overflow rect of parent 2025-07-06 17:10:18 +02:00
all-with-invalid-value.txt LibWeb: Add support for the 'all' CSS property 2025-06-12 15:25:35 +01:00
animate-with-many-keyframes.txt LibWeb: Don't skip last keyframe 2025-06-23 21:01:26 +02:00
animating-transform-with-calc-crash.txt LibWeb+WebContent: Do not include DOM HTML in text test expectations 2024-10-03 07:07:28 -04:00
animating-unresolved-properties-crash.txt LibWeb+WebContent: Do not include DOM HTML in text test expectations 2024-10-03 07:07:28 -04:00
attr-serialization.txt LibWeb: Remove now-invalid attr() type support 2025-07-09 16:44:20 +01:00
attribute-selector-case-sensitivity.txt LibWeb: Match attribute selectors case insensitively in XML documents 2024-08-19 09:03:22 +02:00
background-size-animation-crash.txt LibWeb: Don't crash when interpolating single-value repeatable lists 2025-06-02 11:33:01 +01:00
box-shadow-resolves-length-functions.txt LibWeb: Properly serialize shadow colors 2024-03-03 19:50:25 +01:00
calc-coverage.txt LibWeb: Align CSS Grid properties parsing with the specification 2025-06-21 22:07:08 +02:00
calc-missing-context.txt LibWeb: Handle calculations without a context better 2024-10-16 16:39:47 +02:00
changing-animation-name-crash.txt LibWeb+WebContent: Do not include DOM HTML in text test expectations 2024-10-03 07:07:28 -04:00
constructed-style-sheets.txt LibWeb: Evaluate media rules for adopted style sheets 2024-04-29 08:10:38 +02:00
css-hsl-with-calc.txt LibWeb+WebContent: Do not include DOM HTML in text test expectations 2024-10-03 07:07:28 -04:00
CSSConditionRule-conditionText-readonly.txt LibWeb+WebContent: Do not include DOM HTML in text test expectations 2024-10-03 07:07:28 -04:00
cssFloat-property.txt LibWeb: Remove unnecessary FIXME marker for CSSStyleDeclaration.cssFloat 2024-06-14 20:45:37 +02:00
CSSImportRule-supportsText.txt LibWeb/CSS: Don't resolve @import URLs until they are used 2025-04-09 18:45:57 +01:00
CSSPropertyRule-invalid-rules.txt LibWeb: Parse @property CSS directives 2024-10-23 06:55:37 +01:00
CSSPropertyRule-properties-readonly.txt LibWeb: Parse @property CSS directives 2024-10-23 06:55:37 +01:00
CSSRule-type.txt LibWeb: Allow anonymous layer block rule with no declarations 2025-06-17 08:58:00 +01:00
CSSStyleDeclaration-custom-properties-2.txt LibWeb: Fix underinvalidation when inline style has custom properties 2025-01-28 11:38:06 +00:00
CSSStyleDeclaration-custom-properties.txt LibWeb: Allow custom properties in getPropertyPriority() 2024-11-21 13:16:08 +01:00
CSSStyleDeclaration-has-indexed-property-getter.txt LibWeb: Parse the border-image-repeat property 2025-07-03 10:19:44 +01:00
CSSStyleDeclaration-modify-computed.txt LibWeb: Return error on modification of a computed CSS style declaration 2024-08-05 09:55:50 +02:00
CSSStyleProperties-all-supported-properties-and-default-values.txt LibWeb: Support border-{block,inline} shorthands 2025-07-09 10:10:38 +01:00
CSSStyleRule-pseudoElement-selectorText.txt LibWeb: Correctly handle serialization of PseudoElements 2025-06-24 12:44:44 +01:00
CSSStyleRule-set-selectorText.txt LibWeb+WebContent: Do not include DOM HTML in text test expectations 2024-10-03 07:07:28 -04:00
CSSStyleSheet-addRule.txt LibWeb: Implement CSSStyleSheet.addRule() 2024-02-24 21:59:28 +01:00
CSSStyleSheet-constructor.txt LibWeb: Align StyleSheet title getter with the specification 2024-04-29 08:10:38 +02:00
CSSStyleSheet-removeRule.txt LibWeb: Remove first rule if no argument is given for remove_rule() 2024-02-24 21:59:28 +01:00
CSSStyleSheet-replace.txt LibWeb: Implement CSSStyleSheet.replace() 2024-02-24 21:59:28 +01:00
CSSStyleSheet-replaceSync.txt LibWeb: Implement CSSStyleSheet.replaceSync() 2024-02-24 21:59:28 +01:00
cubic-bezier-infinite-slope-crash.txt LibWeb: Use machine epsilon when approximating cubic bezier 2024-11-03 17:35:20 +01:00
custom-ident-parsing.txt LibWeb+WebContent: Do not include DOM HTML in text test expectations 2024-10-03 07:07:28 -04:00
custom-properties-from-all-layers.txt LibWeb+WebContent: Do not include DOM HTML in text test expectations 2024-10-03 07:07:28 -04:00
custom-property-computed-value.txt LibWeb: Produce computed values for custom properties 2025-07-09 16:44:20 +01:00
dir-pseudo-on-form-associated-element.txt LibWeb: Cast to the correct type in Element::auto_directionality() 2024-05-28 09:51:07 +02:00
element-opacity-change-invalidation.txt
fit-content-parsing-with-whitespace.txt LibWeb/CSS: Allow whitespace inside fit-content() function 2025-02-27 13:30:36 +00:00
font-face-serialization.txt LibWeb/CSS: Serialize @font-face closer to spec 2025-04-07 10:00:21 +01:00
font-family-with-dash-prefix.txt
font-implicitly-reset-properties.txt LibWeb/CSS: Implement the font-kerning property 2025-06-23 13:26:48 +01:00
font-language-override-short.txt LibWeb: Use correct specifier to pad font language override value 2024-11-18 17:38:03 -05:00
font-size-rem-units-on-root-element.txt LibWeb: Prevent infinitely growing font size due to rem units in root 2025-03-05 22:46:06 +01:00
FontFace-binary-data.txt LibWeb: Support loading FontFaces constructed with binary data 2024-05-14 12:31:10 -06:00
FontFace-load-urls.txt LibWeb: Implement FontFace.load() for url() based font sources 2024-05-16 08:02:43 +02:00
FontFace.txt LibWeb/CSS: Use descriptor parsing in FontFace setters 2025-04-07 10:00:21 +01:00
FontFaceSet-load.txt LibWeb: Begin implementing FontFaceSet.prototype.load 2024-10-24 17:50:19 +02:00
FontFaceSet-setlike.txt LibWeb: Mark FontFaceSet as a setlike IDL interface 2024-05-23 10:57:34 +02:00
getComputedStyle-display-short-serialization.txt
getComputedStyle-grid-template-rows.txt LibWeb: Skip serialization of implicit grid lines created during layout 2025-06-25 20:45:48 +02:00
getComputedStyle-item-does-not-return-invalid-propertyid-on-length-boundary.txt LibWeb: Fix OBOE in bounds check of ResolvedCSSStyleDeclaration#item 2024-11-14 19:50:22 +01:00
getComputedStyle-no-paintable-box.txt LibWeb+WebContent: Do not include DOM HTML in text test expectations 2024-10-03 07:07:28 -04:00
getComputedStyle-print-all.txt LibWeb: Parse the border-image-repeat property 2025-07-03 10:19:44 +01:00
getComputedStyle-pseudo-element.txt LibWeb+WebContent: Do not include DOM HTML in text test expectations 2024-10-03 07:07:28 -04:00
getComputedStyle-relative-property-values.txt LibWeb+WebContent: Do not include DOM HTML in text test expectations 2024-10-03 07:07:28 -04:00
getComputedStyle-transform.txt LibWeb: Coerce NaNs to 0 when escaping top-level calculations 2025-03-25 19:53:36 +00:00
getComputedStyle-url-var-serialization.txt LibWeb: Preserve opening quotation in string token original source text 2025-02-05 16:02:09 +00:00
group-inserted-rule-stylesheet-parent.txt LibWeb: Update CSSRule parent style sheet whenever parent rule changes 2025-06-23 15:21:36 +01:00
hsl-with-number-percentage-calc.txt LibWeb/CSS: Correct matching of calc() against <number-percentage> 2024-10-30 20:58:16 +01:00
HTMLLinkElement-sheet.txt LibWeb: Implement the HTMLLinkElement.sheet attribute 2025-03-17 14:47:20 +01:00
import-rule-shift-jis.txt LibWeb: Allow CSS @import rule to import non-UTF-8 style sheets 2024-10-12 19:20:22 +02:00
initially-paused-animation.txt LibWeb: Don't play initially-paused animations 2025-06-18 17:17:29 +02:00
insert-import-rule-into-constructed-stylesheet.txt LibWeb: Disallow inserting @import rules into a constructed stylesheet 2024-02-24 21:59:28 +01:00
insert-rule-constraints.txt LibWeb: Throw error in insertRule when rule violates constraints 2025-06-23 12:52:40 +01:00
insert-rule-in-adopted-style-sheet.txt LibWeb: Fix insert/delete rule invalidation for adopted style sheets 2025-01-13 23:03:07 +01:00
invalid-selector-in-has.txt LibWeb/CSS: Disallow :has() and pseudo-elements in :has() when parsing 2024-11-14 19:51:45 +01:00
invalidate-sibling-affected-by-has.txt LibWeb: Check all siblings in ancestors chain while invalidating :has() 2025-02-12 16:15:14 +01:00
keyframes-css-rules.txt LibWeb: Store CSS color name in CSSRGB 2024-11-25 11:51:50 +01:00
layer-rule.txt LibWeb+WebContent: Do not include DOM HTML in text test expectations 2024-10-03 07:07:28 -04:00
legacy-color-value.txt
math-depth.txt LibWeb+WebContent: Do not include DOM HTML in text test expectations 2024-10-03 07:07:28 -04:00
media-query-serialization-basic.txt LibWeb/CSS: Make dimension types serialize in resolved form 2025-05-17 07:53:24 +01:00
move-loaded-link-stylesheet-between-documents.txt LibWeb: Skip HTMLLinkElement resource fetching for documents without BC 2024-04-25 09:31:01 +02:00
namespace-rules.txt LibWeb: Throw error on insertRule with disallowed @namespace rule 2025-06-09 11:56:24 +01:00
nested-shorthand-css-wide-keyword-serialization.txt LibWeb: Handle nested shorthands in all-same-CSS-wide-keyword to_string 2025-06-16 12:37:40 +01:00
page-bleed.txt LibWeb/CSS: Parse @page bleed, marks, page-orientation descriptors 2025-05-15 09:53:29 +01:00
page-marks.txt LibWeb/CSS: Parse @page bleed, marks, page-orientation descriptors 2025-05-15 09:53:29 +01:00
page-page-orientation.txt LibWeb/CSS: Parse @page bleed, marks, page-orientation descriptors 2025-05-15 09:53:29 +01:00
parse-dir-selector.txt LibWeb/CSS: Parse an ident in :dir(), not a keyword 2025-05-17 00:30:44 +02:00
parse-nested-pseudo-selectors-as-selectors.txt LibWeb: Add a CSS parsing test for selectors containing ':' in @media 2024-10-14 08:08:37 +02:00
PropertyOwningCSSStyleDeclaration-serialized-custom-properties.txt LibWeb: Store CSS color name in CSSRGB 2024-11-25 11:51:50 +01:00
pseudo-style-invalidation-after-node-removal.txt LibWeb: Invalidate sibling style for :only-child and :*-of-type 2025-05-07 14:55:12 +03:00
remove-property-shortand.txt LibWeb: Resolve FIXME around shorthand properties in remove_property() 2025-06-04 16:34:31 +01:00
replace-calc-function-with-same-kind-but-fewer-arguments.txt LibWeb+WebContent: Do not include DOM HTML in text test expectations 2024-10-03 07:07:28 -04:00
revert-all.txt LibWeb: Don't crash on CSS all: revert 2024-08-04 11:49:44 +02:00
revert-ignores-layers.txt LibWeb+WebContent: Do not include DOM HTML in text test expectations 2024-10-03 07:07:28 -04:00
revert-layer.txt LibWeb+WebContent: Do not include DOM HTML in text test expectations 2024-10-03 07:07:28 -04:00
sending-animationcancel-event-crash.txt LibWeb+WebContent: Do not include DOM HTML in text test expectations 2024-10-03 07:07:28 -04:00
serialize-invalid-forgiving-selectors.txt LibWeb/CSS: Keep invalid parts of <forgiving-selector-list>s around 2024-11-14 13:20:01 +01:00
set-style-declaration-shorthand.txt LibWeb/CSS: Support nested shorthands in CSSStyleDeclaration 2025-02-12 16:00:42 +00:00
showing-hidden-animation.txt LibWeb: Don't play initially-paused animations 2025-06-18 17:17:29 +02:00
singular-percentage-calc-crash.txt LibWeb/CSS: Recalculate calc() numeric type when resolving percentages 2025-01-04 18:47:44 +00:00
small-aspect-ratio.txt LibWeb: Don't crash when converting small CSS::Ratio to CSSPixelFraction 2024-08-22 13:49:41 +02:00
src-function.txt LibWeb/CSS: Add alternative src() syntax for URLs 2025-06-11 16:26:23 +02:00
string-serializes-with-quotes.txt
style-declaration-parent-rule.txt LibWeb/CSS: Move property code from CSSStyleDeclaration to *Properties 2025-03-19 13:53:00 +00:00
style-sheet-with-byte-order-mark.txt LibWeb+WebContent: Do not include DOM HTML in text test expectations 2024-10-03 07:07:28 -04:00
supports.txt LibWeb/CSS: Correct parsing of @supports selector() 2025-03-17 10:00:19 +00:00
text-transform-dynamic-change.txt LibWeb: Update the layout tree when CSS text-transform changes 2025-03-08 20:22:01 +01:00
text-transform-invalidation-on-media-query-change.txt LibWeb+WebContent: Do not include DOM HTML in text test expectations 2024-10-03 07:07:28 -04:00
transform-origin-serialization.txt LibWeb: Parse the transform-origin z-value 2025-06-15 16:01:54 +02:00
transform-serialization.txt LibWeb/CSS: Serialize transform scale percentage values as numbers 2024-07-04 14:41:35 +02:00
transition-basics.txt LibWeb+WebContent: Do not include DOM HTML in text test expectations 2024-10-03 07:07:28 -04:00
transition-css-wide-keyword.txt LibWeb: Propagate CSS-wide keyword to transition longhands 2025-06-16 12:37:40 +01:00
transition-style-invalidation-crash.txt LibWeb/CSS: Stop invalidating style when setting an animation's effect 2024-10-15 08:43:26 -04:00
unicode-bidi-computed-values.txt LibWeb/CSS: Add support for unicode-bidi property 2024-10-07 14:57:15 +01:00
unicode-range-all-wildcard.txt LibWeb: Use substrings instead of pointers when parsing unicode ranges 2024-11-05 14:01:45 +00:00
unknown-pseudo-elements-crash.txt LibWeb: Add test for getComputedStyle with a PseudoElement argument 2024-12-19 19:35:57 +00:00
unknown-webkit-pseudo-element-serialization.txt LibWeb+WebContent: Do not include DOM HTML in text test expectations 2024-10-03 07:07:28 -04:00
update-pseudo-elements-on-hover.txt LibWeb+WebContent: Do not include DOM HTML in text test expectations 2024-10-03 07:07:28 -04:00
var-in-margin-shorthand.txt LibWeb/CSS: Use PendingSubstitutionValue for unresolved shorthands 2025-05-14 11:46:47 +01:00
var-uses-fallback-value-if-custom-property-is-empty.txt LibWeb/CSS: Use fallback var() value if custom property is empty 2025-02-16 09:19:19 +01:00
white-space-trim.txt LibWeb: Parse and propagate white-space-trim CSS property 2025-05-29 12:04:28 +02:00
white-space.txt LibWeb: Convert white-space CSS property to shorthand 2025-05-29 12:04:28 +02:00