Movatterモバイル変換


[0]ホーム

URL:


  1. Web
  2. Web-APIs
  3. CSSFontFeatureValuesMap
  4. clear()

Dieser Inhalt wurde automatisch aus dem Englischen übersetzt, und kann Fehler enthalten.Erfahre mehr über dieses Experiment.

View in EnglishAlways switch to English

CSSFontFeatureValuesMap: clear() Methode

Limited availability

This feature is not Baseline because it does not work in some of the most widely-used browsers.

Dieclear()-Methode der SchnittstelleCSSFontFeatureValuesMap entfernt alle Deklarationen in derCSSFontFeatureValuesMap.

Syntax

js
clear()

Parameter

Keine.

Rückgabewert

Keine (undefined).

Beispiele

Grundlegende Verwendung

Das folgende Beispiel entfernt alle Deklarationen innerhalb des@swash-Funktionsblocks. Dieses Beispiel verwendet@swash, funktioniert aber auch mit anderenFunktionswertblöcken.

CSS

css
@font-feature-values "MonteCarlo" {  @swash {    swishy: 1;    swashy: 2;  }}

JavaScript

js
// get the rulesconst myRule = document.styleSheets[0].cssRules[0];console.log(myRule.swash.size); // logs 2myRule.swash.clear();console.log(myRule.swash.size); // logs 0

Spezifikationen

Specification
CSS Fonts Module Level 4
# cssfontfeaturevaluesmap

Browser-Kompatibilität

Siehe auch

Help improve MDN

Learn how to contribute Diese Seite wurde automatisch aus dem Englischen übersetzt.

[8]ページ先頭

©2009-2026 Movatter.jp