diff --git a/.ecode/project_build.json b/.ecode/project_build.json index 159f08674..9e6098a1d 100644 --- a/.ecode/project_build.json +++ b/.ecode/project_build.json @@ -220,7 +220,7 @@ "working_dir": "${project_root}/bin" }, { - "args": "-filter=\"UIRichText.InvalidWidthLengthComputation3\"", + "args": "", "command": "${project_root}/bin/unit_tests/eepp-unit_tests-debug", "name": "eepp-unit_tests-debug", "working_dir": "${project_root}/bin/unit_tests/" diff --git a/bin/assets/ui/breeze.css b/bin/assets/ui/breeze.css index f94ebed13..36f0bb0a7 100644 --- a/bin/assets/ui/breeze.css +++ b/bin/assets/ui/breeze.css @@ -52,91 +52,13 @@ droppable-hovering-color: #FFFFFF20; } -MarkdownView > *, -body { - color: var(--font); -} - -b, -strong { - font-style: bold; -} - -small { - font-size: smaller; -} - -u, -ins { - text-decoration: underline; -} - -s, -del { - text-decoration: strikethrough; -} - -i, -em, -cite { - font-style: italic; -} - -CodeEditor, -code, -kbd { - font-family: monospace; -} - -h1 { - font-size: 2em; - font-weight: bold; -} - -h2 { - font-size: 1.5em; - font-weight: bold; -} - -h3 { - font-size: 1.17em; - font-weight: bold; -} - -h4 { - font-size: 1em; - font-weight: bold; -} - -h5 { - font-size: 0.83em; - font-weight: bold; -} - -h6 { - font-size: 0.67em; - font-weight: bold; -} - -a { - cursor: arrow; - text-decoration: none; -} - -a:hover { - text-decoration: underline; - cursor: hand; -} - -sub, -sup { - font-size: smaller; -} - -blockquote { - padding-left: 8dp; +MarkdownView { background-color: var(--list-back); - border-left: 2dp solid var(--tab-line); + padding: 4dp; +} + +MarkdownView body { + color: var(--font); } MarkdownView p, @@ -171,11 +93,6 @@ MarkdownView a:hover { color: var(--font-highlight); } -MarkdownView { - background-color: var(--list-back); - padding: 4dp; -} - MarkdownView li > p { margin: 0; } MarkdownView blockquote > *:first-child { margin-top: 0dp; } MarkdownView blockquote > *:last-child { margin-bottom: 0dp; } diff --git a/bin/unit_tests/assets/html/eepp-uihtmltable-complex-layout-2.webp b/bin/unit_tests/assets/html/eepp-uihtmltable-complex-layout-2.webp index a9fa7b7dd..f06d8b567 100644 Binary files a/bin/unit_tests/assets/html/eepp-uihtmltable-complex-layout-2.webp and b/bin/unit_tests/assets/html/eepp-uihtmltable-complex-layout-2.webp differ diff --git a/bin/unit_tests/assets/html/element_defaults.html b/bin/unit_tests/assets/html/element_defaults.html new file mode 100644 index 000000000..f77de6360 --- /dev/null +++ b/bin/unit_tests/assets/html/element_defaults.html @@ -0,0 +1,146 @@ + + + + +HTML Element Defaults + + + +

HTML Element Default Styles

+

This page exercises all elements whose defaults were moved to widget-creation code.

+ +

Headings

+
+

Heading 1 — The quick brown fox

+

Heading 2 — The quick brown fox

+

Heading 3 — The quick brown fox

+

Heading 4 — The quick brown fox

+
Heading 5 — The quick brown fox
+
Heading 6 — The quick brown fox
+
+ +

Inline Text Semantics

+
+
b / strong bold text strong text
+
i / em / cite italic text emphasized citation
+
u / ins underlined inserted
+
s / del strikethrough deleted
+
small small text
+
code / kbd function() Ctrl+C
+
sub / sup H2O and E=mc2
+
a (link) clickable link
+
a (visited) visited link
+
a (hover) hovered link
+
mark highlighted text
+
+ +

Block Elements

+
+

A paragraph of text. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

+

Another paragraph with a
line break in the middle.

+
+
preformatted text
+    with spaces
+  and newlines
+
+

This is a blockquote. It should have left border, left padding, and background.

+

Multiple paragraphs in a blockquote.

+
+
A div container with no special styling
+
+ +

Lists

+
+ +
    +
  1. Ordered list item 1
  2. +
  3. Ordered list item 2 +
      +
    1. Nested numbered item A
    2. +
    3. Nested numbered item B
    4. +
    +
  4. +
  5. Ordered list item 3
  6. +
+
+

Form Controls — Text Inputs

+ +
+
text
+
text (empty)
+
password
+
number
+
textarea
+
+ +

Form Controls — Buttons

+
+
submit
+
button
+
reset
+
+ +

Form Controls — Checkboxes

+
+
checkbox Option A Option B
+
radio Choice 1 Choice 2
+
+ +

Tables

+
+ + + + + + + + + + + +
Header AHeader BHeader C
Cell 1Cell 2Cell 3
Cell 4Cell 5Cell 6
Footer 1Footer 2Footer 3
+
+ +

Details / Summary

+
+
+ Click to expand details +

Hidden content revealed when summary is clicked.

+
+
+ Already open details +

This content is visible by default.

+
+
+ +

Misc

+
+
image triangle
+
fieldset +
+ Legend + Fieldset content +
+
+
hidden input (should not be visible)
+
+ + diff --git a/bin/unit_tests/assets/html/lobsters_item.html b/bin/unit_tests/assets/html/lobsters_item.html index d29921a57..050ca1698 100644 --- a/bin/unit_tests/assets/html/lobsters_item.html +++ b/bin/unit_tests/assets/html/lobsters_item.html @@ -1,5 +1,6 @@ + Lobsters