-
Notifications
You must be signed in to change notification settings - Fork 759
Description
This is quite a mess in browsers. I believe in Gecko we support !important just basically by chance...
We happen to also support custom properties in @page:
<!DOCTYPE html>
<style>
@page {
--margin: 200px;
margin: var(--margin);
}
:root {
background: red;
}
</style>But that's just an artifact of our current implementation, which is a hack and supports only properties, not descriptors.
It'd be good to know how are descriptors supposed to behave, what CSS features are supposed to work on descriptors, and such, in order to know what to support.
To elaborate, there's trickiness in supporting these features on descriptors... You can implement them like a CSS property, but then it's tricky not to expose it in other parts of the platforms. For example, WebKit and Blink both parse size: a3 on regular style rules, which is just bad.
Anyhow I suppose given other browsers support custom properties etc we'll do the tricky thing, but the spec should probably be clarified how a mix of properties and descriptors interact...