AX: when invert colors is on, double-invert image and picture elements in UserAgentSt...
authorjcraig@apple.com <jcraig@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 19 Jan 2018 19:12:35 +0000 (19:12 +0000)
committerjcraig@apple.com <jcraig@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 19 Jan 2018 19:12:35 +0000 (19:12 +0000)
commitb6159fd57da4ab42eb96af295378b6b38e6837ca
tree937e2e1e478f09716f78c4264da5c57a2f5d2299
parent35ea826941baff3f230335698a955525f82359b7
AX: when invert colors is on, double-invert image and picture elements in UserAgentStyleSheet
https://bugs.webkit.org/show_bug.cgi?id=181281
<rdar://problem/36291776>

Reviewed by Simon Fraser.

Source/WebCore:

Updated "Smart Invert" to include img and picture element inversion and tests.

Tests: accessibility/smart-invert-reference.html
       accessibility/smart-invert.html

* css/html.css:
(@media (inverted-colors)):
(img:not(picture>img), picture, video):

LayoutTests:

Updated to include img and picture element tests.

* accessibility/smart-invert-expected.txt:
* accessibility/smart-invert-reference-expected.html:
* accessibility/smart-invert.html:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@227219 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/accessibility/smart-invert-expected.txt
LayoutTests/accessibility/smart-invert-reference-expected.html
LayoutTests/accessibility/smart-invert.html
Source/WebCore/ChangeLog
Source/WebCore/css/html.css