Bug 660682. Let anonymous blocks in IB splits inherit opacity from their first inline, so that 'opacity' applies to the contents of a split inline. r=bz
authorRobert O'Callahan <robert@ocallahan.org>
Fri, 17 Jun 2011 15:36:07 +1200
changeset 71206 b58ba54bdcbd5f6208289acec883ffcf36539f85
parent 71205 cc18551d5cc3971f645c40220f54cf80360213d9
child 71207 1631f3557eaea3629ad9610c7717425828c299dd
push id102
push userrocallahan@mozilla.com
push dateFri, 17 Jun 2011 03:49:45 +0000
treeherdermozilla-inbound@a33c32eca2f9 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbz
bugs660682
milestone7.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 660682. Let anonymous blocks in IB splits inherit opacity from their first inline, so that 'opacity' applies to the contents of a split inline. r=bz
layout/reftests/bugs/660682-1-ref.html
layout/reftests/bugs/660682-1.html
layout/reftests/bugs/reftest.list
layout/style/ua.css
new file mode 100644
--- /dev/null
+++ b/layout/reftests/bugs/660682-1-ref.html
@@ -0,0 +1,8 @@
+<!DOCTYPE html>
+<html>
+<body style="opacity:0.4;">
+Alpha
+<div>Gamma</div>
+Delta
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/bugs/660682-1.html
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<html>
+<body>
+<span style="opacity:0.4;">
+Alpha
+<div>Gamma</div>
+Delta
+</span>
+</body>
+</html>
--- a/layout/reftests/bugs/reftest.list
+++ b/layout/reftests/bugs/reftest.list
@@ -1636,8 +1636,9 @@ HTTP(..) == 635639-2.html 635639-2-ref.h
 fails-if(layersGPUAccelerated&&cocoaWidget) == 650228-1.html 650228-1-ref.html # Quartz alpha blending doesn't match GL alpha blending
 == 653930-1.html 653930-1-ref.html
 HTTP(..) == 654057-1.html 654057-1-ref.html
 fails-if(layersGPUAccelerated&&cocoaWidget) == 654950-1.html 654950-1-ref.html # Quartz alpha blending doesn't match GL alpha blending
 == 652775-1.html 652775-1-ref.html
 == 655549-1.html 655549-1-ref.html
 != 656875.html about:blank
 == 658952.html 658952-ref.html
+== 660682-1.html 660682-1-ref.html
--- a/layout/style/ua.css
+++ b/layout/style/ua.css
@@ -126,16 +126,17 @@
 
 *|*::-moz-anonymous-block, *|*::-moz-anonymous-positioned-block {
   /* we currently inherit from the inline that is split */
   outline: inherit;
   outline-offset: inherit;
   clip-path: inherit;
   filter: inherit;
   mask: inherit;
+  opacity: inherit;
   -moz-box-ordinal-group: inherit !important;
 }
 
 *|*::-moz-xul-anonymous-block {
   display: block ! important;
   position: static ! important;
   float: none ! important;
   -moz-box-ordinal-group: inherit !important;