Cascade layer styles should be lower priority than unlayered styles · WebKit/WebKit@e138655 (original) (raw)

Commit

Permalink

Cascade layer styles should be lower priority than unlayered styles

Browse files

Browse the repository at this point in the history

https://bugs.webkit.org/show_bug.cgi?id=231342

Reviewed by Simon Fraser.

LayoutTests/imported/w3c:

Update from the WPT repo.

Source/WebCore:

Update the implementation to match the resolution for w3c/csswg-drafts#6284.

Return std::numeric_limits::max() for unlayered rules.

(WebCore::Style::RuleSet::cascadeLayerOrderForIdentifier const): Deleted. (WebCore::Style::RuleSet::cascadeLayerOrderFor const): Deleted.

Also update naming order->priority to better match the spec text.

Canonical link: https://commits.webkit.org/242643@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@283718 268f45cc-cd09-0410-ab3c-d52691b4dbfc