[Webkit-unassigned] [Bug 195173] New: [css-values-4] calc() with out-of-range value must be clamped within range allowed
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Feb 28 11:01:17 PST 2019
https://bugs.webkit.org/show_bug.cgi?id=195173
Bug ID: 195173
Summary: [css-values-4] calc() with out-of-range value must be
clamped within range allowed
Product: WebKit
Version: Safari Technology Preview
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: CSS
Assignee: webkit-unassigned at lists.webkit.org
Reporter: browserbugs2 at gtalbot.org
CSS4 Values and Units, section 9.1.4. Range Checking
https://www.w3.org/TR/css-values-4/#calc-range
states
"
Parse-time range-checking of values is not performed within math functions, and therefore out-of-range values do not cause the declaration to become invalid. However, the value resulting from an expression must be clamped to the range allowed in the target context. Clamping is performed on computed values to the extent possible, and also on used values if computation was unable to sufficiently simplify the expression to allow range-checking.
"
Test
----
testing tab-size: calc(2 * -4) in
http://w3c-test.org/css/css-values/calc-numbers.html
Expected result
- - - - - - - -
document.defaultView.getComputedStyle(elemTarget)["tab-size"] == "0"
Test result
- - - - - -
https://wpt.fyi/results/css/css-values/calc-numbers.html?label=master
{ but got "12345" }
This seems to suggest that Safari 76 preview treats the declaration as invalid instead of performing clamping on computed value.
Epiphany Technological Preview 3.31.90-45-ga15d70306 using WebKitGTK 2.23.3 also fails that test in the same manner.
--
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/20190228/6814c405/attachment.html>
More information about the webkit-unassigned
mailing list