/css/css-color/parsing/opacity-valid.html| status | subtest | message |
|---|---|---|
| PASS | e.style['opacity'] = "1" should set the property value | |
| PASS | e.style['opacity'] = "0.5" should set the property value | |
| PASS | e.style['opacity'] = "0" should set the property value | |
| PASS | e.style['opacity'] = "-2" should set the property value | |
| PASS | e.style['opacity'] = "3" should set the property value | |
| PASS | e.style['opacity'] = "-100%" should set the property value | |
| PASS | e.style['opacity'] = "50%" should set the property value | |
| PASS | e.style['opacity'] = "300%" should set the property value | |
| FAIL | e.style['opacity'] = "calc(-50% - 50%)" should set the property value | assert_equals: serialization should be canonical expected "calc(-100%)" but got "calc(-1)" |
| FAIL | e.style['opacity'] = "calc(25% * 2)" should set the property value | assert_equals: serialization should be canonical expected "calc(50%)" but got "calc(0.5)" |
| FAIL | e.style['opacity'] = "calc(100% + 100%)" should set the property value | assert_equals: serialization should be canonical expected "calc(200%)" but got "calc(2)" |
| PASS | e.style['opacity'] = "calc(-0.5 - 0.5)" should set the property value | |
| PASS | e.style['opacity'] = "calc(0.25 * 2)" should set the property value | |
| PASS | e.style['opacity'] = "calc(1 + 1)" should set the property value | |
| FAIL | e.style['opacity'] = "clamp(50%, 0%, 70%)" should set the property value | assert_equals: serialization should be canonical expected "calc(50%)" but got "calc(0.5)" |
| FAIL | e.style['opacity'] = "clamp(50%, 80%, 70%)" should set the property value | assert_equals: serialization should be canonical expected "calc(70%)" but got "calc(0.7)" |
| FAIL | e.style['opacity'] = "clamp(50%, 60%, 70%)" should set the property value | assert_equals: serialization should be canonical expected "calc(60%)" but got "calc(0.6)" |
| FAIL | e.style['opacity'] = "min(50%, 0%)" should set the property value | assert_equals: serialization should be canonical expected "calc(0%)" but got "calc(0)" |
| FAIL | e.style['opacity'] = "min(0%, 50%)" should set the property value | assert_equals: serialization should be canonical expected "calc(0%)" but got "calc(0)" |
| FAIL | e.style['opacity'] = "max(50%, 0%)" should set the property value | assert_equals: serialization should be canonical expected "calc(50%)" but got "calc(0.5)" |
| FAIL | e.style['opacity'] = "max(0%, 50%)" should set the property value | assert_equals: serialization should be canonical expected "calc(50%)" but got "calc(0.5)" |
| FAIL | e.style['opacity'] = "min(-40%, 50%)" should set the property value | assert_equals: serialization should be canonical expected "calc(-40%)" but got "calc(-0.4)" |
| PASS | e.style['opacity'] = "clamp(0.5, 0, 0.7)" should set the property value | |
| PASS | e.style['opacity'] = "clamp(0.5, 0.8, 0.7)" should set the property value | |
| PASS | e.style['opacity'] = "clamp(0.5, 0.6, 0.7)" should set the property value | |
| PASS | e.style['opacity'] = "min(0.5, 0)" should set the property value | |
| PASS | e.style['opacity'] = "min(0, 0.5)" should set the property value | |
| PASS | e.style['opacity'] = "max(0.5, 0)" should set the property value | |
| PASS | e.style['opacity'] = "max(0, 0.5)" should set the property value | |
| PASS | e.style['opacity'] = "min(-0.4, 0.5)" should set the property value |
bundle built 2026-07-16T07:16:48.063Z