mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
layout: Only include quirks-mode.css in actual quirks mode (#37814)
This stylesheet was being included both in quirks mode and in limited quirks mode. It should only be the former. Testing: adding new test. Part of #37813 Signed-off-by: Oriol Brufau <obrufau@igalia.com>
This commit is contained in:
parent
7375d09887
commit
227aecad51
3 changed files with 86 additions and 1 deletions
|
@ -727,7 +727,7 @@ impl LayoutThread {
|
|||
self.load_all_web_fonts_from_stylesheet_with_guard(stylesheet, guards.ua_or_user);
|
||||
}
|
||||
|
||||
if self.stylist.quirks_mode() != QuirksMode::NoQuirks {
|
||||
if self.stylist.quirks_mode() == QuirksMode::Quirks {
|
||||
self.stylist.append_stylesheet(
|
||||
ua_stylesheets.quirks_mode_stylesheet.clone(),
|
||||
guards.ua_or_user,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue