html - Chrome CSS Perspective not working on all blocks -



html - Chrome CSS Perspective not working on all blocks -

i have unusual behaviour on webshop developing. in google chrome 1 of 2 divs should rotated remains flat. other 1 rotated. works fine in firefox.

any thought wrong?

here screenshots (chrome on left , firefox on right):

here relevant html , css code:

<div id="live-preview" class="live-preview portrait" style="color: rgb(192, 192, 192); font-family: helvetica;"> <div class="bg-image" id="back" style="background-image: url(http://www.fastermaster.at//templates/diplombinderei.at/images/material/0.jpg);"> <div class="bg-color" id="back-bg" style="background: rgba(0, 0, 0, 0.498039);"> </div> </div> <div class="bg-image" id="spine" style="background-image: url(http://www.fastermaster.at//templates/diplombinderei.at/images/material/0.jpg);"> <div class="bg-color" id="spine-bg" style="background: rgba(0, 0, 0, 0.498039);"> <span class="first-line"></span> <span class="second-line"></span> </div> </div> <div class="bg-image" id="front" style="background-image: url(http://www.fastermaster.at//templates/diplombinderei.at/images/material/0.jpg);"> <div class="bg-color" id="front-bg" style="background: rgba(0, 0, 0, 0.498039);"> <span class="first-line typo-big typo-center">just sometext</span> <span class="second-line"></span> <span class="third-line"></span> </div> </div> </div> .portrait #front { right: 7; } .portrait #back, .portrait #front { position: absolute; width: 132px; height: 214px; } #front { transform: rotatey(7deg); -webkit-transform: rotatey(7deg); -ms-transform: rotatey(7deg); } html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video { margin: 0; padding: 0; border: 0; font-size: 100%; font: inherit; vertical-align: baseline; text-decoration: none; } user agent stylesheetdiv { display: block; } inherited div#live-preview.live-preview.portrait style attribute { color: rgb(192, 192, 192); font-family: helvetica; } .live-preview { font-family: times; position: relative; margin-left: auto; margin-right: auto; margin-top: 30px; margin-bottom: 30px; perspective: 252px; -webkit-perspective: 252px; -ms-perspective: 252px; perspective-origin: 50% -68%; -webkit-perspective-origin-x: 50%; -webkit-perspective-origin-y: -68%; -ms-perspective-origin-x: 50%; -ms-perspective-origin-y: -68%; }

you can see live page @ http://www.fastermaster.at/konfigurator

edit:

i tried opening page in incognito mode, chrome extensions inactive, result still same.

usually cross-browser transform

#front { transform: rotate(15deg); -moz-transform: rotate(15deg); /* firefox */ -ms-transform: rotate(15deg); /* ie */ -webkit-transform: rotate(15deg); /* safari, chrome, ios */ -o-transform: rotate(15deg); /* opera */ }

html css google-chrome

Comments

Popular posts from this blog

assembly - What is the addressing mode for ld, add, and rjmp instructions? -

vowpalwabbit - Interpreting Vowpal Wabbit results: Why are some lines appended by "h"? -

Is there a way to convert an HTML page styled with Bootstrap CSS into email-compatible html? -