mirror of
https://github.com/servo/servo.git
synced 2025-08-08 06:55:31 +01:00
style: Implement the prefers-contrast media-query.
Differential Revision: https://phabricator.services.mozilla.com/D79553
This commit is contained in:
parent
46df06b3e2
commit
8ff565c86b
3 changed files with 71 additions and 4 deletions
|
@ -2089,7 +2089,9 @@ pub fn assert_initial_values_match(data: &PerDocumentStyleData) {
|
|||
let data = data.borrow();
|
||||
let cv = data.stylist.device().default_computed_values();
|
||||
<%
|
||||
# Skip properties with initial values that change at computed value time.
|
||||
# Skip properties with initial values that change at computed
|
||||
# value time, or whose initial value depends on the document
|
||||
# / other prefs.
|
||||
SKIPPED = [
|
||||
"border-top-width",
|
||||
"border-bottom-width",
|
||||
|
@ -2098,6 +2100,7 @@ pub fn assert_initial_values_match(data: &PerDocumentStyleData) {
|
|||
"font-family",
|
||||
"font-size",
|
||||
"outline-width",
|
||||
"color",
|
||||
]
|
||||
TO_TEST = [p for p in data.longhands if p.enabled_in != "" and not p.logical and not p.name in SKIPPED]
|
||||
%>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue