style: [css-properties-values-api] Implement parsing and serialization for @property at-rule

Implemented behind the new properties-and-values pref.

Support for the CSSPropertyRule WebIDL interface is also added in this
patch, because until it's added, any attempt to access the rule using
the CSSOM would crash the browser.

Depends on D178268

Differential Revision: https://phabricator.services.mozilla.com/D178270
This commit is contained in:
Zach Hoffman 2023-05-22 19:11:30 +00:00 committed by Martin Robinson
parent 87ce7045ef
commit 9c46eabe83
12 changed files with 312 additions and 3 deletions

View file

@ -550,6 +550,7 @@ impl StylesheetInvalidationSet {
},
CounterStyle(..) |
Page(..) |
Property(..) |
Viewport(..) |
FontFeatureValues(..) |
FontPaletteValues(..) |
@ -633,7 +634,11 @@ impl StylesheetInvalidationSet {
// existing elements.
}
},
CounterStyle(..) | Page(..) | Viewport(..) | FontFeatureValues(..) |
CounterStyle(..) |
Page(..) |
Property(..) |
Viewport(..) |
FontFeatureValues(..) |
FontPaletteValues(..) => {
debug!(
" > Found unsupported rule, marking the whole subtree \