-
Notifications
You must be signed in to change notification settings - Fork 715
[css-page3] [cssom] Descriptors and properties #9685
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
To make this concrete, here's a testcase: The relevant style rule there is
In Firefox, this expression evaluates to In Firefox, the following longer version with
so I think that's what web developers are currently supposed to do, but the fact that |
I think this has been resolved in #5649:
In Chrome, Similarly, I think |
Yeah, dupe of #5649. Self-reminder for doing the spec changes. |
Currently CSSOM specifies how properties are exposed on on
CSSStyleDeclarations
. Right now, Chrome and WebKit include asize
property, reflecting the size "property" as here: https://drafts.csswg.org/css-page/#page-size-prop which can also be set on theCSSStyleDeclarations
that is thestyle
property of aCSSPageRule
. Howeversize
isn't really a property in this sense, it behaves as a descriptor and is not valid as a property on the style of an element. Firefox does not allow it to be set onCSSStyleDeclarations
, and it is only settable on thestyle
of aCSSPageRule
usingsetProperty
.It makes some sense that
size
could be settable on thestyle
value of aCSSPageRule
, so perhaps thestyle
property ofCSSPageRule
should be a new interface that inherits fromCSSStyleDeclarations
but addssize
and possiblypage-orientation
.The text was updated successfully, but these errors were encountered: