Bug 226521 - [WPE] imported/w3c/web-platform-tests/html/semantics/embedded-content/the-img-element/source-media-outside-doc.html is flaky failing since added in 237111@main
Summary: [WPE] imported/w3c/web-platform-tests/html/semantics/embedded-content/the-img...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WPE WebKit (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-06-01 22:17 PDT by Lauro Moura
Modified: 2021-06-02 02:36 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lauro Moura 2021-06-01 22:17:11 PDT
imported/w3c/web-platform-tests/html/semantics/embedded-content/the-img-element/source-media-outside-doc.html

Flaky failing in Release bot only. Testing locally, always fails.

Flaky failure on both cases:

--- /home/lauro/dev/WebKit/layout-test-results/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-img-element/source-media-outside-doc-expected.txt
+++ /home/lauro/dev/WebKit/layout-test-results/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-img-element/source-media-outside-doc-actual.txt
@@ -1,4 +1,4 @@
 
 
-PASS Image source selection using media queries is performed for img elements outside the document
+FAIL Image source selection using media queries is performed for img elements outside the document assert_equals: Initial currentSrc value expected "data:,a" but got "data:,c"
 

In GTK it's working fine. No change in behavior regardless of headless/weston/wayland drivers.

Looks like somehow in WPE Release the media query is failing for the source elements (evaluation fails in HTMLImageElement::bestFitSourceFromPictureElement()), making it rely on the img element's own src atribute.