AX: when invert colors is on, double-invert video elements in UserAgentStyleSheet
authorjcraig@apple.com <jcraig@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 12 Jan 2018 01:16:59 +0000 (01:16 +0000)
committerjcraig@apple.com <jcraig@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 12 Jan 2018 01:16:59 +0000 (01:16 +0000)
commitedef95b6b0f454fc025a7d523f1d41d4f562e624
treecdefe044740d193d125aceb251706c973f0c62dc
parentbeda809b12b06f4ee2cadec9fa4d0156617f1341
AX: when invert colors is on, double-invert video elements in UserAgentStyleSheet
https://bugs.webkit.org/show_bug.cgi?id=168447
<rdar://problem/30559874>

Reviewed by Simon Fraser.

Double-invert video when platform "invert colors" setting is enabled. Behavior matches
current "Smart Invert" feature of Safari Reader on macOS/iOS and other iOS native apps.

Source/WebCore:

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

* Modules/modern-media-controls/controls/media-controls.css:
(@media (inverted-colors)):
(:host):
(picture):
* css/html.css:
(@media (inverted-colors)):
(video):

LayoutTests:

* TestExpectations: Platform setting only available on Mac and iOS.
* accessibility/smart-invert-expected.txt: Added.
* accessibility/smart-invert-reference-expected.html: Added.
* accessibility/smart-invert-reference.html: Added. Ref to ensure invert and grayscale filters render as expected.
* accessibility/smart-invert.html: Added. Computed expectatons of filter property text values.
* platform/ios-wk2/TestExpectations: Runs on iOS WK2.
* platform/mac-wk2/TestExpectations: Runs on Mac WK2.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@226825 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/TestExpectations
LayoutTests/accessibility/smart-invert-expected.txt [new file with mode: 0644]
LayoutTests/accessibility/smart-invert-reference-expected.html [new file with mode: 0644]
LayoutTests/accessibility/smart-invert-reference.html [new file with mode: 0644]
LayoutTests/accessibility/smart-invert.html [new file with mode: 0644]
LayoutTests/platform/ios-wk2/TestExpectations
LayoutTests/platform/mac-wk2/TestExpectations
Source/WebCore/ChangeLog
Source/WebCore/Modules/modern-media-controls/controls/media-controls.css
Source/WebCore/css/html.css