Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not consider title from non-css stylesheet for preferred set
https://bugs.webkit.org/show_bug.cgi?id=118012 Reviewed by Antti Koivisto. Merge https://chromium.googlesource.com/chromium/blink/+/ac653f351a222c4ee80ddd656aaaf06c07d87125 Do not consider title from non-css stylesheet for preferred set. Title on a style element can be used to select the preferred stylesheet set. If the type attribute of the style element is not text/css, the title should never be set as the key for the preferred stylesheet set. * LayoutTests/fast/css/style-preferred-stylesheet-01-expected.html: Added. * LayoutTests/fast/css/style-preferred-stylesheet-01.html: Added. * LayoutTests/fast/css/style-preferred-stylesheet-02-expected.html: Added. * LayoutTests/fast/css/style-preferred-stylesheet-02.html: Added. * Source/WebCore/style/StyleScope.cpp: (WebCore::Style::Scope::collectActiveStyleSheets): Canonical link: https://commits.webkit.org/253632@main
- Loading branch information
Showing 5 changed files with 15 additions and 1 deletion.