question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Math operator / don't work

See original GitHub issue

Hello, i use last version gulp-sass 4.0.2 SASS .class { line-heght: 14 / 10; } compile to CSS .class { line-heght: 14 / 10; } But this should be line-heght: 1.4;

I use defaul gulp settings:

// Process, lint, and minify Sass files
var buildStyles = function (done) {

// Run tasks on all Sass files
return src(paths.styles.input)
	.pipe(sass({
		outputStyle: 'expanded',
		sourceComments: false
	}))
	.pipe(postcss([
		prefix({
			cascade: true,
			remove: true
		})
	]))
	.pipe(header(banner.main, {package: package}))
	.pipe(dest(paths.styles.output))
	.pipe(rename({suffix: '.min'}))
	.pipe(postcss([
		minify({
			discardComments: {
				removeAll: true
			}
		})
	]))
	.pipe(dest(paths.styles.output));

};

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
albedoacommented, Mar 27, 2020

The symbol / is used in shorthand CSS properties. The behavior observed by OP is correct.

0reactions
XhmikosRcommented, Dec 28, 2021

@xzyfer this is also unrelated to gulp-sass.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Javascript arithmetic operator not working - Stack Overflow
Because subTotal is a string (since you used toFixed ), make it var sub_total = parseFloat((rate * quantity) + sub_total); sub_total ...
Read more >
Small problem with the Mathematical operation
There is a small problem with a following very simple expression: =-(A2+1)^2 It gives a false positive results, different form this: ...
Read more >
Error when defining a math operator and corresponding ...
I tried to define a new math operator - essentially a math macro. I wanted to define an operator for the Eccentricity of...
Read more >
Basic operators, maths - The Modern JavaScript Tutorial
In this chapter, we'll start with simple operators, then concentrate on JavaScript-specific aspects, not covered by school arithmetic.
Read more >
Arithmetic operators - cppreference.com
The only situation where it is not a no-op is when the operand has integral type or unscoped enumeration type, which is changed...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found