From c3c24bf59c19d45b3f7505e6d0708726e23d9ee5 Mon Sep 17 00:00:00 2001 From: poire-z Date: Sat, 21 Mar 2026 23:12:20 +0100 Subject: [PATCH] bump crengine: support ::first-line, COLRv0 fonts, CHM and CSS fixes (#15155) Includes: - CHM: improve Chinese encoding handling - renderFinalBlock(): fix background color propagation among inlines - first-letter: resets some CSS, ignore invisible, stop on
- CSS: support for pseudo element ::first-line - CSS: add support for float/clear: inline-start/inline-end - lvfntman, lvdrawbuf: add COLR v0 color font rendering support Also add style tweaks to disable first-letter and first-line. --- base | 2 +- frontend/ui/data/css_tweaks.lua | 26 +++++++++++++++++++++----- 2 files changed, 22 insertions(+), 6 deletions(-) diff --git a/base b/base index 1fc8aa2f4..1965c6ef4 160000 --- a/base +++ b/base @@ -1 +1 @@ -Subproject commit 1fc8aa2f40eae6be869790eb9a8f822886c41af3 +Subproject commit 1965c6ef4edfc8d7fded87ba2543105c39f13096 diff --git a/frontend/ui/data/css_tweaks.lua b/frontend/ui/data/css_tweaks.lua index b1f2fe3f3..bc3b0a9ff 100644 --- a/frontend/ui/data/css_tweaks.lua +++ b/frontend/ui/data/css_tweaks.lua @@ -808,13 +808,29 @@ This is just an example, that will need to be adapted into a user style tweak.]] }, }, { - id = "no_pseudo_element_before_after", - title = _("Disable before/after pseudo elements"), - description = _([[Disable generated text from ::before and ::after pseudo elements, usually used to add cosmetic text around some content.]]), - css = [[ + title = _("Pseudo-elements"), + { + id = "no_pseudo_element_before_after", + title = _("Disable before/after pseudo elements"), + description = _([[Disable generated text from ::before and ::after pseudo elements, usually used to add cosmetic text around some content.]]), + css = [[ *::before { display: none !important; } *::after { display: none !important; } - ]], + ]], + }, + { + id = "no_pseudo_element_first_letter", + title = _("Disable first-letter pseudo elements"), + description = _([[Disable first letter styling from ::first-letter pseudo elements.]]), + css = [[*::first-letter { display: none !important; }]], + }, + { + id = "no_pseudo_element_first_line", + title = _("Disable first-ilne pseudo elements"), + description = _([[Disable first line styling from ::first-line pseudo elements.]]), + css = [[*::first-line { display: none !important; }]], + separator = true, + }, separator = true, }, {