Get rid of background-clip:text and PaintBehaviorForceBlackText.
http://blog.ericzhang.com/punch-through-text-masks-with-css-and-html5/
shows that you can achieve the similar effects using canvas. This
doesn't need to be built into the core engine. It's OK for this
to require more than a line of CSS to achieve.
Unfortunately, the test included this this patch doesn't actually
show that I didn't break anything because background-image
is broken. I got the test from
47e0d126e8%5E%21/#F4
R=eseidel@chromium.org
Review URL: https://codereview.chromium.org/756183004
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
layer at (0,0) size 800x600
|
||||
RenderView {#document} at (0,0) size 800x600
|
||||
layer at (0,0) size 800x238
|
||||
RenderBlock {sky} at (0,0) size 800x238
|
||||
RenderBlock (anonymous) at (0,0) size 800x38
|
||||
RenderText {#text} at (0,0) size 778x38
|
||||
text run at (0,0) width 778: "Test passes if the image below shows nested green, blue and yellow squares with a dotted black"
|
||||
text run at (0,19) width 59: "border."
|
||||
RenderBlock {div} at (0,38) size 200x200 [border: (25px dotted #000000)]
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
<sky>
|
||||
<import src="../resources/dump-as-render-tree.sky" />
|
||||
<style>
|
||||
div {
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
padding: 25px;
|
||||
border: 25px dotted;
|
||||
/* TODO(ojan): background-image appears to be broken. */
|
||||
background-image: linear-gradient(top, yellow, yellow), linear-gradient(top, blue, blue), -linear-gradient(top, green, green);
|
||||
background-clip: content-box, padding-box, border-box;
|
||||
}
|
||||
</style>
|
||||
<!-- TODO(ojan): Make this a reftest once we support them. -->
|
||||
Test passes if the image below shows nested green, blue and yellow squares with a dotted black border.
|
||||
<div></div>
|
||||
</sky>
|
||||
Reference in New Issue
Block a user