RESOLVED FIXED 103083
-webkit-mask shorthand switches -webkit-mask-clip and -webkit-mask-origin values
https://bugs.webkit.org/show_bug.cgi?id=103083
Summary -webkit-mask shorthand switches -webkit-mask-clip and -webkit-mask-origin values
Dirk Schulze
Reported 2012-11-22 10:09:05 PST
I wrote a test for -webkit-mask and found a problem with the handling of <box>{1,2} values (-webkit-mask-clip and -webkit-mask-origin). What ever you do, the values always get switched. This is not the case for background: PASS innerStyle("background", "none padding-box content-box") is "none padding-box content-box" PASS innerStyle("background", "none content-box padding-box") is "none content-box padding-box" FAIL innerStyle("-webkit-mask", "none padding-box content-box") should be none padding-box content-box. Was none content-box padding-box. FAIL innerStyle("-webkit-mask", "none content-box padding-box") should be none content-box padding-box. Was none padding-box content-box. Same happens in all combination of <box>: border-box, padding-box and content-box.
Attachments
Patch (12.61 KB, patch)
2012-11-22 12:56 PST, Dirk Schulze
no flags
Dirk Schulze
Comment 1 2012-11-22 10:11:58 PST
Looks like the problem is in const StylePropertyShorthand& webkitMaskShorthand(), where both properties are in the wrong order.
Dirk Schulze
Comment 2 2012-11-22 12:56:33 PST
Dirk Schulze
Comment 3 2012-11-22 21:09:35 PST
Comment on attachment 175704 [details] Patch Clearing flags on attachment: 175704 Committed r135556: <http://trac.webkit.org/changeset/135556>
Dirk Schulze
Comment 4 2012-11-22 21:09:38 PST
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.