Bug 169929

Summary: AX: WebKit does not exclude ::before/::after pseudo-elements from AX API when @aria-modal is used
Product: WebKit Reporter: James Craig <jcraig>
Component: AccessibilityAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: bugs.webkit.org, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: All   
OS: All   
URL: http://w3c.github.io/aria-practices/examples/dialog-modal/dialog.html
Attachments:
Description Flags
screen shot: VO cursor on gen content outside modal dialog
none
screen shot: web inspector none

Description James Craig 2017-03-21 15:31:03 PDT
Created attachment 305036 [details]
screen shot: VO cursor on gen content outside modal dialog

AX: WebKit does not exclude ::before/::after pseudo-elements from AX API when @aria-modal is used


1. Load: http://w3c.github.io/aria-practices/examples/dialog-modal/dialog.html
2. Press the "Add Delivery Address" button.
3. Stop interacting with the modal dialog.
4. Navigate to a bunch of random quotation marks.

In this case, the Q element <q>foo</q> renders its quotation marks as ::before/::after pseudo elements exposed by the render tree, not the DOM.

Note: test cases should include:

1. Default generated content like the quotation marks in <q>foo</q> 
2. Author-generated text content: div::before { content: "foo"; }
3. Author-generated alt content: div::after { content: url(img.png); alt: "alt"; }
Comment 1 James Craig 2017-03-21 15:34:38 PDT
Test case #3 will change once bug 159022 is implemented.
Comment 2 James Craig 2017-03-21 15:40:14 PDT
Created attachment 305037 [details]
screen shot: web inspector
Comment 3 Radar WebKit Bug Importer 2017-03-23 09:41:49 PDT
<rdar://problem/31221250>