Skip to content

Truly independent web browser

LibWeb: Use larger triangles for the details disclosure marker

Andreas Kling74eb3b6053f2
diff --git a/Libraries/LibWeb/CSS/Default.css b/Libraries/LibWeb/CSS/Default.css
index 81c27db1ba1..51081f916b5 100644
--- a/Libraries/LibWeb/CSS/Default.css
+++ b/Libraries/LibWeb/CSS/Default.css
@@ -2226,8 +2226,8 @@ iframe:fullscreen {
suffix: " ";
/* for symbols, see normative text below */
/* FIXME: If the image is directional, it must respond to the writing mode of the element */
- symbols: \25BE;
- /* ▾ */
+ symbols: \25BC;
+ /* ▼ */
}
@counter-style disclosure-closed {
@@ -2235,8 +2235,8 @@ iframe:fullscreen {
suffix: " ";
/* for symbols, see normative text below */
/* FIXME: If the image is directional, it must respond to the writing mode of the element */
- symbols: \25B8;
- /* ▸ */
+ symbols: \25BA;
+ /* ► */
}
/* https://drafts.csswg.org/css-pseudo-4/#highlight-ua-styles */
diff --git a/Tests/LibWeb/Layout/expected/details-closed.txt b/Tests/LibWeb/Layout/expected/details-closed.txt
index ae2201e9200..b26bdc0689c 100644
--- a/Tests/LibWeb/Layout/expected/details-closed.txt
+++ b/Tests/LibWeb/Layout/expected/details-closed.txt
@@ -8,7 +8,7 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children
"I'm a summary"
ListItemMarkerBox <(anonymous)> at [8,8] [0+0+0 13.84375 0+0+0] [0+0+0 16 0+0+0] [BFC] children: inline
frag 0 from GeneratedTextNode start: 0, length: 2, rect: [8,8 13.84375x16] baseline: 12.796875
- "▸ "
+ "► "
GeneratedTextNode <(anonymous)> (not painted)
TextNode <#text> (not painted)
BlockContainer <slot> at [8,24] [0+0+0 784 0+0+0] [0+0+0 0 0+0+0] [BFC] children: not-inline
diff --git a/Tests/LibWeb/Layout/expected/details-default-summary.txt b/Tests/LibWeb/Layout/expected/details-default-summary.txt
index 5b47e5f53b6..f745f1cd7e0 100644
--- a/Tests/LibWeb/Layout/expected/details-default-summary.txt
+++ b/Tests/LibWeb/Layout/expected/details-default-summary.txt
@@ -8,7 +8,7 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children
"Details"
ListItemMarkerBox <(anonymous)> at [8,8] [0+0+0 13.84375 0+0+0] [0+0+0 16 0+0+0] [BFC] children: inline
frag 0 from GeneratedTextNode start: 0, length: 2, rect: [8,8 13.84375x16] baseline: 12.796875
- "▸ "
+ "► "
GeneratedTextNode <(anonymous)> (not painted)
TextNode <#text> (not painted)
BlockContainer <slot> at [8,24] [0+0+0 784 0+0+0] [0+0+0 0 0+0+0] [BFC] children: not-inline
diff --git a/Tests/LibWeb/Layout/expected/details-inline-style-context-index.txt b/Tests/LibWeb/Layout/expected/details-inline-style-context-index.txt
index 83cdb7e2b15..ab5b896b718 100644
--- a/Tests/LibWeb/Layout/expected/details-inline-style-context-index.txt
+++ b/Tests/LibWeb/Layout/expected/details-inline-style-context-index.txt
@@ -9,7 +9,7 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children
frag 0 from ListItemMarkerBox start: 0, length: 0, rect: [8,8 13.84375x16] baseline: 12.796875
ListItemMarkerBox <(anonymous)> at [8,8] [0+0+0 13.84375 0+0+0] [0+0+0 16 0+0+0] [BFC] children: inline
frag 0 from GeneratedTextNode start: 0, length: 2, rect: [8,8 13.84375x16] baseline: 12.796875
- "▸ "
+ "► "
GeneratedTextNode <(anonymous)> (not painted)
BlockContainer <slot> at [8,24] [0+0+0 784 0+0+0] [0+0+0 16 0+0+0] children: inline
frag 0 from TextNode start: 13, length: 4, rect: [8,24 49.734375x16] baseline: 12.796875
diff --git a/Tests/LibWeb/Layout/expected/details-open.txt b/Tests/LibWeb/Layout/expected/details-open.txt
index e003d511ff1..a5530acef2b 100644
--- a/Tests/LibWeb/Layout/expected/details-open.txt
+++ b/Tests/LibWeb/Layout/expected/details-open.txt
@@ -8,7 +8,7 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children
"I'm a summary"
ListItemMarkerBox <(anonymous)> at [8,8] [0+0+0 13.84375 0+0+0] [0+0+0 16 0+0+0] [BFC] children: inline
frag 0 from GeneratedTextNode start: 0, length: 2, rect: [8,8 13.84375x16] baseline: 12.796875
- "▾ "
+ "▼ "
GeneratedTextNode <(anonymous)> (not painted)
TextNode <#text> (not painted)
BlockContainer <slot> at [8,24] [0+0+0 784 0+0+0] [0+0+0 16 0+0+0] children: inline
diff --git a/Tests/LibWeb/Layout/expected/details-summary-default-ua-style.txt b/Tests/LibWeb/Layout/expected/details-summary-default-ua-style.txt
index d6fbb4e8e20..5bb2f6c2ec8 100644
--- a/Tests/LibWeb/Layout/expected/details-summary-default-ua-style.txt
+++ b/Tests/LibWeb/Layout/expected/details-summary-default-ua-style.txt
@@ -8,7 +8,7 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children
"hello"
ListItemMarkerBox <(anonymous)> at [68,68] [0+0+0 13.84375 0+0+0] [0+0+0 16 0+0+0] [BFC] children: inline
frag 0 from GeneratedTextNode start: 0, length: 2, rect: [68,68 13.84375x16] baseline: 12.796875
- "▸ "
+ "► "
GeneratedTextNode <(anonymous)> (not painted)
TextNode <#text> (not painted)
BlockContainer <slot> at [68,84] [0+0+0 664 0+0+0] [0+0+0 0 0+0+0] [BFC] children: not-inline
diff --git a/Tests/LibWeb/Layout/expected/rebuild-parent-style-scope-counter-style-cache.txt b/Tests/LibWeb/Layout/expected/rebuild-parent-style-scope-counter-style-cache.txt
index f4158db535c..adc0b4e0cd8 100644
--- a/Tests/LibWeb/Layout/expected/rebuild-parent-style-scope-counter-style-cache.txt
+++ b/Tests/LibWeb/Layout/expected/rebuild-parent-style-scope-counter-style-cache.txt
@@ -8,7 +8,7 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children
frag 0 from ListItemMarkerBox start: 0, length: 0, rect: [8,8 13.84375x16] baseline: 12.796875
ListItemMarkerBox <(anonymous)> at [8,8] [0+0+0 13.84375 0+0+0] [0+0+0 16 0+0+0] [BFC] children: inline
frag 0 from GeneratedTextNode start: 0, length: 2, rect: [8,8 13.84375x16] baseline: 12.796875
- "▸ "
+ "► "
GeneratedTextNode <(anonymous)> (not painted)
BlockContainer <(anonymous)> at [8,24] [0+0+0 784 0+0+0] [0+0+0 0 0+0+0] children: inline
TextNode <#text> (not painted)
diff --git a/Tests/LibWeb/Ref/expected/details-open-then-closed-ref.html b/Tests/LibWeb/Ref/expected/details-open-then-closed-ref.html
new file mode 100644
index 00000000000..de81a383670
--- /dev/null
+++ b/Tests/LibWeb/Ref/expected/details-open-then-closed-ref.html
@@ -0,0 +1,5 @@
+<!doctype html>
+<details>
+ <summary>I'm a summary</summary>
+ <span>I'm a node</span>
+</details>
diff --git a/Tests/LibWeb/Screenshot/input/details-open-then-closed.html b/Tests/LibWeb/Ref/input/details-open-then-closed.html
similarity index 70%
rename from Tests/LibWeb/Screenshot/input/details-open-then-closed.html
rename to Tests/LibWeb/Ref/input/details-open-then-closed.html
index c2a48bdee6a..19400903634 100644
--- a/Tests/LibWeb/Screenshot/input/details-open-then-closed.html
+++ b/Tests/LibWeb/Ref/input/details-open-then-closed.html
@@ -1,4 +1,5 @@
<!doctype html>
+<link rel="match" href="../expected/details-open-then-closed-ref.html">
<details id="details" open>
<summary>I'm a summary</summary>
<span>I'm a node</span>
diff --git a/Tests/LibWeb/Screenshot/expected/details-open-then-closed.png b/Tests/LibWeb/Screenshot/expected/details-open-then-closed.png
deleted file mode 100644
index 4cd7757d525..00000000000
Binary files a/Tests/LibWeb/Screenshot/expected/details-open-then-closed.png and /dev/null differ