mirror of
https://github.com/servo/servo.git
synced 2025-09-29 16:19:14 +01:00
script: Implement CSS.registerProperty
(#38682)
The implementation is mostly equivalent to https://searchfox.org/mozilla-central/source/servo/ports/geckolib/glue.rs#9480. Testing: New web platform tests start to pass --------- Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
This commit is contained in:
parent
3a0e8fefde
commit
43da933247
9 changed files with 185 additions and 46 deletions
|
@ -24,13 +24,13 @@ partial namespace CSS {
|
|||
};
|
||||
|
||||
// https://drafts.css-houdini.org/css-properties-values-api/#the-registerproperty-function
|
||||
// dictionary PropertyDefinition {
|
||||
// required DOMString name;
|
||||
// DOMString syntax = "*";
|
||||
// required boolean inherits;
|
||||
// DOMString initialValue;
|
||||
// };
|
||||
dictionary PropertyDefinition {
|
||||
required DOMString name;
|
||||
DOMString syntax = "*";
|
||||
required boolean inherits;
|
||||
DOMString initialValue;
|
||||
};
|
||||
|
||||
// partial namespace CSS {
|
||||
// undefined registerProperty(PropertyDefinition definition);
|
||||
// };
|
||||
partial namespace CSS {
|
||||
[Throws] undefined registerProperty(PropertyDefinition definition);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue