| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 | 2 |
| 3 <html> | 3 <html> |
| 4 <head> | 4 <head> |
| 5 <style> | 5 <style> |
| 6 .container { | 6 .container { |
| 7 -webkit-perspective: 500px; | 7 -webkit-perspective: 500px; |
| 8 } | 8 } |
| 9 .set { | 9 .set { |
| 10 position: absolute; | 10 position: absolute; |
| 11 top: 8px; | 11 top: 8px; |
| 12 } | 12 } |
| 13 .box { | 13 .box { |
| 14 height: 100px; | 14 height: 100px; |
| 15 width: 100px; | 15 width: 100px; |
| 16 } | 16 } |
| 17 | 17 |
| 18 .hidden { | 18 .hidden { |
| 19 visibility: hidden; | 19 visibility: hidden; |
| 20 } | 20 } |
| 21 | 21 |
| 22 .visible { | 22 .visible { |
| 23 visibility: visible; | 23 visibility: visible; |
| 24 } | 24 } |
| 25 | 25 |
| 26 .should-be-visible { | 26 .should-be-visible { |
| 27 background-color: green !important; | 27 background-color: green !important; |
| 28 } | 28 } |
| 29 .composited { | 29 .composited { |
| 30 -webkit-transform: rotate3d(0, 0, 1, 45deg); | 30 transform: rotate3d(0, 0, 1, 45deg); |
| 31 } | 31 } |
| 32 | 32 |
| 33 .hidden-indicator { | 33 .hidden-indicator { |
| 34 background-color: red; | 34 background-color: red; |
| 35 } | 35 } |
| 36 | 36 |
| 37 .intermediate { | 37 .intermediate { |
| 38 -webkit-transform: rotate3d(0, 0, 1, -45deg); | 38 transform: rotate3d(0, 0, 1, -45deg); |
| 39 -webkit-transform-style: preserve-3d; | 39 -webkit-transform-style: preserve-3d; |
| 40 background-color: red; | 40 background-color: red; |
| 41 } | 41 } |
| 42 </style> | 42 </style> |
| 43 </head> | 43 </head> |
| 44 <body> | 44 <body> |
| 45 <!-- Tests that a transform on a hidden div affects its visible children. --> | 45 <!-- Tests that a transform on a hidden div affects its visible children. --> |
| 46 <!-- You should see a single green box, with no red. --> | 46 <!-- You should see a single green box, with no red. --> |
| 47 | 47 |
| 48 <div class="set"> | 48 <div class="set"> |
| 49 <div class="hidden-indicator box"></div> | 49 <div class="hidden-indicator box"></div> |
| 50 </div> | 50 </div> |
| 51 | 51 |
| 52 <div class="set"> | 52 <div class="set"> |
| 53 <div class="container"> | 53 <div class="container"> |
| 54 <div class="hidden intermediate"> | 54 <div class="hidden intermediate"> |
| 55 <div class="visible composited box should-be-visible"></div> | 55 <div class="visible composited box should-be-visible"></div> |
| 56 </div> | 56 </div> |
| 57 </div> | 57 </div> |
| 58 | 58 |
| 59 </div> | 59 </div> |
| 60 </body> | 60 </body> |
| 61 </html> | 61 </html> |
| OLD | NEW |