Source/WebCore/ChangeLog

 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
1182021-11-20 Alan Bujtas <zalan@apple.com>
219
320 [IFC][Integration] Initialize layout box geometries for preferred width computation

Source/WebCore/css/MediaQueryEvaluator.cpp

@@bool MediaQueryEvaluator::evaluate(const MediaQueryExpression& expression) const
928928 return false;
929929
930930 // Pass `nullptr` for `parentStyle` because we are in the context of a media query.
931  return function(expression.value(), { m_style, document.documentElement()->renderStyle(), nullptr, document.renderView(), 1, std::nullopt }, *frame, NoPrefix);
 931 return function(expression.value(), { m_style, &RenderStyle::defaultStyle(), nullptr, document.renderView(), 1, std::nullopt }, *frame, NoPrefix);
932932}
933933
934934bool MediaQueryEvaluator::mediaAttributeMatches(Document& document, const String& attributeValue)

LayoutTests/ChangeLog

 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 * TestExpectations:
 10
1112021-11-20 Carlos Garcia Campos <cgarcia@igalia.com>
212
313 Report the initiating url instead of the redirected one

LayoutTests/TestExpectations

@@webkit.org/b/209735 imported/w3c/web-platform-tests/css/selectors/root-siblings.
14851485imported/w3c/web-platform-tests/css/mediaqueries/device-aspect-ratio-001.html [ Skip ]
14861486imported/w3c/web-platform-tests/css/mediaqueries/device-aspect-ratio-005.html [ Skip ]
14871487
1488 webkit.org/b/156684 imported/w3c/web-platform-tests/css/mediaqueries/relative-units-001.html [ ImageOnlyFailure ]
1489 webkit.org/b/156684 imported/w3c/web-platform-tests/css/mediaqueries/mq-calc-005.html [ ImageOnlyFailure ]
1490 
14911488# nth-child tests takes long time and Debug build sometimes timeouts because there are many test cases.
14921489webkit.org/b/137149 fast/selectors/nth-child-of-basics.html [ Slow ]
14931490