WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
239965
[@page] "size" should only parse as a descriptor, not a global CSS property
https://bugs.webkit.org/show_bug.cgi?id=239965
Summary
[@page] "size" should only parse as a descriptor, not a global CSS property
Oriol Brufau
Reported
2022-05-02 08:34:18 PDT
https://drafts.csswg.org/css-page-3/#page-size-prop
says that "size" is a property but it's clearly wrong, it's a descriptor, see
https://github.com/w3c/csswg-drafts/issues/5969
Then, CSS.supports("size: initial"); // Expected: false // Webkit: true // Blink: true // Gecko: false [...getComputedStyle(document.documentElement)].includes("size"); // Expected: false // Webkit: true // Blink: false // Gecko: false Note "system" for @counter-style works well everywhere:
https://drafts.csswg.org/css-counter-styles-3/#counter-style-system
CSS.supports("system: initial"); // false [...getComputedStyle(document.documentElement)].includes("system"); // false
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2022-05-09 08:35:15 PDT
<
rdar://problem/92963022
>
Sam Sneddon [:gsnedders]
Comment 2
2022-07-07 15:57:10 PDT
(In reply to Oriol Brufau from
comment #0
)
>
https://drafts.csswg.org/css-page-3/#page-size-prop
says that "size" is a > property but it's clearly wrong, it's a descriptor, see >
https://github.com/w3c/csswg-drafts/issues/5969
> > Then, > > CSS.supports("size: initial"); > // Expected: false > // Webkit: true > // Blink: true > // Gecko: false
Bug 217802
fixes this (as it's needed to avoid various asserts).
> > [...getComputedStyle(document.documentElement)].includes("size"); > // Expected: false > // Webkit: true > // Blink: false > // Gecko: false
This is a much broader issue, see
https://github.com/w3c/csswg-drafts/issues/5649
.
> Note "system" for @counter-style works well everywhere: >
https://drafts.csswg.org/css-counter-styles-3/#counter-style-system
> > CSS.supports("system: initial"); // false > [...getComputedStyle(document.documentElement)].includes("system"); // > false
Is that just because @counter-style is disabled by default? If you try "unicode-range" (of @font-face) you should see the same as with "size".
Sam Sneddon [:gsnedders]
Comment 3
2022-07-07 15:59:31 PDT
(In reply to Sam Sneddon [:gsnedders] from
comment #2
)
> This is a much broader issue, see >
https://github.com/w3c/csswg-drafts/issues/5649
.
Oh, finally found it:
bug 217627
. Basically I think this is just reporting the symptoms of CSS.supports returning true for descriptors (dunno if we have any actual specific bug for that), which
Bug 217802
fixes, and that other bug. Maybe close as dupe?
Tim Nguyen (:ntim)
Comment 4
2023-07-15 15:05:33 PDT
Pull request:
https://github.com/WebKit/WebKit/pull/15870
Tim Nguyen (:ntim)
Comment 5
2024-08-01 03:24:56 PDT
Pull request:
https://github.com/WebKit/WebKit/pull/31594
EWS
Comment 6
2024-08-01 11:51:54 PDT
Committed
281720@main
(4d0b0c1943c5): <
https://commits.webkit.org/281720@main
> Reviewed commits have been landed. Closing PR #31594 and removing active labels.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug