Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

translateZ fails to render transform #10313

Open
JasonWeathersby opened this issue Mar 31, 2016 · 2 comments
Open

translateZ fails to render transform #10313

JasonWeathersby opened this issue Mar 31, 2016 · 2 comments

Comments

@JasonWeathersby
Copy link

@JasonWeathersby JasonWeathersby commented Mar 31, 2016

Removing translateZ allow the transform to work. Attaching simple test file.

@JasonWeathersby
Copy link
Author

@JasonWeathersby JasonWeathersby commented Mar 31, 2016

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <title></title>

    <style>
        .tst-grow {
            display: inline-block;
            vertical-align: middle;
            -webkit-transform: translateZ(0); /* Servo is failing on translateZ(0) */
            transform: translateZ(0); /* remove both lines and it works */
            -webkit-transition-duration: 0.3s;
            transition-duration: 0.3s;
            -webkit-transition-property: transform;
            transition-property: transform;
        }
        .tst-grow:hover,
        .tst-grow:focus,
        .tst-grow:active {
            -webkit-transform: scale(1.1);
            transform: scale(1.1);
        }
    </style>

</head>

<body>
    <a href="#" class="tst-grow">Grow</a>
</body>

</html>
@nox
Copy link
Member

@nox nox commented Oct 1, 2017

This is still true.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.