Changeset 209842 in webkit
- Timestamp:
- Dec 14, 2016, 4:12:21 PM (8 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r209841 r209842 1 2016-12-14 Dean Jackson <dino@apple.com> 2 3 Update prefers-reduced-motion syntax 4 https://bugs.webkit.org/show_bug.cgi?id=165880 5 <rdar://problems/29671807> 6 7 Reviewed by Sam Weinig. 8 9 * fast/media/mq-prefers-reduced-motion-forced-value.html: 10 * fast/media/mq-prefers-reduced-motion.html: 11 1 12 2016-12-14 Sam Weinig <sam@webkit.org> 2 13 -
trunk/LayoutTests/fast/media/mq-prefers-reduced-motion-forced-value.html
r208899 r209842 19 19 if (!window.matchMedia("(prefers-reduced-motion)").matches) 20 20 document.getElementById("c").style.color = "green"; 21 if (window.matchMedia("(prefers-reduced-motion: default)").matches)21 if (window.matchMedia("(prefers-reduced-motion: no-preference)").matches) 22 22 document.getElementById("d").style.color = "green"; 23 23 }, false); -
trunk/LayoutTests/fast/media/mq-prefers-reduced-motion.html
r207173 r209842 16 16 } 17 17 18 @media (prefers-reduced-motion: default) {18 @media (prefers-reduced-motion: no-preference) { 19 19 #d { color: green; } 20 20 } -
trunk/Source/WebCore/ChangeLog
r209841 r209842 1 2016-12-14 Dean Jackson <dino@apple.com> 2 3 Update prefers-reduced-motion syntax 4 https://bugs.webkit.org/show_bug.cgi?id=165880 5 <rdar://problems/29671807> 6 7 Reviewed by Sam Weinig. 8 9 After discussion in: 10 https://github.com/w3c/csswg-drafts/issues/442 11 ... the syntax of prefers-reduced-motion was changed 12 to accept "reduce" or "no-preference". 13 14 Updated the tests in fast/media. 15 16 * css/CSSValueKeywords.in: Add no-preference keyword. 17 * css/MediaQueryEvaluator.cpp: 18 (WebCore::prefersReducedMotionEvaluate): 19 1 20 2016-12-14 Sam Weinig <sam@webkit.org> 2 21 -
trunk/Source/WebCore/css/CSSValueKeywords.in
r209302 r209842 1327 1327 // prefers-reduced-motion 1328 1328 reduce 1329 no-preference 1329 1330 1330 1331 #if defined(ENABLE_CSS_GRID_LAYOUT) && ENABLE_CSS_GRID_LAYOUT -
trunk/Source/WebCore/css/MediaQueryEvaluator.cpp
r209241 r209842 700 700 return userPrefersReducedMotion; 701 701 702 return downcast<CSSPrimitiveValue>(*value).valueID() == (userPrefersReducedMotion ? CSSValueReduce : CSSValue Default);702 return downcast<CSSPrimitiveValue>(*value).valueID() == (userPrefersReducedMotion ? CSSValueReduce : CSSValueNoPreference); 703 703 } 704 704
Note:
See TracChangeset
for help on using the changeset viewer.