From 86197488419ececd2274ccd7231ae64269508408 Mon Sep 17 00:00:00 2001 From: alstjr7375 Date: Sun, 24 Apr 2022 22:30:22 +0900 Subject: [PATCH] Doc: Restrictions - Move order --- docs/Preference.md | 2 +- docs/Restrictions.md | 25 +++++++++++++------------ 2 files changed, 14 insertions(+), 13 deletions(-) diff --git a/docs/Preference.md b/docs/Preference.md index 14d3a25..acb6351 100644 --- a/docs/Preference.md +++ b/docs/Preference.md @@ -160,7 +160,7 @@ pref("general.config.obscure_value", 0); **Restrictions** -Please refer to [Doc: Restrictions.md](./Restrictions.md#option) +Please refer to [Doc: Restrictions.md](./Restrictions.md#supports)'s `@support`. **Example** diff --git a/docs/Restrictions.md b/docs/Restrictions.md index 67be772..c1476ce 100644 --- a/docs/Restrictions.md +++ b/docs/Restrictions.md @@ -11,9 +11,9 @@ * [DOM structure cannot be modified](#dom-structure-cannot-be-modified) * [Shadow DOM](#shadow-dom) * [XUL](#xul) + * [Supports](#supports) * [Namespace](#namespace) * [Import](#import) - * [Option](#option) @@ -132,6 +132,18 @@ Example of legacy documents that will help. Another case. Like [``](https://udn.realityripple.com/docs/Archive/Mozilla/XUL/Attribute/align), [`attributes`](https://udn.realityripple.com/docs/Archive/Mozilla/XUL/Attribute) is set and CSS of same property may not be appplied. (Ex. [`box-align: start`](https://udn.realityripple.com/docs/Web/CSS/box-align)) +### Supports +[`@supports`](https://developer.mozilla.org/en-US/docs/Web/CSS/@supports) change in CSS is not detected in real time. (Only start time) + +So a restart is required, and if the mozilla need real time changes, are using `@media` to handle it. + +If project only use pure CSS, we cannot add `@media rules`. + +- [Bug 1267890 - Support detecting bool preferences in chrome stylesheets](https://bugzilla.mozilla.org/show_bug.cgi?id=1267890) +- [Bug 1698132 - Improve caching behaviour of -moz-bool-pref](https://bugzilla.mozilla.org/show_bug.cgi?id=1698132) + +This restriction is also related to the [Doc: Preference.md](./Preference.md#using-with-user-custom-css). + ### Namespace In older codes, the following [namespace](https://developer.mozilla.org/en-US/docs/Web/CSS/@namespace) is commonly seen: @@ -200,14 +212,3 @@ Any [`@namespace`](https://developer.mozilla.org/en-US/docs/Web/CSS/@namespace) /* After - Namespace */ @import url("YourFile.css"); /* Not Works */ ``` - -### Option -`@supports` change in CSS is not detected in real time. (Only start time) -See [Doc: Preference.md](./Preference.md#using-with-user-custom-css) for how to use. - -So a restart is required, and if the mozilla need real time changes, are using `@media` to handle it. - -If project only use pure CSS, we cannot add `@media rules`. - -- [Bug 1267890 - Support detecting bool preferences in chrome stylesheets](https://bugzilla.mozilla.org/show_bug.cgi?id=1267890) -- [Bug 1698132 - Improve caching behaviour of -moz-bool-pref](https://bugzilla.mozilla.org/show_bug.cgi?id=1698132)