12021-11-20 Myles C. Maxfield <mmaxfield@apple.com>
2
3 rem in media queries should be calculated using font-size:initial, not root element font-size
4 https://bugs.webkit.org/show_bug.cgi?id=156684
5 <rdar://problem/25778616>
6
7 Reviewed by NOBODY (OOPS!).
8
9 The CSS spec says:
10 > Relative units in media queries are based on the initial value, which means that units are never based on results of declarations.
11
12 Tests: imported/w3c/web-platform-tests/css/mediaqueries/relative-units-001.html
13 imported/w3c/web-platform-tests/css/mediaqueries/mq-calc-005.html
14
15 * css/MediaQueryEvaluator.cpp:
16 (WebCore::MediaQueryEvaluator::evaluate const):
17