haikuwebkit/LayoutTests/css3/blending/background-blend-mode-tiled...

49 lines
1.5 KiB
HTML
Raw Permalink Normal View History

Source/WebCore: If you set a tiled cross-faded-image or a tiled gradient as a background layer, -webkit-background-blend-mode doesn't work. The problem consists in the blendMode parameter not being set for these specific drawing paths. https://bugs.webkit.org/show_bug.cgi?id=126888 Patch by Mihai Tica <mitica@adobe.com> on 2014-01-21 Reviewed by Dirk Schulze. Test: css3/compositing/background-blend-mode-tiled-layers.html * platform/graphics/CrossfadeGeneratedImage.cpp: (WebCore::CrossfadeGeneratedImage::drawPattern): Add the blendMode parameter and pass it to ImageBuffer::drawPattern. * platform/graphics/GradientImage.cpp: (WebCore::GradientImage::drawPattern): Add the blendMode parameter and pass it to ImageBuffer::drawPattern. * platform/graphics/ImageBuffer.h: Add a BlendMode parameter to the drawPattern method. * platform/graphics/cairo/ImageBufferCairo.cpp: (WebCore::ImageBuffer::drawPattern): Add the default BlendMode parameter to the method declaration. * platform/graphics/cg/ImageBufferCG.cpp: (WebCore::ImageBuffer::drawPattern): Add and use the blendMode parameter for all the code paths. * platform/graphics/wince/ImageBufferWinCE.cpp: (WebCore::BufferedImage::drawPattern): Add the default BlendMode parameter to the method declaration. LayoutTests: If you set a tiled cross-faded-image or a tiled gradient as a background layer, -webkit-background-blend-mode doesn't work. https://bugs.webkit.org/show_bug.cgi?id=126888 Patch by Mihai Tica <mitica@adobe.com> on 2014-01-21 Reviewed by Dirk Schulze. * css3/compositing/background-blend-mode-tiled-layers-expected.html: Added. * css3/compositing/background-blend-mode-tiled-layers.html: Added. * platform/efl/TestExpectations: Skip test for efl, blendModes are not implemented. * platform/mac/TestExpectations: Mark added test as ImageOnlyFailure due to slight differences between the actual result and the blending formula. Canonical link: https://commits.webkit.org/145354@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@162442 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2014-01-21 16:36:50 +00:00
<!DOCTYPE HTML>
<!-- Test background blend mode with several tiled layers. Test passes if you can see 6 lime squares. -->
[CSS Blending] Cleanup tests in css3/blending https://bugs.webkit.org/show_bug.cgi?id=132600 Reviewed by Mihnea Ovidenie. Summary of changes: - move common stylesheet classes to blending-style.css. - remove trailing white spaces. - replace tabs with spaces. - remove the 'html' tags for consistency with the most of blending tests. This patch does not change the txt and png test expectations. * css3/blending/background-blend-mode-background-attachement-fixed-expected.html: * css3/blending/background-blend-mode-background-attachement-fixed.html: * css3/blending/background-blend-mode-background-clip-content-box-expected.html: * css3/blending/background-blend-mode-background-clip-content-box.html: * css3/blending/background-blend-mode-background-clip-padding-box-expected.html: * css3/blending/background-blend-mode-background-clip-padding-box.html: * css3/blending/background-blend-mode-background-origin-border-box-expected.html: * css3/blending/background-blend-mode-background-origin-border-box.html: * css3/blending/background-blend-mode-background-position-percentage-expected.html: * css3/blending/background-blend-mode-background-position-percentage.html: * css3/blending/background-blend-mode-background-repeat-no-repeat-expected.html: * css3/blending/background-blend-mode-background-repeat-no-repeat.html: * css3/blending/background-blend-mode-background-size-contain-expected.html: * css3/blending/background-blend-mode-background-size-contain.html: * css3/blending/background-blend-mode-background-size-cover-expected.html: * css3/blending/background-blend-mode-background-size-cover.html: * css3/blending/background-blend-mode-body-image-expected.html: * css3/blending/background-blend-mode-body-image.html: * css3/blending/background-blend-mode-body-transparent-color-and-image-expected.html: * css3/blending/background-blend-mode-body-transparent-color-and-image.html: * css3/blending/background-blend-mode-body-transparent-image-expected.html: * css3/blending/background-blend-mode-body-transparent-image.html: * css3/blending/background-blend-mode-crossfade-image-expected.html: * css3/blending/background-blend-mode-crossfade-image.html: * css3/blending/background-blend-mode-data-uri-svg-image-expected.html: * css3/blending/background-blend-mode-data-uri-svg-image.html: * css3/blending/background-blend-mode-default-value.html: * css3/blending/background-blend-mode-different-image-formats.html: * css3/blending/background-blend-mode-gif-color-2.html: * css3/blending/background-blend-mode-gif-color.html: * css3/blending/background-blend-mode-gradient-color.html: * css3/blending/background-blend-mode-gradient-gradient.html: * css3/blending/background-blend-mode-gradient-image.html: * css3/blending/background-blend-mode-image-color-dynamic-expected.html: * css3/blending/background-blend-mode-image-color-dynamic.html: * css3/blending/background-blend-mode-image-color.html: * css3/blending/background-blend-mode-image-image.html: * css3/blending/background-blend-mode-image-svg.html: * css3/blending/background-blend-mode-multiple-background-layers.html: * css3/blending/background-blend-mode-separate-layer-declaration-expected.html: * css3/blending/background-blend-mode-separate-layer-declaration.html: * css3/blending/background-blend-mode-single-layer-no-blending.html: * css3/blending/background-blend-mode-svg-color.html: * css3/blending/background-blend-mode-svg-expected.html: * css3/blending/background-blend-mode-svg.html: * css3/blending/background-blend-mode-tiled-layers.html: * css3/blending/blend-mode-accelerated-parent-overflow-hidden-expected.html: * css3/blending/blend-mode-accelerated-parent-overflow-hidden.html: * css3/blending/blend-mode-accelerated-with-multiple-stacking-contexts.html: * css3/blending/blend-mode-ancestor-clipping-layer.html: * css3/blending/blend-mode-background.html: * css3/blending/blend-mode-blended-element-overlapping-composited-sibling-should-have-compositing-layer.html: * css3/blending/blend-mode-body-child-background-color-expected.html: * css3/blending/blend-mode-body-child-background-color.html: * css3/blending/blend-mode-body-child-isolate-background-color-expected.html: * css3/blending/blend-mode-body-child-isolate-background-color.html: * css3/blending/blend-mode-body-child-isolate-html-background-color-expected.html: * css3/blending/blend-mode-body-child-isolate-html-background-color.html: * css3/blending/blend-mode-body-child.html: * css3/blending/blend-mode-body-element-expected.html: * css3/blending/blend-mode-body-element.html: * css3/blending/blend-mode-clip-accelerated-blending-canvas.html: * css3/blending/blend-mode-clip-accelerated-blending-child-expected.html: * css3/blending/blend-mode-clip-accelerated-blending-child.html: * css3/blending/blend-mode-clip-accelerated-blending-double-expected.html: * css3/blending/blend-mode-clip-accelerated-blending-double.html: * css3/blending/blend-mode-clip-accelerated-blending-with-siblings-expected.html: * css3/blending/blend-mode-clip-accelerated-blending-with-siblings.html: * css3/blending/blend-mode-clip-accelerated-transformed-blending-expected.html: * css3/blending/blend-mode-clip-accelerated-transformed-blending.html: * css3/blending/blend-mode-clip-rect-accelerated-blending-expected.html: * css3/blending/blend-mode-clip-rect-accelerated-blending.html: * css3/blending/blend-mode-html-element-screen.html: * css3/blending/blend-mode-isolated-group-1.html: * css3/blending/blend-mode-isolated-group-2.html: * css3/blending/blend-mode-isolated-group-3.html: * css3/blending/blend-mode-isolation-accelerated-overflow-hidden.html: * css3/blending/blend-mode-isolation-flags-append-non-stacking-context-blending.html: * css3/blending/blend-mode-isolation-flags-append-stacking-context-blending.html: * css3/blending/blend-mode-isolation-flags-remove-non-stacking-context-blending.html: * css3/blending/blend-mode-isolation-flags-remove-stacking-context-blending.html: * css3/blending/blend-mode-isolation-flags-turn-off-blending-no-isolation.html: * css3/blending/blend-mode-isolation-flags-turn-off-blending.html: * css3/blending/blend-mode-isolation-flags-turn-off-stacking-context.html: * css3/blending/blend-mode-isolation-flags-turn-on-blending.html: * css3/blending/blend-mode-isolation-flags-turn-on-stacking-context.html: * css3/blending/blend-mode-isolation-overflow-hidden-expected.html: * css3/blending/blend-mode-isolation-overflow-hidden.html: * css3/blending/blend-mode-isolation-turn-off-self-painting-layer.html: * css3/blending/blend-mode-isolation-turn-off-self-painting-layer1.html: * css3/blending/blend-mode-isolation-turn-off-self-painting-layer2.html: * css3/blending/blend-mode-isolation-turn-on-self-painting-layer.html: * css3/blending/blend-mode-layers.html: * css3/blending/blend-mode-overflow.html: * css3/blending/blend-mode-parent-of-composited-blended-has-layer.html: * css3/blending/blend-mode-reflection.html: * css3/blending/blend-mode-simple-composited.html: * css3/blending/blend-mode-transform-style.html: * css3/blending/blend-mode-with-accelerated-sibling.html: * css3/blending/blend-mode-with-body-expected.html: * css3/blending/blend-mode-with-body.html: * css3/blending/blend-mode-with-composited-descendant-should-have-layer.html: * css3/blending/effect-background-blend-mode-stacking.html: * css3/blending/isolation-isolate-blended-child-expected.html: * css3/blending/isolation-isolate-blended-child.html: * css3/blending/repaint/blend-mode-isolate-stacking-context.html: * css3/blending/repaint/blend-mode-turn-off-isolation-no-effect.html: * css3/blending/repaint/blend-mode-turn-off-isolation.html: * css3/blending/resources/blending-style.css: Added. This file contains classes shared by multiple blending tests. * css3/blending/resources/dump-layer-tree.js: Added. * css3/blending/script-tests/background-blend-mode-property-parsing.js: * css3/blending/script-tests/blend-mode-property-parsing-invalid.js: * css3/blending/script-tests/blend-mode-property-parsing.js: Canonical link: https://commits.webkit.org/153013@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@171295 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2014-07-21 08:26:37 +00:00
<link rel="stylesheet" href="resources/blending-style.css">
Source/WebCore: If you set a tiled cross-faded-image or a tiled gradient as a background layer, -webkit-background-blend-mode doesn't work. The problem consists in the blendMode parameter not being set for these specific drawing paths. https://bugs.webkit.org/show_bug.cgi?id=126888 Patch by Mihai Tica <mitica@adobe.com> on 2014-01-21 Reviewed by Dirk Schulze. Test: css3/compositing/background-blend-mode-tiled-layers.html * platform/graphics/CrossfadeGeneratedImage.cpp: (WebCore::CrossfadeGeneratedImage::drawPattern): Add the blendMode parameter and pass it to ImageBuffer::drawPattern. * platform/graphics/GradientImage.cpp: (WebCore::GradientImage::drawPattern): Add the blendMode parameter and pass it to ImageBuffer::drawPattern. * platform/graphics/ImageBuffer.h: Add a BlendMode parameter to the drawPattern method. * platform/graphics/cairo/ImageBufferCairo.cpp: (WebCore::ImageBuffer::drawPattern): Add the default BlendMode parameter to the method declaration. * platform/graphics/cg/ImageBufferCG.cpp: (WebCore::ImageBuffer::drawPattern): Add and use the blendMode parameter for all the code paths. * platform/graphics/wince/ImageBufferWinCE.cpp: (WebCore::BufferedImage::drawPattern): Add the default BlendMode parameter to the method declaration. LayoutTests: If you set a tiled cross-faded-image or a tiled gradient as a background layer, -webkit-background-blend-mode doesn't work. https://bugs.webkit.org/show_bug.cgi?id=126888 Patch by Mihai Tica <mitica@adobe.com> on 2014-01-21 Reviewed by Dirk Schulze. * css3/compositing/background-blend-mode-tiled-layers-expected.html: Added. * css3/compositing/background-blend-mode-tiled-layers.html: Added. * platform/efl/TestExpectations: Skip test for efl, blendModes are not implemented. * platform/mac/TestExpectations: Mark added test as ImageOnlyFailure due to slight differences between the actual result and the blending formula. Canonical link: https://commits.webkit.org/145354@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@162442 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2014-01-21 16:36:50 +00:00
<style>
div {
margin: 5px;
width: 100px;
height: 100px;
[CSS Background Blending] Unprefix the -webkit-background-blend-mode property https://bugs.webkit.org/show_bug.cgi?id=128270 Patch by Mihai Tica <mitica@adobe.com> on 2014-02-07 Reviewed by Dean Jackson. Source/WebCore: This patch consist of unprefixing the -webkit-background-blend-mode. The property now changes to background-blend-mode. * css/CSSComputedStyleDeclaration.cpp: (WebCore::ComputedStyleExtractor::propertyValue): * css/CSSParser.cpp: (WebCore::CSSParser::parseValue): (WebCore::CSSParser::parseFillProperty): * css/CSSPropertyNames.in: * css/DeprecatedStyleBuilder.cpp: (WebCore::DeprecatedStyleBuilder::DeprecatedStyleBuilder): Source/WebInspectorUI: * UserInterface/CSSKeywordCompletions.js: Refactor -webkit-background-blend-mode to background-blend-mode. LayoutTests: This patch consist of unprefixing the -webkit-background-blend-mode. The property now changes to background-blend-mode. * css3/compositing/background-blend-mode-background-attachement-fixed-expected.html: * css3/compositing/background-blend-mode-background-attachement-fixed.html: * css3/compositing/background-blend-mode-background-clip-content-box-expected.html: * css3/compositing/background-blend-mode-background-clip-content-box.html: * css3/compositing/background-blend-mode-background-clip-padding-box-expected.html: * css3/compositing/background-blend-mode-background-clip-padding-box.html: * css3/compositing/background-blend-mode-background-origin-border-box-expected.html: * css3/compositing/background-blend-mode-background-origin-border-box.html: * css3/compositing/background-blend-mode-background-position-percentage-expected.html: * css3/compositing/background-blend-mode-background-position-percentage.html: * css3/compositing/background-blend-mode-background-repeat-no-repeat-expected.html: * css3/compositing/background-blend-mode-background-repeat-no-repeat.html: * css3/compositing/background-blend-mode-background-size-contain-expected.html: * css3/compositing/background-blend-mode-background-size-contain.html: * css3/compositing/background-blend-mode-background-size-cover-expected.html: * css3/compositing/background-blend-mode-background-size-cover.html: * css3/compositing/background-blend-mode-crossfade-image.html: * css3/compositing/background-blend-mode-data-uri-svg-image.html: * css3/compositing/background-blend-mode-default-value.html: * css3/compositing/background-blend-mode-different-image-formats.html: * css3/compositing/background-blend-mode-gif-color-2.html: * css3/compositing/background-blend-mode-gif-color.html: * css3/compositing/background-blend-mode-gradient-color.html: * css3/compositing/background-blend-mode-gradient-gradient.html: * css3/compositing/background-blend-mode-gradient-image.html: * css3/compositing/background-blend-mode-image-color.html: * css3/compositing/background-blend-mode-image-image.html: * css3/compositing/background-blend-mode-image-svg.html: * css3/compositing/background-blend-mode-multiple-background-layers.html: * css3/compositing/background-blend-mode-property-expected.txt: * css3/compositing/background-blend-mode-property-parsing-expected.txt: * css3/compositing/background-blend-mode-separate-layer-declaration.html: * css3/compositing/background-blend-mode-single-layer-no-blending.html: * css3/compositing/background-blend-mode-svg-color.html: * css3/compositing/background-blend-mode-svg.html: * css3/compositing/background-blend-mode-tiled-layers.html: * css3/compositing/blend-mode-layers.html: * css3/compositing/effect-background-blend-mode-stacking.html: * css3/compositing/effect-background-blend-mode-tiled.html: * css3/compositing/effect-background-blend-mode.html: * css3/compositing/script-tests/background-blend-mode-property-parsing.js: (testBlendModeRule): * css3/compositing/script-tests/background-blend-mode-property.js: (testblendmode): Canonical link: https://commits.webkit.org/146405@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@163633 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2014-02-07 18:46:47 +00:00
background-blend-mode: difference, normal;
Source/WebCore: If you set a tiled cross-faded-image or a tiled gradient as a background layer, -webkit-background-blend-mode doesn't work. The problem consists in the blendMode parameter not being set for these specific drawing paths. https://bugs.webkit.org/show_bug.cgi?id=126888 Patch by Mihai Tica <mitica@adobe.com> on 2014-01-21 Reviewed by Dirk Schulze. Test: css3/compositing/background-blend-mode-tiled-layers.html * platform/graphics/CrossfadeGeneratedImage.cpp: (WebCore::CrossfadeGeneratedImage::drawPattern): Add the blendMode parameter and pass it to ImageBuffer::drawPattern. * platform/graphics/GradientImage.cpp: (WebCore::GradientImage::drawPattern): Add the blendMode parameter and pass it to ImageBuffer::drawPattern. * platform/graphics/ImageBuffer.h: Add a BlendMode parameter to the drawPattern method. * platform/graphics/cairo/ImageBufferCairo.cpp: (WebCore::ImageBuffer::drawPattern): Add the default BlendMode parameter to the method declaration. * platform/graphics/cg/ImageBufferCG.cpp: (WebCore::ImageBuffer::drawPattern): Add and use the blendMode parameter for all the code paths. * platform/graphics/wince/ImageBufferWinCE.cpp: (WebCore::BufferedImage::drawPattern): Add the default BlendMode parameter to the method declaration. LayoutTests: If you set a tiled cross-faded-image or a tiled gradient as a background layer, -webkit-background-blend-mode doesn't work. https://bugs.webkit.org/show_bug.cgi?id=126888 Patch by Mihai Tica <mitica@adobe.com> on 2014-01-21 Reviewed by Dirk Schulze. * css3/compositing/background-blend-mode-tiled-layers-expected.html: Added. * css3/compositing/background-blend-mode-tiled-layers.html: Added. * platform/efl/TestExpectations: Skip test for efl, blendModes are not implemented. * platform/mac/TestExpectations: Mark added test as ImageOnlyFailure due to slight differences between the actual result and the blending formula. Canonical link: https://commits.webkit.org/145354@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@162442 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2014-01-21 16:36:50 +00:00
float: left;
}
.tiledSVG {
background: url('data:image/svg+xml;utf8, \
<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"> \
WebKit doesn't parse "#" as delimiter for fragment identifier in data URIs https://bugs.webkit.org/show_bug.cgi?id=68089 Patch by Rob Buis <rbuis@igalia.com> on 2020-10-05 Reviewed by Alex Christensen, Ryosuke Niwa, and Darin Adler. LayoutTests/imported/w3c: Update improved test results. * web-platform-tests/fetch/data-urls/processing.any-expected.txt: * web-platform-tests/fetch/data-urls/processing.any.worker-expected.txt: * web-platform-tests/url/data-uri-fragment-expected.txt: Source/WebCore: To maintain compatibility with existing iOS and macOS apps, we only do this for apps linked with the SDK after the change. Covered by newly passing web platform tests (which Chrome and Firefox already passed). * loader/ResourceLoader.cpp: (WebCore::shouldStripFragmentIdentifier): (WebCore::ResourceLoader::loadDataURL): * platform/cocoa/VersionChecks.h: Source/WTF: * wtf/URL.h: * wtf/spi/darwin/dyldSPI.h: LayoutTests: Adjusts tests thats use data URIs to escape the # character. * accessibility/ios-simulator/iframe-access.html: * accessibility/ios-simulator/unobscured-content-rect.html: * accessibility/resources/iframe.html: * accessibility/scroll-to-global-point-iframe.html: * accessibility/scroll-to-make-visible-iframe-offscreen.html: * accessibility/scroll-to-make-visible-iframe.html: * css3/blending/background-blend-mode-crossfade-image.html: * css3/blending/background-blend-mode-data-uri-svg-image.html: * css3/blending/background-blend-mode-tiled-layers.html: * css3/flexbox/flexitem.html: * css3/shapes/shape-outside/shape-image/shape-image-002.html: * css3/shapes/shape-outside/shape-image/shape-image-005.html: * editing/pasteboard/data-transfer-set-data-sanitize-url-when-copying-in-null-origin.html: * editing/pasteboard/data-transfer-set-data-sanitize-url-when-dragging-in-null-origin.html: * fast/css-grid-layout/grid-item-display.html: * fast/css/import-style-update.html: * fast/css/link-media-attr.html: * fast/dom/HTMLLinkElement/link-stylesheet-media-type.html: * fast/events/attribute-listener-cloned-from-frameless-doc-context-2.html: * fast/events/attribute-listener-cloned-from-frameless-doc-context.html: * fast/events/attribute-listener-extracted-from-frameless-doc-context-2.html: * fast/events/attribute-listener-extracted-from-frameless-doc-context.html: * fast/hidpi/image-srcset-data-escaped-srcset.html: * fast/html/link-rel-stylesheet.html: * fast/loader/data-url-encoding-html.html: * fast/loader/data-url-encoding-svg.html: * fast/spatial-navigation/resources/iframe.html: * http/tests/security/top-level-unique-origin.https.html: * platform/ios/css3/flexbox/flexitem-expected.txt: * platform/win/css3/flexbox/flexitem-expected.txt: * security/contentSecurityPolicy/link-with-data-url-allowed-by-style-src-star-with-AllowContentSecurityPolicySourceStarToMatchAnyProtocol-enabled.html: * svg/animations/css-animation-background-svg.html: * svg/animations/css-animation-embedded-svg.html: * svg/animations/css-animation-hover-svg.html: * svg/as-image/svg-canvas-data-url-svg-with-feimage-not-tainted.html: * svg/custom/object-data-href.html: Canonical link: https://commits.webkit.org/230098@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@267995 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2020-10-05 19:36:22 +00:00
<rect width="100" height="100" fill="%23F00"/> \
Source/WebCore: If you set a tiled cross-faded-image or a tiled gradient as a background layer, -webkit-background-blend-mode doesn't work. The problem consists in the blendMode parameter not being set for these specific drawing paths. https://bugs.webkit.org/show_bug.cgi?id=126888 Patch by Mihai Tica <mitica@adobe.com> on 2014-01-21 Reviewed by Dirk Schulze. Test: css3/compositing/background-blend-mode-tiled-layers.html * platform/graphics/CrossfadeGeneratedImage.cpp: (WebCore::CrossfadeGeneratedImage::drawPattern): Add the blendMode parameter and pass it to ImageBuffer::drawPattern. * platform/graphics/GradientImage.cpp: (WebCore::GradientImage::drawPattern): Add the blendMode parameter and pass it to ImageBuffer::drawPattern. * platform/graphics/ImageBuffer.h: Add a BlendMode parameter to the drawPattern method. * platform/graphics/cairo/ImageBufferCairo.cpp: (WebCore::ImageBuffer::drawPattern): Add the default BlendMode parameter to the method declaration. * platform/graphics/cg/ImageBufferCG.cpp: (WebCore::ImageBuffer::drawPattern): Add and use the blendMode parameter for all the code paths. * platform/graphics/wince/ImageBufferWinCE.cpp: (WebCore::BufferedImage::drawPattern): Add the default BlendMode parameter to the method declaration. LayoutTests: If you set a tiled cross-faded-image or a tiled gradient as a background layer, -webkit-background-blend-mode doesn't work. https://bugs.webkit.org/show_bug.cgi?id=126888 Patch by Mihai Tica <mitica@adobe.com> on 2014-01-21 Reviewed by Dirk Schulze. * css3/compositing/background-blend-mode-tiled-layers-expected.html: Added. * css3/compositing/background-blend-mode-tiled-layers.html: Added. * platform/efl/TestExpectations: Skip test for efl, blendModes are not implemented. * platform/mac/TestExpectations: Mark added test as ImageOnlyFailure due to slight differences between the actual result and the blending formula. Canonical link: https://commits.webkit.org/145354@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@162442 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2014-01-21 16:36:50 +00:00
</svg>'
) 0 0 /50% 50%, #FF0;
}
.tiledGradient {
background: linear-gradient(to right, #F00 0%, #F00 100%) 0 0 /50% 50%, #FF0;
}
.tiledCrossfadeImage {
background: -webkit-cross-fade(url('data:image/svg+xml;utf8, \
<svg xmlns="http://www.w3.org/2000/svg" width="100px" height="100px"> \
WebKit doesn't parse "#" as delimiter for fragment identifier in data URIs https://bugs.webkit.org/show_bug.cgi?id=68089 Patch by Rob Buis <rbuis@igalia.com> on 2020-10-05 Reviewed by Alex Christensen, Ryosuke Niwa, and Darin Adler. LayoutTests/imported/w3c: Update improved test results. * web-platform-tests/fetch/data-urls/processing.any-expected.txt: * web-platform-tests/fetch/data-urls/processing.any.worker-expected.txt: * web-platform-tests/url/data-uri-fragment-expected.txt: Source/WebCore: To maintain compatibility with existing iOS and macOS apps, we only do this for apps linked with the SDK after the change. Covered by newly passing web platform tests (which Chrome and Firefox already passed). * loader/ResourceLoader.cpp: (WebCore::shouldStripFragmentIdentifier): (WebCore::ResourceLoader::loadDataURL): * platform/cocoa/VersionChecks.h: Source/WTF: * wtf/URL.h: * wtf/spi/darwin/dyldSPI.h: LayoutTests: Adjusts tests thats use data URIs to escape the # character. * accessibility/ios-simulator/iframe-access.html: * accessibility/ios-simulator/unobscured-content-rect.html: * accessibility/resources/iframe.html: * accessibility/scroll-to-global-point-iframe.html: * accessibility/scroll-to-make-visible-iframe-offscreen.html: * accessibility/scroll-to-make-visible-iframe.html: * css3/blending/background-blend-mode-crossfade-image.html: * css3/blending/background-blend-mode-data-uri-svg-image.html: * css3/blending/background-blend-mode-tiled-layers.html: * css3/flexbox/flexitem.html: * css3/shapes/shape-outside/shape-image/shape-image-002.html: * css3/shapes/shape-outside/shape-image/shape-image-005.html: * editing/pasteboard/data-transfer-set-data-sanitize-url-when-copying-in-null-origin.html: * editing/pasteboard/data-transfer-set-data-sanitize-url-when-dragging-in-null-origin.html: * fast/css-grid-layout/grid-item-display.html: * fast/css/import-style-update.html: * fast/css/link-media-attr.html: * fast/dom/HTMLLinkElement/link-stylesheet-media-type.html: * fast/events/attribute-listener-cloned-from-frameless-doc-context-2.html: * fast/events/attribute-listener-cloned-from-frameless-doc-context.html: * fast/events/attribute-listener-extracted-from-frameless-doc-context-2.html: * fast/events/attribute-listener-extracted-from-frameless-doc-context.html: * fast/hidpi/image-srcset-data-escaped-srcset.html: * fast/html/link-rel-stylesheet.html: * fast/loader/data-url-encoding-html.html: * fast/loader/data-url-encoding-svg.html: * fast/spatial-navigation/resources/iframe.html: * http/tests/security/top-level-unique-origin.https.html: * platform/ios/css3/flexbox/flexitem-expected.txt: * platform/win/css3/flexbox/flexitem-expected.txt: * security/contentSecurityPolicy/link-with-data-url-allowed-by-style-src-star-with-AllowContentSecurityPolicySourceStarToMatchAnyProtocol-enabled.html: * svg/animations/css-animation-background-svg.html: * svg/animations/css-animation-embedded-svg.html: * svg/animations/css-animation-hover-svg.html: * svg/as-image/svg-canvas-data-url-svg-with-feimage-not-tainted.html: * svg/custom/object-data-href.html: Canonical link: https://commits.webkit.org/230098@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@267995 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2020-10-05 19:36:22 +00:00
<rect width="100" height="100" fill="%23F00"/> \
Source/WebCore: If you set a tiled cross-faded-image or a tiled gradient as a background layer, -webkit-background-blend-mode doesn't work. The problem consists in the blendMode parameter not being set for these specific drawing paths. https://bugs.webkit.org/show_bug.cgi?id=126888 Patch by Mihai Tica <mitica@adobe.com> on 2014-01-21 Reviewed by Dirk Schulze. Test: css3/compositing/background-blend-mode-tiled-layers.html * platform/graphics/CrossfadeGeneratedImage.cpp: (WebCore::CrossfadeGeneratedImage::drawPattern): Add the blendMode parameter and pass it to ImageBuffer::drawPattern. * platform/graphics/GradientImage.cpp: (WebCore::GradientImage::drawPattern): Add the blendMode parameter and pass it to ImageBuffer::drawPattern. * platform/graphics/ImageBuffer.h: Add a BlendMode parameter to the drawPattern method. * platform/graphics/cairo/ImageBufferCairo.cpp: (WebCore::ImageBuffer::drawPattern): Add the default BlendMode parameter to the method declaration. * platform/graphics/cg/ImageBufferCG.cpp: (WebCore::ImageBuffer::drawPattern): Add and use the blendMode parameter for all the code paths. * platform/graphics/wince/ImageBufferWinCE.cpp: (WebCore::BufferedImage::drawPattern): Add the default BlendMode parameter to the method declaration. LayoutTests: If you set a tiled cross-faded-image or a tiled gradient as a background layer, -webkit-background-blend-mode doesn't work. https://bugs.webkit.org/show_bug.cgi?id=126888 Patch by Mihai Tica <mitica@adobe.com> on 2014-01-21 Reviewed by Dirk Schulze. * css3/compositing/background-blend-mode-tiled-layers-expected.html: Added. * css3/compositing/background-blend-mode-tiled-layers.html: Added. * platform/efl/TestExpectations: Skip test for efl, blendModes are not implemented. * platform/mac/TestExpectations: Mark added test as ImageOnlyFailure due to slight differences between the actual result and the blending formula. Canonical link: https://commits.webkit.org/145354@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@162442 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2014-01-21 16:36:50 +00:00
</svg>'
), url('data:image/svg+xml;utf8, \
<svg xmlns="http://www.w3.org/2000/svg" width="100px" height="100px"> \
WebKit doesn't parse "#" as delimiter for fragment identifier in data URIs https://bugs.webkit.org/show_bug.cgi?id=68089 Patch by Rob Buis <rbuis@igalia.com> on 2020-10-05 Reviewed by Alex Christensen, Ryosuke Niwa, and Darin Adler. LayoutTests/imported/w3c: Update improved test results. * web-platform-tests/fetch/data-urls/processing.any-expected.txt: * web-platform-tests/fetch/data-urls/processing.any.worker-expected.txt: * web-platform-tests/url/data-uri-fragment-expected.txt: Source/WebCore: To maintain compatibility with existing iOS and macOS apps, we only do this for apps linked with the SDK after the change. Covered by newly passing web platform tests (which Chrome and Firefox already passed). * loader/ResourceLoader.cpp: (WebCore::shouldStripFragmentIdentifier): (WebCore::ResourceLoader::loadDataURL): * platform/cocoa/VersionChecks.h: Source/WTF: * wtf/URL.h: * wtf/spi/darwin/dyldSPI.h: LayoutTests: Adjusts tests thats use data URIs to escape the # character. * accessibility/ios-simulator/iframe-access.html: * accessibility/ios-simulator/unobscured-content-rect.html: * accessibility/resources/iframe.html: * accessibility/scroll-to-global-point-iframe.html: * accessibility/scroll-to-make-visible-iframe-offscreen.html: * accessibility/scroll-to-make-visible-iframe.html: * css3/blending/background-blend-mode-crossfade-image.html: * css3/blending/background-blend-mode-data-uri-svg-image.html: * css3/blending/background-blend-mode-tiled-layers.html: * css3/flexbox/flexitem.html: * css3/shapes/shape-outside/shape-image/shape-image-002.html: * css3/shapes/shape-outside/shape-image/shape-image-005.html: * editing/pasteboard/data-transfer-set-data-sanitize-url-when-copying-in-null-origin.html: * editing/pasteboard/data-transfer-set-data-sanitize-url-when-dragging-in-null-origin.html: * fast/css-grid-layout/grid-item-display.html: * fast/css/import-style-update.html: * fast/css/link-media-attr.html: * fast/dom/HTMLLinkElement/link-stylesheet-media-type.html: * fast/events/attribute-listener-cloned-from-frameless-doc-context-2.html: * fast/events/attribute-listener-cloned-from-frameless-doc-context.html: * fast/events/attribute-listener-extracted-from-frameless-doc-context-2.html: * fast/events/attribute-listener-extracted-from-frameless-doc-context.html: * fast/hidpi/image-srcset-data-escaped-srcset.html: * fast/html/link-rel-stylesheet.html: * fast/loader/data-url-encoding-html.html: * fast/loader/data-url-encoding-svg.html: * fast/spatial-navigation/resources/iframe.html: * http/tests/security/top-level-unique-origin.https.html: * platform/ios/css3/flexbox/flexitem-expected.txt: * platform/win/css3/flexbox/flexitem-expected.txt: * security/contentSecurityPolicy/link-with-data-url-allowed-by-style-src-star-with-AllowContentSecurityPolicySourceStarToMatchAnyProtocol-enabled.html: * svg/animations/css-animation-background-svg.html: * svg/animations/css-animation-embedded-svg.html: * svg/animations/css-animation-hover-svg.html: * svg/as-image/svg-canvas-data-url-svg-with-feimage-not-tainted.html: * svg/custom/object-data-href.html: Canonical link: https://commits.webkit.org/230098@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@267995 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2020-10-05 19:36:22 +00:00
<rect width="100" height="100" fill="%23F00"/> \
Source/WebCore: If you set a tiled cross-faded-image or a tiled gradient as a background layer, -webkit-background-blend-mode doesn't work. The problem consists in the blendMode parameter not being set for these specific drawing paths. https://bugs.webkit.org/show_bug.cgi?id=126888 Patch by Mihai Tica <mitica@adobe.com> on 2014-01-21 Reviewed by Dirk Schulze. Test: css3/compositing/background-blend-mode-tiled-layers.html * platform/graphics/CrossfadeGeneratedImage.cpp: (WebCore::CrossfadeGeneratedImage::drawPattern): Add the blendMode parameter and pass it to ImageBuffer::drawPattern. * platform/graphics/GradientImage.cpp: (WebCore::GradientImage::drawPattern): Add the blendMode parameter and pass it to ImageBuffer::drawPattern. * platform/graphics/ImageBuffer.h: Add a BlendMode parameter to the drawPattern method. * platform/graphics/cairo/ImageBufferCairo.cpp: (WebCore::ImageBuffer::drawPattern): Add the default BlendMode parameter to the method declaration. * platform/graphics/cg/ImageBufferCG.cpp: (WebCore::ImageBuffer::drawPattern): Add and use the blendMode parameter for all the code paths. * platform/graphics/wince/ImageBufferWinCE.cpp: (WebCore::BufferedImage::drawPattern): Add the default BlendMode parameter to the method declaration. LayoutTests: If you set a tiled cross-faded-image or a tiled gradient as a background layer, -webkit-background-blend-mode doesn't work. https://bugs.webkit.org/show_bug.cgi?id=126888 Patch by Mihai Tica <mitica@adobe.com> on 2014-01-21 Reviewed by Dirk Schulze. * css3/compositing/background-blend-mode-tiled-layers-expected.html: Added. * css3/compositing/background-blend-mode-tiled-layers.html: Added. * platform/efl/TestExpectations: Skip test for efl, blendModes are not implemented. * platform/mac/TestExpectations: Mark added test as ImageOnlyFailure due to slight differences between the actual result and the blending formula. Canonical link: https://commits.webkit.org/145354@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@162442 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2014-01-21 16:36:50 +00:00
</svg>'
), 100%) 0 0 /50% 50%, #FF0;
}
</style>
<div class="tiledSVG"></div>
<div class="tiledSVG accelerated"></div>
<div class="tiledGradient"></div>
<div class="tiledGradient accelerated"></div>
<div class="tiledCrossfadeImage"></div>
<div class="tiledCrossfadeImage accelerated"></div>