Re: [csswg-drafts] [css-sizing] Adding a 'size' shorthand for 'width'/'height' (#820)

What is blocking us here now?

> > Documents accessing the size property of an @page rule in the CSSOM via JS will stop working. So at least technically the change is breaking.
> 
> Yes, `pagerule.getPropertyValue('size')` would stop working; this is indeed a breaking API change.

Is it the above? If yes, can't we "just" do the following?

> IIRC, it seems it's possible to just have `size` in an `@page` context just be handled specially. It would be a little bit confusing that outside of `@page` it's a shorthand for width+height, but within `@page` it's a special property, but I think it might be the best option.

Making a distinction between property/descriptor seems acceptable, especially with [recent developments](https://github.com/w3c/csswg-drafts/commit/2e8c5020cffb6e0e3bd32d756ec08ed1b1968d02) in CSSOM.




-- 
GitHub Notification of comment by andruud
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/820#issuecomment-2056200194 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Monday, 15 April 2024 08:37:15 UTC