Changeset 226385 in webkit
- Timestamp:
- Jan 3, 2018 5:44:15 PM (6 years ago)
- Location:
- trunk
- Files:
-
- 4 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r226375 r226385 1 2018-01-03 James Craig <jcraig@apple.com> 2 3 AX: when invert colors is on, double-invert certain media elements in UserAgentStyleSheet 4 https://bugs.webkit.org/show_bug.cgi?id=168447 5 <rdar://problem/30559874> 6 7 Reviewed by Simon Fraser. 8 9 Double-invert video when platform "invert colors" setting is enabled. Behavior matches 10 current "Smart Invert" feature of Safari Reader on macOS/iOS and other iOS native apps. 11 12 * TestExpectations: Platform setting only available on Mac and iOS. 13 * accessibility/smart-invert-expected.txt: Added. 14 * accessibility/smart-invert-reference-expected.html: Added. 15 * accessibility/smart-invert-reference.html: Added. Ref to ensure invert and blur filters render as expected. 16 * accessibility/smart-invert.html: Added. Computed expectatons of filter property text values. 17 * platform/ios-wk2/TestExpectations: Runs on iOS. 18 * platform/mac-wk2/TestExpectations: Runs on Mac. 19 1 20 2018-01-03 Alexey Proskuryakov <ap@apple.com> 2 21 -
trunk/LayoutTests/TestExpectations
r226333 r226385 119 119 120 120 # These only run on Mac and iOS WK2 121 accessibility/smart-invert.html [ Skip ] 122 accessibility/smart-invert-reference.html [ Skip ] 121 123 fast/media/mq-inverted-colors-live-update.html [ Skip ] 122 124 fast/media/mq-inverted-colors-live-update-in-subframes.html [ Skip ] -
trunk/LayoutTests/platform/ios-wk2/TestExpectations
r226297 r226385 16 16 editing/selection/character-granularity-rect.html [ Pass ] 17 17 18 accessibility/smart-invert.html [ Pass ] 19 accessibility/smart-invert-reference.html [ Pass ] 18 20 fast/media/mq-inverted-colors-live-update.html [ Pass ] 19 21 fast/media/mq-inverted-colors-live-update-in-subframes.html [ Pass ] -
trunk/LayoutTests/platform/mac-wk2/TestExpectations
r226297 r226385 14 14 fast/events/autoscroll-main-document.html [ Pass ] 15 15 16 accessibility/smart-invert.html [ Pass ] 17 accessibility/smart-invert-reference.html [ Pass ] 16 18 fast/media/mq-inverted-colors-live-update.html [ Pass ] 17 19 fast/media/mq-inverted-colors-live-update-in-subframes.html [ Pass ] -
trunk/Source/WebCore/ChangeLog
r226383 r226385 1 2018-01-03 James Craig <jcraig@apple.com> 2 3 AX: when invert colors is on, double-invert certain media elements in UserAgentStyleSheet 4 https://bugs.webkit.org/show_bug.cgi?id=168447 5 <rdar://problem/30559874> 6 7 Reviewed by Simon Fraser. 8 9 Double-invert video when platform 'invert colors' setting is enabled. Behavior matches 10 current 'Smart Invert' feature of Safari Reader on macOS/iOS and other iOS native apps. 11 12 Tests: accessibility/smart-invert-reference.html 13 accessibility/smart-invert.html 14 15 * Modules/modern-media-controls/controls/media-controls.css: 16 (@media (inverted-colors)): 17 (:host): 18 (picture): 19 * css/html.css: 20 (@media (inverted-colors)): 21 (video): 22 1 23 2018-01-03 Youenn Fablet <youenn@apple.com> 2 24 -
trunk/Source/WebCore/Modules/modern-media-controls/controls/media-controls.css
r224543 r226385 128 128 to { opacity: 1 } 129 129 } 130 131 /* Default support for "Smart Invert" where all content color except media is inverted. */ 132 @media (inverted-colors) { 133 :host { filter: invert(100%); } /* WebKit native audio and video. */ 134 picture { filter: none; } /* Don't invert the control buttons. */ 135 } -
trunk/Source/WebCore/css/html.css
r225879 r226385 1237 1237 /* noscript is handled internally, as it depends on settings. */ 1238 1238 1239 /* Default support for "Smart Invert" where all content color except media is inverted. */ 1240 @media (inverted-colors) { 1241 video { filter: invert(100%); } /* Only videos double-inverted for now. */ 1242 }
Note: See TracChangeset
for help on using the changeset viewer.