ladybird/Tests/LibWeb/Text/expected/DOM
Andreas Kling b4e47f198a
Some checks are pending
CI / Lagom (x86_64, Fuzzers_CI, false, ubuntu-24.04, Linux, Clang) (push) Waiting to run
CI / Lagom (x86_64, Sanitizer_CI, false, ubuntu-24.04, Linux, GNU) (push) Waiting to run
CI / Lagom (arm64, Sanitizer_CI, false, macos-15, macOS, Clang) (push) Waiting to run
CI / Lagom (x86_64, Sanitizer_CI, true, ubuntu-24.04, Linux, Clang) (push) Waiting to run
Package the js repl as a binary artifact / build-and-package (macos-14, macOS, macOS-universal2) (push) Waiting to run
Package the js repl as a binary artifact / build-and-package (ubuntu-24.04, Linux, Linux-x86_64) (push) Waiting to run
Run test262 and test-wasm / run_and_update_results (push) Waiting to run
Lint Code / lint (push) Waiting to run
Label PRs with merge conflicts / auto-labeler (push) Waiting to run
Push notes / build (push) Waiting to run
LibWeb: Implement time-traveling inheritance for CSS font-size
When setting `font-family: monospace;` in CSS, we have to interpret
the keyword font sizes (small, medium, large, etc) as slightly smaller
for historical reasons. Normally the medium font size is 16px, but
for monospace it's 13px.

The way this needs to behave is extremely strange:
When encountering `font-family: monospace`, we have to go back and
replay the CSS cascade as if the medium font size had been 13px all
along. Otherwise relative values like 2em/200%/etc could have gotten
lost in the inheritance chain.

We implement this in a fairly naive way by explicitly checking for
`font-family: monospace` (note: it has to be *exactly* like that,
it can't be `font-family: monospace, Courier` or similar.)
When encountered, we simply walk the element ancestors and re-run the
cascade for the font-size property. This is clumsy and inefficient,
but it does work for the common cases.

Other browsers do more elaborate things that we should eventually care
about as well, such as user-configurable font settings, per-language
behavior, etc. For now, this is just something that allows us to handle
more WPT tests where things fall apart due to unexpected font sizes.

To learn more about the wonders of font-size, see this blog post:
https://manishearth.github.io/blog/2017/08/10/font-size-an-unexpectedly-complex-css-property/
2025-02-25 23:55:36 +01:00
..
CDATASection-assignedSlot.txt LibWeb: Don't crash when querying the CDataSection.assignedSlot property 2024-03-23 20:56:26 +01:00
CDATASection-cloneNode.txt LibWeb: Clone CDATASection nodes with the correct node type 2024-11-20 15:15:56 +01:00
CharacterData-replaceData-break-surrogate-pair.txt LibWeb: Allow splitting surrogate pairs in CharacterData.replaceData() 2024-07-20 06:41:25 +02:00
CharacterData-substringData-break-surrogate-pair.txt LibWeb: Allow splitting surrogate pairs in CharacterData.substringData() 2024-10-20 11:18:57 +01:00
ChildNode-after-next-sibling.txt LibWeb: Change printElement() to not output unnecessary space 2025-01-25 13:16:13 +00:00
ChildNode-before-previous-sibling.txt LibWeb: Change printElement() to not output unnecessary space 2025-01-25 13:16:13 +00:00
cloneNode-with-goofy-attribute.txt LibWeb+WebContent: Do not include DOM HTML in text test expectations 2024-10-03 07:07:28 -04:00
createElement-with-emoji-in-tag-name.txt LibWeb: Don't crash on Document.createElement() with emoji in tag name 2023-12-04 00:04:04 +01:00
createEvent-hashchangeevent.txt LibWeb: Make document.createEvent("hashchangeevent") produce right type 2024-04-16 19:50:45 +02:00
Delete-from-text-node-with-associated-range.txt LibWeb: Use correct offset value when replacing character data 2024-02-10 11:18:51 +01:00
derived-interface-prototype.txt LibWeb: Implement WebIDL constructor flow for derived classes 2024-07-05 21:04:27 +02:00
Document-body-element-frameset-before-body.txt LibWeb: Frameset should be the body element if it comes before body 2024-10-12 11:52:53 -06:00
Document-createCDATASection.txt LibWeb: Implement document.createCDATASection() 2024-02-19 10:42:56 +01:00
Document-createElementNS-custom.txt LibWeb: Use right interface for custom SVG and MathML elements 2024-10-31 09:58:59 +00:00
Document-createElementNS-uppercase.txt LibWeb: Make document.createElementNS() case-sensitive 2024-07-25 13:12:34 +02:00
Document-defaultView.txt LibWeb: Return a WindowProxy from document.defaultView 2024-09-21 10:05:34 +02:00
Document-dir.txt LibWeb: Implement Document.dir 2024-05-14 13:35:36 -04:00
Document-getElementsByName-returns-html-elements.txt LibWeb: Only return HTML elements from getElementsByName() 2024-10-14 17:59:00 +02:00
Document-methods-that-must-do-nothing.txt LibWeb: Add methods to Document that must do nothing 2024-04-14 10:45:43 +02:00
Document-named-properties.txt LibWeb: Change printElement() to not output unnecessary space 2025-01-25 13:16:13 +00:00
Document-set-designMode.txt LibWeb: Implement document.designMode 2024-02-12 07:35:14 +01:00
Document-set-partial-attributes.txt LibWeb/DOM: Implement the Document object's partial attributes 2024-04-19 10:58:45 +02:00
Document-svg-title-element-first-child.txt LibWeb: Insert title as first child on setting title of svg document 2024-10-14 07:13:58 +02:00
DOMImplementation-create-xml-document.txt LibWeb: Create XMLDocuments in DOMImplementation.createDocument 2024-01-04 11:23:20 +01:00
DOMImplementation-createHTMLDocument.txt LibWeb+WebContent: Do not include DOM HTML in text test expectations 2024-10-03 07:07:28 -04:00
domparser-parsefromstring-doctype-publicid.txt LibXML: Set the doctype when parsing via Parser::parse_with_listener 2024-10-30 14:53:36 +01:00
domparser-parsefromstring-doctype-systemid.txt LibXML: Set the doctype when parsing via Parser::parse_with_listener 2024-10-30 14:53:36 +01:00
domparser-parsefromstring-xml-empty-pubid.txt LibXML: Allow empty pubid when parsing document type 2024-10-23 21:08:56 +02:00
domparser-parsefromstring-xml-empty-systemid.txt LibXML: Allow empty systemid when parsing document type 2024-10-23 21:08:56 +02:00
domparser-parsefromstring-xml-parsererror.txt LibWeb: Test for parseFromString parsererror 2024-10-14 16:20:57 +01:00
DOMParser-xml-document.txt LibWeb: Create XML Documents in DOMParser.parseFromString 2024-01-04 11:23:20 +01:00
DOMParser-xmlns.txt LibXML: Set XMLNS namespace for xmlns attribute 2024-07-14 11:49:31 +02:00
DOMStringMap-setter-with-invalid-name.txt LibWeb: Propagate exceptions from setAttribute() in DOMStringMap setter 2024-07-20 06:41:25 +02:00
Element-classList.txt LibWeb+WebContent: Do not include DOM HTML in text test expectations 2024-10-03 07:07:28 -04:00
Element-closest.txt LibWeb: Change printElement() to not output unnecessary space 2025-01-25 13:16:13 +00:00
Element-from-point-2.txt LibWeb: Change printElement() to not output unnecessary space 2025-01-25 13:16:13 +00:00
Element-from-point.txt LibWeb: Change printElement() to not output unnecessary space 2025-01-25 13:16:13 +00:00
Element-getAttributeNodeNS.txt LibWeb+WebContent: Do not include DOM HTML in text test expectations 2024-10-03 07:07:28 -04:00
Element-getAttributeNS.txt LibWeb+WebContent: Do not include DOM HTML in text test expectations 2024-10-03 07:07:28 -04:00
Element-removeAttributeNode.txt LibWeb: Implement Element.removeAttributeNode() 2024-04-14 22:08:22 +02:00
Element-removeAttributeNS.txt LibWeb+WebContent: Do not include DOM HTML in text test expectations 2024-10-03 07:07:28 -04:00
element-scroll-height.txt LibWeb+WebContent: Do not include DOM HTML in text test expectations 2024-10-03 07:07:28 -04:00
element-scroll-width.txt LibWeb+WebContent: Do not include DOM HTML in text test expectations 2024-10-03 07:07:28 -04:00
Element-set-scroll-left.txt LibWeb+WebContent: Do not include DOM HTML in text test expectations 2024-10-03 07:07:28 -04:00
Element-setAttribute-capitalization.txt LibWeb: Add name validation and document check to setAttribute 2024-04-19 06:32:41 -04:00
Element-setAttribute-name-validation.txt LibWeb: Add name validation and document check to setAttribute 2024-04-19 06:32:41 -04:00
Element-text-transform-fullwidth.txt LibWeb: Use String::to_fullwidth() when applying text-transform 2024-11-01 07:48:17 -04:00
Element-text-transform-lowercase.txt LibWeb: Pass locale to to_lowercase() from apply_text_transform 2024-11-01 07:48:17 -04:00
Element-text-transform-uppercase.txt LibWeb: Pass locale to to_uppercase() from apply_text_transform 2024-11-01 07:48:17 -04:00
Element-to_titlecase-lang.txt LibWeb: Use the correct locale when applying titlecase 2024-10-28 17:55:05 -04:00
Element-toggleAttribute-xml-doc-html-ns.txt LibWeb: Only use lowercase attributes on toggle for HTML documents 2024-05-12 07:28:09 +01:00
Elements-from-point-2.txt LibWeb: Change printElement() to not output unnecessary space 2025-01-25 13:16:13 +00:00
Elements-from-point-3.txt LibWeb+WebContent: Do not include DOM HTML in text test expectations 2024-10-03 07:07:28 -04:00
Elements-from-point.txt LibWeb: Change printElement() to not output unnecessary space 2025-01-25 13:16:13 +00:00
FormAssociatedElement-selection-type-change.txt LibWeb+WebContent: Do not include DOM HTML in text test expectations 2024-10-03 07:07:28 -04:00
FormAssociatedElement-selection.txt LibWeb: Follow spec steps to set the selectionDirection attribute value 2024-10-04 19:42:33 +02:00
FormAssociatedElement-setRangeText.txt LibWeb+WebContent: Do not include DOM HTML in text test expectations 2024-10-03 07:07:28 -04:00
getElementById-empty-string.txt LibWeb+WebContent: Do not include DOM HTML in text test expectations 2024-10-03 07:07:28 -04:00
getElementById-multiple.txt LibWeb+WebContent: Do not include DOM HTML in text test expectations 2024-10-03 07:07:28 -04:00
getElementsByClassName-empty-string.txt LibWeb+WebContent: Do not include DOM HTML in text test expectations 2024-10-03 07:07:28 -04:00
getElementsByClassName-multiple.txt LibWeb: Change printElement() to not output unnecessary space 2025-01-25 13:16:13 +00:00
getElementsName-empty-string.txt LibWeb+WebContent: Do not include DOM HTML in text test expectations 2024-10-03 07:07:28 -04:00
HTMLCollection-empty-string-as-property-name.txt LibWeb+WebContent: Do not include DOM HTML in text test expectations 2024-10-03 07:07:28 -04:00
HTMLCollection-order.txt LibWeb+WebContent: Do not include DOM HTML in text test expectations 2024-10-03 07:07:28 -04:00
HTMLCollection-property-names-iteration-order.txt LibWeb: Preserve order of HTMLCollection property names 2024-10-04 22:43:44 +01:00
HTMLSelectElement-length.txt LibWeb: Correct logic for removing end nodes from HTMLOptionsCollection 2024-07-27 20:23:14 +01:00
Node-isDefaultNamespace.txt LibWeb: Implement Node.isDefaultNamespace() 2024-07-18 12:41:01 +03:00
Node-isEqualNode.txt LibWeb+WebContent: Do not include DOM HTML in text test expectations 2024-10-03 07:07:28 -04:00
Node-lookupNamespaceURI.txt LibWeb+WebContent: Do not include DOM HTML in text test expectations 2024-10-03 07:07:28 -04:00
Node-lookupPrefix.txt LibWeb+WebContent: Do not include DOM HTML in text test expectations 2024-10-03 07:07:28 -04:00
Node-nodeName.txt Tests: Add test for Node.nodeName 2024-07-26 07:19:23 +02:00
Node-normalize.txt LibWeb+WebContent: Do not include DOM HTML in text test expectations 2024-10-03 07:07:28 -04:00
Offset-of-empty-inline-element.txt LibWeb: Implement time-traveling inheritance for CSS font-size 2025-02-25 23:55:36 +01:00
range-bounding-client-rect-with-nested-text.txt LibWeb+WebContent: Do not include DOM HTML in text test expectations 2024-10-03 07:07:28 -04:00
Range-containing-CDATASection.txt LibWeb: Calculate length for all CharacterData type nodes correctly 2024-07-25 15:57:21 +01:00
Range-deleteContents.txt LibWeb: Implement HTMLElement.innerText closer to spec 2024-10-27 12:10:28 +01:00
range-get-client-rects.txt LibWeb+WebContent: Do not include DOM HTML in text test expectations 2024-10-03 07:07:28 -04:00
Range-to-string.txt LibWeb+WebContent: Do not include DOM HTML in text test expectations 2024-10-03 07:07:28 -04:00
setAttribute-with-emoji-in-attribute-name.txt LibWeb: Don't crash on Element.setAttribute() with emoji in name 2023-12-04 00:04:04 +01:00
shadow-root-boundary-of-inserted-node-is-traversed.txt LibWeb: Actually traverse the shadow root of the inclusive descendant 2024-11-13 14:40:02 +01:00
Text-methods.txt LibWeb: Use UTF-16 code unit offsets and lengths in CharacterData 2023-12-23 20:41:41 +01:00
Text-set-get-data.txt LibWeb: Add a test for setting and getting Text data 2023-12-22 08:19:51 +00:00
Text-wholeText.txt LibWeb+WebContent: Do not include DOM HTML in text test expectations 2024-10-03 07:07:28 -04:00
TreeWalker-nextNode-with-detached-currentNode.txt
update-live-ranges-on-node-insertion.txt LibWeb: Change printElement() to not output unnecessary space 2025-01-25 13:16:13 +00:00
Window-methods-that-must-do-nothing.txt LibWeb: Add methods to Window that must do nothing 2024-04-14 10:45:43 +02:00