WebKit computes incorrect label for embedded controls. In the WPT tests (cross referenced in WebKit tests) /accname/name/comp_embedded_control.html Results: https://wpt.fyi/results/accname/name/comp_embedded_control.html?label=master&label=experimental&aligned&q=path%3A%2Faccessibility%20or%20path%3A%2Faccname%20or%20path%3A%2Fhtml-aam%20or%20path%3A%2Fwai-aria%20or%20path%3A%2Fhtml%2Fdom%2Faria-element-reflection.html Expected: "Flash the screen 3 times" Actual: "Flash the screen number of times times"
<rdar://problem/108575126>
That test currently only tests one of the variants. More automation will come, but the spec algorithm is here: https://w3c.github.io/accname/#comp_embedded_control
See bullet starting with "C. Embedded Control: Otherwise, if the current node is a control embedded within the label…"
WPT PR coming soon that shows failures for different types of controls. Mostly similar but a few implementation differences. PR preview for Safari results https://wpt.fyi/results/accname/name/comp_embedded_control.html?diff&filter=ADC&run_id=6249383282081792&run_id=5173468926050304 Once the PR lands, those additional failures will be visible here, too. https://wpt.fyi/results/accname/name/comp_embedded_control.html?label=experimental&label=master&aligned