Closed Bug 793617 Opened 12 years ago Closed 12 years ago

implement mask-type property from CSS Masking

Categories

(Core :: SVG, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla20

People

(Reporter: heycam, Assigned: heycam)

References

(Blocks 1 open bug)

Details

(Keywords: dev-doc-complete)

Attachments

(1 file, 1 obsolete file)

Attached patch WIP (v0.1) (obsolete) — Splinter Review
The initially proposed maskType="" attribute on <mask> morphed into a mask-type property that applies to <mask> elements last week during the SVG WG's F2F.  A WebKit implementation landed later that week (perhaps a record time between spec change and implementation appearing?): http://trac.webkit.org/changeset/129018

Attached is a WIP implementation.

David, can you give some guidance on what we should be doing here with prefixes?
Attachment #663963 - Flags: feedback?(dbaron)
Comment on attachment 663963 [details] [diff] [review]
WIP (v0.1)

I think we should not prefix.  If WebKit-based browsers are shipping this, then it's fine for us to ship it too; if not, we probably want to put it behind a pref if the spec isn't stable yet.
Attachment #663963 - Flags: feedback?(dbaron) → feedback+
And you need to add to property_database.js and then make sure the layout/style mochitests pass.
Attached patch patchSplinter Review
r?longsonr for {content,layout}/svg/ changes, r?dbaron for the rest.  I've used layout.css.masking.enabled as the pref to put this behind, with the expectation that other things we implement from the CSS Masking specification go behind that pref too.
Attachment #663963 - Attachment is obsolete: true
Attachment #678965 - Flags: review?(longsonr)
Attachment #678965 - Flags: review?(dbaron)
Comment on attachment 678965 [details] [diff] [review]
patch

I'd like to see a SMIL animation reftest too.
Attachment #678965 - Flags: review?(longsonr) → review+
Comment on attachment 678965 [details] [diff] [review]
patch

r=dbaron on the parts requested
Attachment #678965 - Flags: review?(dbaron) → review+
Is there any reason not to land this?
We just this morning had a telcon where we resolved some concerns about the naming of this property.  So I will be landing it today.
https://hg.mozilla.org/mozilla-central/rev/e043d5feb0b6
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Flags: in-testsuite?
Resolution: --- → FIXED
Target Milestone: --- → mozilla20
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: