LibWeb: Resolve percentages for opacity properties at parse time

This commit is contained in:
Tim Ledbetter 2025-06-18 17:44:58 +01:00 committed by Jelle Raaijmakers
commit 269d5bb40e
Notes: github-actions[bot] 2025-06-19 08:28:47 +00:00
6 changed files with 87 additions and 4 deletions

View file

@ -138,8 +138,8 @@ ry: 'calc(2%)' -> '2%'
ry: 'calc(2% * var(--n))' -> 'calc(2 * 2%)'
stop-opacity: 'calc(2)' -> '2'
stop-opacity: 'calc(2 * var(--n))' -> '4'
stroke-opacity: 'calc(2%)' -> '2%'
stroke-opacity: 'calc(2% * var(--n))' -> '4%'
stroke-opacity: 'calc(2%)' -> '0.02'
stroke-opacity: 'calc(2% * var(--n))' -> '0.04'
stroke-width: 'calc(2px)' -> '2px'
stroke-width: 'calc(2px * var(--n))' -> '4px'
tab-size: 'calc(2px)' -> '2px'