Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/servo/components/style/values/resolved/   (Firefox Browser Version 136.0.1©)  Datei vom 10.2.2025 mit Größe 1 kB image not shown  

Quelle  animation.rs

  Sprache: Rust
 

/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at https://mozilla.org/MPL/2.0/. */


//! Resolved animation values.

use super::{Context, ToResolvedValue};

use crate::values::computed::time::Time;
use crate::values::computed::AnimationDuration;

impl ToResolvedValue for AnimationDuration {
    type ResolvedValue = Self;

    fn to_resolved_value(self, context: &Context) -> Self::ResolvedValue {
        match self {
            // For backwards-compatibility with Level 1, when the computed value of
            // animation-timeline is auto (i.e. only one list value, and that value being auto),
            // the resolved value of auto for animation-duration is 0s whenever its used value
            // would also be 0s.
            // https://drafts.csswg.org/css-animations-2/#animation-duration
            Self::Auto if context.style.get_ui().has_initial_animation_timeline() => {
                Self::Time(Time::from_seconds(0.0f32))
            },
            _ => self,
        }
    }

    #[inline]
    fn from_resolved_value(value: Self::ResolvedValue) -> Self {
        value
    }
}

Messung V0.5 in Prozent
C=87 H=100 G=93

¤ Dauer der Verarbeitung: 0.13 Sekunden  (vorverarbeitet am  2026-06-19) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.