Extends element widget with support for CSS custom properties (#8699)

* Extend element widget with support for CSS custom properties.

* chore: added tests

* chore: code style

* docs: added documentation for support for CSS custom properties

* docs: added documentation for support for CSS custom properties
This commit is contained in:
Saq Imtiaz
2024-10-29 12:59:04 +01:00
committed by GitHub
parent 8b9723f6c7
commit a687aefbe9
4 changed files with 76 additions and 30 deletions

View File

@@ -0,0 +1,15 @@
title: Widgets/ElementWidgetCSSCustomProps
description: Element widget should support CSS custom properties
type: text/vnd.tiddlywiki-multiple
tags: [[$:/tags/wiki-test-spec]]
title: Output
\whitespace trim
<div class="hello" onclick="clicked" style.color="blue" style.color="red" style.background="yellow" --bg-color="purple">
TiddlyWiki
</div>
+
title: ExpectedResult
<p><div class="hello" style="color:red;background:yellow;--bg-color:purple;">TiddlyWiki</div></p>