[Webkit-unassigned] [Bug 262998] New: @property initial-value of length syntax using v* units works but is static
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Oct 10 21:02:05 PDT 2023
https://bugs.webkit.org/show_bug.cgi?id=262998
Bug ID: 262998
Summary: @property initial-value of length syntax using v*
units works but is static
Product: WebKit
Version: Safari 16
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: CSS
Assignee: webkit-unassigned at lists.webkit.org
Reporter: janeori at protonmail.com
URLs (if applicable) : https://codepen.io/propjockey/pen/RwEdwvd/bb689a16bf96d84d9bfaa570da358e24?editors=1100
Other browsers tested:
Chrome: same https://bugs.chromium.org/p/chromium/issues/detail?id=1491644
Firefox: N/A
Edge:
What steps will reproduce the problem?
(1) register a length property that defaults to 100vh or 100vw etc
(2) use the property
(3) resize the window
What is the expected result?
it should probably update the value or be a syntax error to use v* units in initial-value... maybe?
What happens instead?
the value does not update instead it stays locked to the px size of the screen when it loaded, which is interesting but probably not intended
initial-value is currently spec'd to be computationally independent so I suspect v* units should not be allowed at all there?
Here is a reduced test case, resize to see it happen:
https://codepen.io/propjockey/pen/RwEdwvd/bb689a16bf96d84d9bfaa570da358e24?editors=1100
Thank you!
// Jane
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20231011/5ee0aeb3/attachment-0001.htm>
More information about the webkit-unassigned
mailing list