mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-10 19:46:03 +00:00
LibWeb: Handle flood-opacity
in line with other opacity properties
We now do the proper thing in terms of: - Allowing percentages - Returning the computed value in getComputedStyle - Handling values out of the [0,1] range Gains us 13 WPT passes in the imported tests.
This commit is contained in:
parent
6f39c30704
commit
4ee8110449
Notes:
github-actions[bot]
2025-07-18 15:06:07 +00:00
Author: https://github.com/Calme1709
Commit: 4ee8110449
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5502
Reviewed-by: https://github.com/tcl3 ✅
7 changed files with 84 additions and 1 deletions
|
@ -0,0 +1,14 @@
|
|||
Harness status: OK
|
||||
|
||||
Found 8 tests
|
||||
|
||||
6 Pass
|
||||
2 Fail
|
||||
Pass Property flood-opacity value '-1'
|
||||
Pass Property flood-opacity value '0.5'
|
||||
Pass Property flood-opacity value '3'
|
||||
Pass Property flood-opacity value '-100%'
|
||||
Pass Property flood-opacity value '50%'
|
||||
Pass Property flood-opacity value '300%'
|
||||
Fail Property flood-opacity value 'calc(0.5 * sign(10em - 1px))'
|
||||
Fail Property flood-opacity value 'calc(50% * sign(10em - 1px))'
|
|
@ -0,0 +1,12 @@
|
|||
Harness status: OK
|
||||
|
||||
Found 7 tests
|
||||
|
||||
7 Pass
|
||||
Pass e.style['flood-opacity'] = "-1" should set the property value
|
||||
Pass e.style['flood-opacity'] = "0.5" should set the property value
|
||||
Pass e.style['flood-opacity'] = "3" should set the property value
|
||||
Pass e.style['flood-opacity'] = "-100%" should set the property value
|
||||
Pass e.style['flood-opacity'] = "50%" should set the property value
|
||||
Pass e.style['flood-opacity'] = "300%" should set the property value
|
||||
Pass e.style['flood-opacity'] = "calc(0.5 * sign(10em - 1px))" should set the property value
|
Loading…
Add table
Add a link
Reference in a new issue