Closed Bug 1509694 Opened 6 years ago Closed 5 years ago

[wpt-sync] Sync PR 14223 - SVG: clamp *-opacity computed value to [0,1]

Categories

(Core :: SVG, enhancement, P4)

enhancement

Tracking

()

RESOLVED FIXED
mozilla66
Tracking Status
firefox66 --- fixed

People

(Reporter: mozilla.org, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 14223 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/14223
Details from upstream follow.

Eric Willigers <ericwilligers@chromium.org> wrote:
>  SVG: clamp *-opacity computed value to [0,1]
>  
>  https://svgwg.org/svg2-draft/painting.html#FillOpacity
>  https://svgwg.org/svg2-draft/painting.html#StrokeOpacity
>  https://drafts.fxtf.org/filter-effects/#FloodOpacityProperty
>  Computed value:	the specified value converted to a number, clamped to the range [0,1]
>  
>  BUG=908058
>  
>  Change-Id: I2cb10017c1a42eb991af9ae31c03895847d7f52b
>  Reviewed-on: https://chromium-review.googlesource.com/1350369
>  WPT-Export-Revision: 4a02121685097ba051be55bd1a74a7dd211efa14
Component: web-platform-tests → SVG
Product: Testing → Core
Ran 8 tests and 28 subtests
OK     : 8
PASS   : 22
FAIL   : 6

New tests that have failures or other problems:
/css/filter-effects/parsing/flood-opacity-valid.svg
    e.style['flood-opacity'] = "-100%" should set the property value: FAIL
    e.style['flood-opacity'] = "300%" should set the property value: FAIL
    e.style['flood-opacity'] = "50%" should set the property value: FAIL
/svg/pservers/parsing/stop-opacity-valid.svg
    e.style['stop-opacity'] = "-100%" should set the property value: FAIL
    e.style['stop-opacity'] = "300%" should set the property value: FAIL
    e.style['stop-opacity'] = "50%" should set the property value: FAIL
Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/763b81a477a9
[wpt PR 14223] - SVG: clamp *-opacity computed value to [0,1], a=testonly
https://hg.mozilla.org/integration/mozilla-inbound/rev/8b2dd9baa2e0
[wpt PR 14223] - Update wpt metadata, a=testonly
Pushed by james@hoppipolla.co.uk:
https://hg.mozilla.org/integration/mozilla-inbound/rev/bd50d62b07ec
[wpt PR 14223] - SVG: clamp *-opacity computed value to [0,1], a=testonly
https://hg.mozilla.org/integration/mozilla-inbound/rev/3928e8ca2ca6
[wpt PR 14223] - Update wpt metadata, a=testonly
https://hg.mozilla.org/mozilla-central/rev/bd50d62b07ec
https://hg.mozilla.org/mozilla-central/rev/3928e8ca2ca6
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla66
You need to log in before you can comment on or make changes to this bug.