ladybird/Tests/LibWeb/Text/input/css
Sam Atkins 5f144f366d Tests: Create a test for :dir() parsing/serialization
Submitted to WPT as https://github.com/web-platform-tests/wpt/pull/52598
but in the meantime here's a local version.

The spec for this isn't super thorough, so the tests are based on how
Chrome and Firefox behave. Specifically, Firefox returns the ltr/rtl
keyword in lowercase but Chrome keeps the original case for it.

We currently fail most of these but that will be fixed in subsequent
commits.
2025-05-17 00:30:44 +02:00
..
animating-transform-with-calc-crash.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
animating-unresolved-properties-crash.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
attr-serialization.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
attribute-selector-case-sensitivity.html LibWeb: Match attribute selectors case insensitively in XML documents 2024-08-19 09:03:22 +02:00
box-shadow-resolves-length-functions.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
calc-coverage.html Tests: Add clip-path to calc() coverage test 2024-10-29 16:05:16 +01:00
calc-missing-context.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
changing-animation-name-crash.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
constructed-style-sheets.html LibWeb: Evaluate media rules for adopted style sheets 2024-04-29 08:10:38 +02:00
css-hsl-with-calc.html LibWeb/CSS: Resolve NumericCalculationNode to percentage when requested 2024-01-11 08:01:47 +01:00
CSSConditionRule-conditionText-readonly.html LibWeb: Fix typo on CSSConditionRule test 2024-02-29 09:01:04 +01:00
cssFloat-property.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
CSSImportRule-supportsText.html LibWeb: Implement CSSImportRule.supportsText 2025-03-19 16:42:51 +01:00
CSSPropertyRule-invalid-rules.html LibWeb: Parse @property CSS directives 2024-10-23 06:55:37 +01:00
CSSPropertyRule-properties-readonly.html LibWeb: Parse @property CSS directives 2024-10-23 06:55:37 +01:00
CSSRule-type.html LibWeb/CSS: Return 0 from CSSRule.type for non-spec types 2024-10-30 17:30:58 +01:00
CSSStyleDeclaration-custom-properties-2.html LibWeb: Fix underinvalidation when inline style has custom properties 2025-01-28 11:38:06 +00:00
CSSStyleDeclaration-custom-properties.html LibWeb: Allow custom properties in getPropertyPriority() 2024-11-21 13:16:08 +01:00
CSSStyleDeclaration-has-indexed-property-getter.html LibWeb: Make CSSStyleDeclaration a legacy platform object with indices 2024-11-14 19:50:22 +01:00
CSSStyleDeclaration-modify-computed.html 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.html LibWeb/CSS: Move property code from CSSStyleDeclaration to *Properties 2025-03-19 13:53:00 +00:00
CSSStyleRule-set-selectorText.html LibWeb: Invalidate style when CSSStyleRule selectorText changes 2024-04-15 22:12:49 +02:00
CSSStyleSheet-addRule.html LibWeb: Implement CSSStyleSheet.addRule() 2024-02-24 21:59:28 +01:00
CSSStyleSheet-constructor.html LibWeb: Align StyleSheet title getter with the specification 2024-04-29 08:10:38 +02:00
CSSStyleSheet-removeRule.html LibWeb: Remove first rule if no argument is given for remove_rule() 2024-02-24 21:59:28 +01:00
CSSStyleSheet-replace.html LibWeb: Implement CSSStyleSheet.replace() 2024-02-24 21:59:28 +01:00
CSSStyleSheet-replaceSync.html LibWeb: Implement CSSStyleSheet.replaceSync() 2024-02-24 21:59:28 +01:00
cubic-bezier-infinite-slope-crash.html LibWeb: Use machine epsilon when approximating cubic bezier 2024-11-03 17:35:20 +01:00
custom-ident-parsing.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
custom-properties-from-all-layers.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
dir-pseudo-on-form-associated-element.html LibWeb: Cast to the correct type in Element::auto_directionality() 2024-05-28 09:51:07 +02:00
element-opacity-change-invalidation.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
fit-content-parsing-with-whitespace.html LibWeb/CSS: Allow whitespace inside fit-content() function 2025-02-27 13:30:36 +00:00
font-face-serialization.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
font-family-with-dash-prefix.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
font-implicitly-reset-properties.html LibWeb/CSS: Make font implicitly reset some properties 2025-02-12 16:00:42 +00:00
font-language-override-short.html 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.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
FontFace-binary-data.html Tests/LibWeb: Move assets used by multiple test types into Assets/ 2024-11-05 14:02:07 +00:00
FontFace-load-urls.html Tests/LibWeb: Move assets used by multiple test types into Assets/ 2024-11-05 14:02:07 +00:00
FontFace.html LibWeb: Implement or stub FontFace interface's attribute getters/setters 2024-05-11 07:30:29 +01:00
FontFaceSet-load.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
FontFaceSet-setlike.html Tests/LibWeb: Move assets used by multiple test types into Assets/ 2024-11-05 14:02:07 +00:00
getComputedStyle-display-short-serialization.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
getComputedStyle-item-does-not-return-invalid-propertyid-on-length-boundary.html LibWeb: Fix OBOE in bounds check of ResolvedCSSStyleDeclaration#item 2024-11-14 19:50:22 +01:00
getComputedStyle-no-paintable-box.html LibWeb: Don't crash when resolving grid properties of inline elements 2024-09-20 08:16:33 +02:00
getComputedStyle-print-all.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
getComputedStyle-pseudo-element.html LibWeb: Implement getComputedStyle() pseudoElement parameter 2024-08-07 16:14:49 +02:00
getComputedStyle-relative-property-values.html LibWeb: Calculate width property resolved value correctly 2024-05-28 08:08:31 +02:00
getComputedStyle-transform.html LibWeb: Coerce NaNs to 0 when escaping top-level calculations 2025-03-25 19:53:36 +00:00
getComputedStyle-url-var-serialization.html LibWeb: Preserve opening quotation in string token original source text 2025-02-05 16:02:09 +00:00
hsl-with-number-percentage-calc.html LibWeb/CSS: Correct matching of calc() against <number-percentage> 2024-10-30 20:58:16 +01:00
HTMLLinkElement-sheet.html LibWeb: Implement the HTMLLinkElement.sheet attribute 2025-03-17 14:47:20 +01:00
import-rule-shift-jis.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
insert-import-rule-into-constructed-stylesheet.html LibWeb: Disallow inserting @import rules into a constructed stylesheet 2024-02-24 21:59:28 +01:00
insert-rule-in-adopted-style-sheet.html LibWeb: Fix insert/delete rule invalidation for adopted style sheets 2025-01-13 23:03:07 +01:00
invalid-selector-in-has.html LibWeb/CSS: Disallow :has() and pseudo-elements in :has() when parsing 2024-11-14 19:51:45 +01:00
invalidate-sibling-affected-by-has.html LibWeb: Check all siblings in ancestors chain while invalidating :has() 2025-02-12 16:15:14 +01:00
keyframes-css-rules.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
layer-rule.html LibWeb/CSS: Implement cascade layers (aka @layer) 2024-09-06 07:49:55 +02:00
legacy-color-value.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
math-depth.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
media-query-serialization-basic.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
move-loaded-link-stylesheet-between-documents.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
page-bleed.html LibWeb/CSS: Parse @page bleed, marks, page-orientation descriptors 2025-05-15 09:53:29 +01:00
page-marks.html LibWeb/CSS: Parse @page bleed, marks, page-orientation descriptors 2025-05-15 09:53:29 +01:00
page-page-orientation.html LibWeb/CSS: Parse @page bleed, marks, page-orientation descriptors 2025-05-15 09:53:29 +01:00
parse-dir-selector.html Tests: Create a test for :dir() parsing/serialization 2025-05-17 00:30:44 +02:00
parse-nested-pseudo-selectors-as-selectors.html LibWeb: Add a CSS parsing test for selectors containing ':' in @media 2024-10-14 08:08:37 +02:00
PropertyOwningCSSStyleDeclaration-serialized-custom-properties.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
pseudo-style-invalidation-after-node-removal.html LibWeb: Invalidate sibling style for :only-child and :*-of-type 2025-05-07 14:55:12 +03:00
replace-calc-function-with-same-kind-but-fewer-arguments.html LibWeb+WebContent: Do not include DOM HTML in text test expectations 2024-10-03 07:07:28 -04:00
revert-all.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
revert-ignores-layers.html LibWeb/CSS: Correct behavior of revert inside a @layer 2024-09-26 08:08:38 +02:00
revert-layer.html LibWeb/CSS: Implement revert-layer 2024-09-11 22:30:20 +01:00
sending-animationcancel-event-crash.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
serialize-invalid-forgiving-selectors.html LibWeb/CSS: Keep invalid parts of <forgiving-selector-list>s around 2024-11-14 13:20:01 +01:00
set-style-declaration-shorthand.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
singular-percentage-calc-crash.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
small-aspect-ratio.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
string-serializes-with-quotes.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
style-declaration-parent-rule.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
style-sheet-with-byte-order-mark.css LibWeb: Decode linked style sheets before parsing them 2023-07-04 10:45:20 +02:00
style-sheet-with-byte-order-mark.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
supports.html Tests: Add a test for @supports 2024-11-07 15:11:24 +01:00
text-transform-dynamic-change.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
text-transform-invalidation-on-media-query-change.html LibWeb: Fix two problems where media queries didn't invalidate properly 2024-04-17 14:18:31 +02:00
transform-origin-serialization.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
transform-serialization.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
transition-basics.html LibWeb: Start transitions when affected properties change 2024-09-22 06:41:55 +02:00
transition-style-invalidation-crash.html LibWeb/CSS: Stop invalidating style when setting an animation's effect 2024-10-15 08:43:26 -04:00
unicode-bidi-computed-values.html LibWeb/CSS: Add support for unicode-bidi property 2024-10-07 14:57:15 +01:00
unicode-range-all-wildcard.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
unknown-pseudo-elements-crash.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
unknown-webkit-pseudo-element-serialization.html LibWeb: Support obsolete but required -webkit- CSS parsing quirk 2023-12-11 16:54:59 +01:00
update-pseudo-elements-on-hover.html LibWeb: Invalidate layout if pseudo-element style changes 2024-07-30 09:45:45 +02:00
var-in-margin-shorthand.html LibWeb/CSS: Use PendingSubstitutionValue for unresolved shorthands 2025-05-14 11:46:47 +01:00
var-uses-fallback-value-if-custom-property-is-empty.html LibWeb/CSS: Use fallback var() value if custom property is empty 2025-02-16 09:19:19 +01:00