Bug 81039
| Summary: | Remove skew() transformation function (leaving skewX() and skewY()) | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Dirk Schulze <krit> |
| Component: | CSS | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW | ||
| Severity: | Normal | CC: | ayg, dino, peter, roc, simon.fraser |
| Priority: | P2 | Keywords: | WebExposed |
| Version: | 528+ (Nightly build) | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| URL: | https://www.w3.org/Bugs/Public/show_bug.cgi?id=16300 | ||
Dirk Schulze
Transform editors seem to agree that skew() should get removed from the CSS3 Transform spec. skew is not doing what it suggests to do with questionable mathematical formulas. The skew() function should be removed, once it is removed from the WD of the spec.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Simon Fraser (smfr)
It should be removed when we parse unprefixed 'transform', yes. We should leave it in the prefixed one.
Dirk Schulze
(In reply to comment #1)
> It should be removed when we parse unprefixed 'transform', yes. We should leave it in the prefixed one.
Do I understand it correctly? You want not to support skew() on unprefixed, but we will still support skew() for the prefixed version, even if we unprefixed transform?
Simon Fraser (smfr)
Yes.
Robert O'Callahan
If you continue support -webkit-transform:skew(), then authors will use it and copy-paste skew() into unprefixed 'transform', so we'll never be able to stop supporting it.
Simon Fraser (smfr)
You could make the same argument for any change between prefixed and unprefixed properties. We can't remove it from the prefixed property and risk breaking walled-garden Apple content.
Dirk Schulze
(In reply to comment #4)
> If you continue support -webkit-transform:skew(), then authors will use it and copy-paste skew() into unprefixed 'transform', so we'll never be able to stop supporting it.
We won't support it for transform un-prefixed. Authors will realize the difference when they try it on un-prefixed versions of 'transform'. We have at least one test from Aryeh in the CSS testing harness that will clearly fail on WebKit if we still support it.
Even so, if authors would still use '-webkit-' it won't get supported by Firefox anyway (till you implement the webkit prefix).
And the last point: I never saw any usage of skew() in the wild so far. And I can't imagine a sense full way to use it. I bet no one will realize that skew() was removed since no one ever used it.
Robert O'Callahan
> Authors will realize the difference when they try it on un-prefixed versions
> of 'transform'.
Not if they only test in Webkit, since if they write
-webkit-transform:skew();
transform:skew();
the latter will be ignored and the former will continue to work.
> I bet no one will realize that skew() was removed since no one ever used it.
Let's hope so.
Dean Jackson
I've seen in-the-wild use of skew to do horrible 3d-ish replications, or possibly isometric stuff. I still want to kill the function though.
Simon Fraser (smfr)
Oh you mean like http://www.zachstronaut.com/lab/isocube.html
Aryeh Gregor
Gecko removed the feature for Firefox 14, which was just released:
https://bugzilla.mozilla.org/show_bug.cgi?id=734953
We've received five compatibility complaints so far, marked as blocking that bug:
https://bugzilla.mozilla.org/show_bug.cgi?id=747637
https://bugzilla.mozilla.org/show_bug.cgi?id=771180
https://bugzilla.mozilla.org/show_bug.cgi?id=775046
https://bugzilla.mozilla.org/show_bug.cgi?id=775710
https://bugzilla.mozilla.org/show_bug.cgi?id=775763
I think all of them used skew(a) or skew(a, 0) instead of skewX(a) -- I don't think any were using skew(a, b) with a, b != 0 except for demos that let you use all the transform functions. They're all easily fixed, obviously.
Could WebKit please remove these functions already? We agreed that we were all going to drop them, and it's not very nice for Mozilla to have to shoulder all the complaints of "every other browser supports it, why did you break my pages?" There are evidently compatibility issues here, but small ones.
(In reply to comment #7)
> > Authors will realize the difference when they try it on un-prefixed versions
> > of 'transform'.
>
> Not if they only test in Webkit, since if they write
> -webkit-transform:skew();
> transform:skew();
> the latter will be ignored and the former will continue to work.
Once WebKit unprefixes, it will break for them too, right? Walled-garden content probably won't break, because probably authors of walled-garden content won't bother to specify both properties.
Simon Fraser (smfr)
We can remove them when we drop prefixes, not before.
Aryeh Gregor
Mozilla is re-adding skew() support, and requesting that the spec be reverted to require it again:
https://bugzilla.mozilla.org/show_bug.cgi?id=747637
https://www.w3.org/Bugs/Public/show_bug.cgi?id=18436
Simon Fraser (smfr)
We failed to remove skew() when dropping prefixes :|