diff --git a/core/wiki/macros/CSS.tid b/core/wiki/macros/CSS.tid index 09c85efe9b..4bb9c6a32b 100644 --- a/core/wiki/macros/CSS.tid +++ b/core/wiki/macros/CSS.tid @@ -13,56 +13,6 @@ tags: $:/tags/Macro \define color(name) <> -\define box-shadow(shadow) -`` --webkit-box-shadow: $shadow$; - -moz-box-shadow: $shadow$; - box-shadow: $shadow$; -`` -\end - -\define filter(filter) -`` --webkit-filter: $filter$; - -moz-filter: $filter$; - filter: $filter$; -`` -\end - -\define transition(transition) -`` --webkit-transition: $transition$; - -moz-transition: $transition$; - transition: $transition$; -`` -\end - -\define transform-origin(origin) -`` --webkit-transform-origin: $origin$; - -moz-transform-origin: $origin$; - transform-origin: $origin$; -`` -\end - -\define background-linear-gradient(gradient) -`` -background-image: linear-gradient($gradient$); -background-image: -o-linear-gradient($gradient$); -background-image: -moz-linear-gradient($gradient$); -background-image: -webkit-linear-gradient($gradient$); -background-image: -ms-linear-gradient($gradient$); -`` -\end - -\define column-count(columns) -`` --moz-column-count: $columns$; --webkit-column-count: $columns$; -column-count: $columns$; -`` -\end - \procedure datauri(title) <$macrocall $name="makedatauri" type={{{ [get[type]] }}} text={{{ [<title>get[text]] }}} _canonical_uri={{{ [<title>get[_canonical_uri]] }}}/> \end diff --git a/core/wiki/macros/deprecated.tid b/core/wiki/macros/deprecated.tid new file mode 100644 index 0000000000..3f2147bbe2 --- /dev/null +++ b/core/wiki/macros/deprecated.tid @@ -0,0 +1,43 @@ +title: $:/core/macros/deprecated +tags: $:/tags/Macro + +<!-- Deprecated Macros --> +<!-- DO NOT USE THESE MACROS. THEY MAY BE REMOVED AT ANY MOMENT --> + +\define box-shadow(shadow) +`` + box-shadow: $shadow$; +`` +\end + +\define filter(filter) +`` + filter: $filter$; +`` +\end + +\define transition(transition) +`` + transition: $transition$; +`` +\end + +\define transform-origin(origin) +`` + transform-origin: $origin$; +`` +\end + +\define background-linear-gradient(gradient) +`` +background-image: linear-gradient($gradient$); +background-image: -moz-linear-gradient($gradient$); +background-image: -webkit-linear-gradient($gradient$); +`` +\end + +\define column-count(columns) +`` +column-count: $columns$; +`` +\end \ No newline at end of file diff --git a/editions/tw5.com/tiddlers/Deprecated core macros.tid b/editions/tw5.com/tiddlers/Deprecated core macros.tid new file mode 100644 index 0000000000..f9c15a75a9 --- /dev/null +++ b/editions/tw5.com/tiddlers/Deprecated core macros.tid @@ -0,0 +1,31 @@ +created: 20251101085817414 +modified: 20251101091035398 +tags: [[Core Macros]] Macros $:/deprecated +title: Deprecated core macros +type: text/vnd.tiddlywiki + +<<.warning "It is discouraged to use the following macros. Though tiddlywiki might still support them, they may be in the process of being dropped, or may only be kept for compatibility purposes. Avoid using it, and update existing code if possible. Be aware that these macros may cease to work at any time. ">> + +Most deprecated macros are defined in [[$:/core/macros/deprecated]]. It is discouraged to use them. + +! Stylesheet Macros + +<<.deprecated-since 5.4.0>> The following core [[macros|Macros]] used to made it easy to specify alternative browser-specific properties when constructing a [[stylesheet|Cascading Style Sheets]] tiddler. They are deprecated after 2017 baseline is supported in v5.4.0: + +; `<<box-shadow shadow>>` +: for the `x-box-shadow` properties + +; `<<filter filter>>` +: for the `x-filter` properties + +; `<<transition transition>>` +: for the `x-transition` properties + +; `<<transform-origin origin>>` +: for the `x-transition-origin` properties + +; `<<background-linear-gradient gradient>>` +: for the `x-linear-gradient` values of the `background-image` property + +; `<<column-count columns>>` +: for the `x-column-count` property \ No newline at end of file diff --git a/editions/tw5.com/tiddlers/macros/StylesheetMacros.tid b/editions/tw5.com/tiddlers/macros/StylesheetMacros.tid index 5d7955dba0..24608d23d7 100644 --- a/editions/tw5.com/tiddlers/macros/StylesheetMacros.tid +++ b/editions/tw5.com/tiddlers/macros/StylesheetMacros.tid @@ -1,25 +1,10 @@ created: 20150221181835000 -modified: 20230803034031256 +modified: 20251101090648379 tags: Macros [[Core Macros]] title: Stylesheet Macros type: text/vnd.tiddlywiki -The following core [[macros|Macros]] make it easy to specify alternative browser-specific properties when constructing a [[stylesheet|Cascading Style Sheets]] tiddler: - -;`<<box-shadow shadow>>` -: for the `x-box-shadow` properties -;`<<filter filter>>` -: for the `x-filter` properties -;`<<transition transition>>` -: for the `x-transition` properties -;`<<transform-origin origin>>` -: for the `x-transition-origin` properties -;`<<background-linear-gradient gradient>>` -: for the `x-linear-gradient` values of the `background-image` property -;`<<column-count columns>>` -: for the `x-column-count` property - -The following macros are documented separately: +The following stylesheet macros are documented separately: * <<.mlink colour>> * <<.mlink datauri>> diff --git a/editions/tw5.com/tiddlers/releasenotes/5.4.0/#9242.tid b/editions/tw5.com/tiddlers/releasenotes/5.4.0/#9242.tid new file mode 100644 index 0000000000..65b62d8514 --- /dev/null +++ b/editions/tw5.com/tiddlers/releasenotes/5.4.0/#9242.tid @@ -0,0 +1,10 @@ +title: $:/changenotes/5.4.0/#9242 +description: Deprecate CSS macros supported in 2017 baseline +release: 5.4.0 +tags: $:/tags/ChangeNote +change-type: deprecation +change-category: developer +github-links: https://github.com/TiddlyWiki/TiddlyWiki5/pull/9242 +github-contributors: Leilei332 + +Mark CSS macros supported in 2017 baseline as deprecated. They are moved to [[$:/core/macros/deprecated]] now. \ No newline at end of file