All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.sonar.l10n.css.rules.css.S4650.html Maven / Gradle / Ivy

There is a newer version: 10.17.0.28100
Show newest version

calc is a CSS3 function that provides the possibility to do simple math in CSS (add, subtract, divide, multiply). Without spaces around operators, calc will have no effect.

More precisely, before an operator, there must be a single whitespace or a newline plus indentation. After an operator, there must be a single whitespace or a newline.

Noncompliant Code Example

#div1 {
    position: absolute;
    width: calc(100%- 100px); /* Noncompliant; no space after the % sign */
}

Compliant Solution

#div1 {
    position: absolute;
    width: calc(100% - 100px);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy