Public bug reported:

Tailwind CSS and other frameworks use expressions like 
`line-height: calc(1.25/0.875)`

While it works on the Mac Chrome version, it returns the astronomical
value 3.40282e+38px for the Docker ubuntu image (FROM ubuntu:latest)

HTML to reproduce
`<html style="line-height: calc(1.25/0.875)"> </html>`
Seems to round down the divisor to an integer 0, and it returns FLT_MAX 


`<html style="line-height: calc(1.25/1.875)"> </html>`
works fine

0. uname -a
Linux 0fe40a5deb66 6.10.14-linuxkit #1 SMP Tue Apr 15 16:00:54 UTC 2025 x86_64 
x86_64 x86_64 GNU/Linux
  
 # Google downloaded from 
https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
google-chrome-stable --version
Google Chrome 137.0.7151.55

** Affects: chromium-browser (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2111942

Title:
  calc() returns astronomic values for divisor less than 1

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/chromium-browser/+bug/2111942/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to