14.62css/css-values/
1,821 / 1,947 WPT subtests passing
- Failed
- 126
- Timed out
- 0
- Not run
- 0
- Test files
- 56
- Blocking files
- 0
Chrome 1,827 / 1,947 WPT subtests passing on the same files, none blocking
Tests
3 directories, 49 test files here| Directory | Subtests passing | Chrome | Test files | Standing |
|---|---|---|---|---|
calc- | 63 / 101 | 101 / 101 | 3 | none blocking |
tree- | 47 / 47 | 47 / 47 | 1 | none blocking |
urls/ | 40 / 40 | 40 / 40 | 3 | none blocking |
Each test file opens in place to its subtests, and each subtest that did not pass to its message.
Test fileSubtests passingChromeFailedStanding
acos-asin-atan-atan2-computed.html 52 / 52 passingChrome 51 / 520 failedClean
52 passing subtests
- acos(1) should be used-value-equivalent to 0deg
- atan(0) should be used-value-equivalent to 0deg
- asin(0) should be used-value-equivalent to 0deg
- atan2(0,0) should be used-value-equivalent to 0deg
- calc(asin(sin(pi/2))) should be used-value-equivalent to 90deg
- calc(acos(cos(pi - 3.14159265358979323846))) should be used-value-equivalent to 0deg
- calc(atan(e - 2.7182818284590452354) ) should be used-value-equivalent to 0deg
- calc(asin(sin(30deg + 1.0471967rad ) )) should be used-value-equivalent to 90deg
- calc(acos(cos(30deg - 0.523599rad ) )) should be used-value-equivalent to 0deg
- calc(asin(sin(3.14159 / 2 + 1 - 1) )) should be used-value-equivalent to 90deg
- calc(asin(sin(100grad) )) should be used-value-equivalent to 90deg
- calc(acos(cos(0 / 2 + 1 - 1) )) should be used-value-equivalent to 0deg
- calc(atan(tan(30deg + 0.261799rad ) )) should be used-value-equivalent to 45deg
- calc(atan(tan(0.7853975rad ) )) should be used-value-equivalent to 45deg
- calc(atan(tan(3.14159 / 4 + 1 - 1) )) should be used-value-equivalent to 45deg
- calc(asin(sin(0.25turn)) ) should be used-value-equivalent to 90deg
- calc(atan2(0,1)) should be used-value-equivalent to 0deg
- calc(atan2(0,-1) / 4) should be used-value-equivalent to 45deg
- calc(atan2(1,-1)) should be used-value-equivalent to 135deg
- calc(atan2(-1,1)) should be used-value-equivalent to -45deg
- calc(asin(sin(180deg * sibling-index()))) should be used-value-equivalent to 0deg
- calc(acos(cos(180deg * sibling-index()))) should be used-value-equivalent to 180deg
- calc(atan(tan(180deg * sibling-index()))) should be used-value-equivalent to 0deg
- calc(atan2(1, sibling-index())) should be used-value-equivalent to 45deg
- calc(asin(sin(180deg * sign(1em - 1px)))) should be used-value-equivalent to 0deg
- calc(acos(cos(180deg * sign(1em - 1px)))) should be used-value-equivalent to 180deg
- calc(atan(tan(180deg * sign(1em - 1px)))) should be used-value-equivalent to 0deg
- calc(atan2(1, sign(1em - 1px))) should be used-value-equivalent to 45deg
- calc(tan(atan2(round(up,1px,100%),round(up,1px,100%)))*1px) should be computed-value-equivalent to calc(tan(atan2(round(up,1px,100%),round(up,1px,100%)))*1px)
- calc(1px * pow(tan(atan2(50%, 1px)), 1)) should be computed-value-equivalent to calc(1px * pow(tan(atan2(50%, 1px)), 1))
- calc(cos(sin(acos(cos(pi))))) should be used-value-equivalent to 1
- atan2(1px, -1px) should be used-value-equivalent to 135deg
- atan2(1cm, -1cm) should be used-value-equivalent to 135deg
- atan2(1mm, -1mm) should be used-value-equivalent to 135deg
- atan2(1Q, -1Q) should be used-value-equivalent to 135deg
- atan2(1in, -1in) should be used-value-equivalent to 135deg
- atan2(1pc, -1pc) should be used-value-equivalent to 135deg
- atan2(1pt, -1pt) should be used-value-equivalent to 135deg
- atan2(1em, -1em) should be used-value-equivalent to 135deg
- atan2(1ex, -1ex) should be used-value-equivalent to 135deg
- atan2(1ch, -1ch) should be used-value-equivalent to 135deg
- atan2(1rem, -1rem) should be used-value-equivalent to 135deg
- atan2(1rem + 1px - 1px, -1rem) should be used-value-equivalent to 135deg
- atan2(1vh, -1vh) should be used-value-equivalent to 135deg
- atan2(1vh + 0px, -1vh + 0px) should be used-value-equivalent to 135deg
- atan2(1vw, -1vw) should be used-value-equivalent to 135deg
- atan2(1deg, -1deg) should be used-value-equivalent to 135deg
- atan2(1grad, -1grad) should be used-value-equivalent to 135deg
- atan2(1turn, -1turn) should be used-value-equivalent to 135deg
- atan2(1rad, -1rad) should be used-value-equivalent to 135deg
- atan2(1s, -1s) should be used-value-equivalent to 135deg
- atan2(1ms, -1ms) should be used-value-equivalent to 135deg
attr-IACVT.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- CSS Values Test: attr() IACVT
attr-all-types.html 175 / 175 passingChrome 175 / 1750 failedClean
175 passing subtests
- Invariant behaviour for var
- CSS Values and Units Test: attr
- CSS Values and Units Test: attr 1
- CSS Values and Units Test: attr 2
- CSS Values and Units Test: attr 3
- CSS Values and Units Test: attr 4
- CSS Values and Units Test: attr 5
- CSS Values and Units Test: attr 6
- CSS Values and Units Test: attr 7
- CSS Values and Units Test: attr 8
- CSS Values and Units Test: attr 9
- CSS Values and Units Test: attr 10
- CSS Values and Units Test: attr 11
- CSS Values and Units Test: attr 12
- CSS Values and Units Test: attr 13
- CSS Values and Units Test: attr 14
- CSS Values and Units Test: attr 15
- CSS Values and Units Test: attr 16
- CSS Values and Units Test: attr 17
- CSS Values and Units Test: attr 18
- CSS Values and Units Test: attr 19
- CSS Values and Units Test: attr 20
- CSS Values and Units Test: attr 21
- CSS Values and Units Test: attr 22
- CSS Values and Units Test: attr 23
- CSS Values and Units Test: attr 24
- CSS Values and Units Test: attr 25
- CSS Values and Units Test: attr 26
- CSS Values and Units Test: attr 27
- CSS Values and Units Test: attr 28
- CSS Values and Units Test: attr 29
- CSS Values and Units Test: attr 30
- CSS Values and Units Test: attr 31
- CSS Values and Units Test: attr 32
- CSS Values and Units Test: attr 33
- CSS Values and Units Test: attr 34
- CSS Values and Units Test: attr 35
- CSS Values and Units Test: attr 36
- CSS Values and Units Test: attr 37
- CSS Values and Units Test: attr 38
- CSS Values and Units Test: attr 39
- CSS Values and Units Test: attr 40
- CSS Values and Units Test: attr 41
- CSS Values and Units Test: attr 42
- CSS Values and Units Test: attr 43
- CSS Values and Units Test: attr 44
- CSS Values and Units Test: attr 45
- CSS Values and Units Test: attr 46
- CSS Values and Units Test: attr 47
- CSS Values and Units Test: attr 48
- CSS Values and Units Test: attr 49
- CSS Values and Units Test: attr 50
- CSS Values and Units Test: attr 51
- CSS Values and Units Test: attr 52
- CSS Values and Units Test: attr 53
- CSS Values and Units Test: attr 54
- CSS Values and Units Test: attr 55
- CSS Values and Units Test: attr 56
- CSS Values and Units Test: attr 57
- CSS Values and Units Test: attr 58
- CSS Values and Units Test: attr 59
- CSS Values and Units Test: attr 60
- CSS Values and Units Test: attr 61
- CSS Values and Units Test: attr 62
- CSS Values and Units Test: attr 63
- CSS Values and Units Test: attr 64
- CSS Values and Units Test: attr 65
- CSS Values and Units Test: attr 66
- CSS Values and Units Test: attr 67
- CSS Values and Units Test: attr 68
- CSS Values and Units Test: attr 69
- CSS Values and Units Test: attr 70
- CSS Values and Units Test: attr 71
- CSS Values and Units Test: attr 72
- CSS Values and Units Test: attr 73
- CSS Values and Units Test: attr 74
- CSS Values and Units Test: attr 75
- CSS Values and Units Test: attr 76
- CSS Values and Units Test: attr 77
- CSS Values and Units Test: attr 78
- CSS Values and Units Test: attr 79
- CSS Values and Units Test: attr 80
- CSS Values and Units Test: attr 81
- CSS Values and Units Test: attr 82
- CSS Values and Units Test: attr 83
- CSS Values and Units Test: attr 84
- CSS Values and Units Test: attr 85
- CSS Values and Units Test: attr 86
- CSS Values and Units Test: attr 87
- CSS Values and Units Test: attr 88
- CSS Values and Units Test: attr 89
- CSS Values and Units Test: attr 90
- CSS Values and Units Test: attr 91
- CSS Values and Units Test: attr 92
- CSS Values and Units Test: attr 93
- CSS Values and Units Test: attr 94
- CSS Values and Units Test: attr 95
- CSS Values and Units Test: attr 96
- CSS Values and Units Test: attr 97
- CSS Values and Units Test: attr 98
- CSS Values and Units Test: attr 99
- CSS Values and Units Test: attr 100
- CSS Values and Units Test: attr 101
- CSS Values and Units Test: attr 102
- CSS Values and Units Test: attr 103
- CSS Values and Units Test: attr 104
- CSS Values and Units Test: attr 105
- CSS Values and Units Test: attr 106
- CSS Values and Units Test: attr 107
- CSS Values and Units Test: attr 108
- CSS Values and Units Test: attr 109
- CSS Values and Units Test: attr 110
- CSS Values and Units Test: attr 111
- CSS Values and Units Test: attr 112
- CSS Values and Units Test: attr 113
- CSS Values and Units Test: attr 114
- CSS Values and Units Test: attr 115
- CSS Values and Units Test: attr 116
- CSS Values and Units Test: attr 117
- CSS Values and Units Test: attr 118
- CSS Values and Units Test: attr 119
- CSS Values and Units Test: attr 120
- CSS Values and Units Test: attr 121
- CSS Values and Units Test: attr 122
- CSS Values and Units Test: attr 123
- CSS Values and Units Test: attr 124
- CSS Values and Units Test: attr 125
- CSS Values and Units Test: attr 126
- CSS Values and Units Test: attr 127
- CSS Values and Units Test: attr 128
- CSS Values and Units Test: attr 129
- CSS Values and Units Test: attr 130
- CSS Values and Units Test: attr 131
- CSS Values and Units Test: attr 132
- CSS Values and Units Test: attr 133
- CSS Values and Units Test: attr 134
- CSS Values and Units Test: attr 135
- CSS Values and Units Test: attr 136
- CSS Values and Units Test: attr 137
- CSS Values and Units Test: attr 138
- CSS Values and Units Test: attr 139
- CSS Values and Units Test: attr 140
- CSS Values and Units Test: attr 141
- CSS Values and Units Test: attr 142
- CSS Values and Units Test: attr 143
- CSS Values and Units Test: attr 144
- CSS Values and Units Test: attr 145
- CSS Values and Units Test: attr 146
- CSS Values and Units Test: attr 147
- CSS Values and Units Test: attr 148
- CSS Values and Units Test: attr 149
- CSS Values and Units Test: attr 150
- CSS Values and Units Test: attr 151
- CSS Values and Units Test: attr 152
- CSS Values and Units Test: attr 153
- CSS Values and Units Test: attr 154
- CSS Values and Units Test: attr 155
- CSS Values and Units Test: attr 156
- CSS Values and Units Test: attr 157
- CSS Values and Units Test: attr 158
- CSS Values and Units Test: attr 159
- CSS Values and Units Test: attr 160
- CSS Values and Units Test: attr 161
- CSS Values and Units Test: attr 162
- CSS Values and Units Test: attr 163
- CSS Values and Units Test: attr 164
- CSS Values and Units Test: attr 165
- CSS Values and Units Test: attr 166
- CSS Values and Units Test: attr 167
- CSS Values and Units Test: attr 168
- CSS Values and Units Test: attr 169
- CSS Values and Units Test: attr 170
- CSS Values and Units Test: attr 171
- CSS Values and Units Test: attr 172
- CSS Values and Units Test: attr 173
attr-argument-grammar.html 15 / 18 passingChrome 8 / 183 failedWith failures
- ¶
FAILCSS Values and Units Test: attr() argument grammar 8
assert_equals: Value 'attr(data-foo &, 30)', where 'data-foo=10' should be valid for the property 'font-weight'. expected "30" but got "400"
- ¶
FAILCSS Values and Units Test: attr() argument grammar 9
assert_equals: Value 'attr(data-foo type(<number>) | <length>, 30)', where 'data-foo=10' should be valid for the property 'font-weight'. expected "30" but got "400"
- ¶
FAILCSS Values and Units Test: attr() argument grammar 10
assert_equals: Value 'attr(data-foo type(invalid |), 10)', where 'data-foo=0' should be valid for the property 'font-weight'. expected "10" but got "400"
15 passing subtests
- CSS Values and Units Test: attr() argument grammar
- CSS Values and Units Test: attr() argument grammar 1
- CSS Values and Units Test: attr() argument grammar 2
- CSS Values and Units Test: attr() argument grammar 3
- CSS Values and Units Test: attr() argument grammar 4
- CSS Values and Units Test: attr() argument grammar 5
- CSS Values and Units Test: attr() argument grammar 6
- CSS Values and Units Test: attr() argument grammar 7
- CSS Values and Units Test: attr() argument grammar 11
- CSS Values and Units Test: attr() argument grammar 12
- CSS Values and Units Test: attr() argument grammar 13
- CSS Values and Units Test: attr() argument grammar 14
- CSS Values and Units Test: attr() argument grammar 15
- CSS Values and Units Test: attr() argument grammar 16
- CSS Values and Units Test: attr() argument grammar 17
attr-container-style-query.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- style query should implement to true
attr-css-wide-keywords.html 21 / 21 passingChrome 15 / 210 failedClean
21 passing subtests
- font-style: attr(data-foo type(*)) with data-foo="inherit"
- font-style: attr(data-foo type(*)) with data-foo="revert"
- color: attr(data-foo type(*)) with data-foo="initial"
- color: attr(data-foo type(*)) with data-foo="unset"
- --x: attr(data-foo type(*)) with data-foo="inherit"
- --y: attr(data-foo type(*)) with data-foo="initial"
- --y: attr(data-foo type(*)) with data-foo="unset"
- font-style: attr(invalid, inherit) with data-foo=""
- font-style: attr(invalid, revert) with data-foo=""
- color: attr(invalid, initial) with data-foo=""
- color: attr(invalid, unset) with data-foo=""
- --x: attr(invalid, inherit) with data-foo=""
- --y: attr(invalid, initial) with data-foo=""
- --y: attr(invalid, unset) with data-foo=""
- --z: attr(invalid, inherit) with data-foo=""
- --z: attr(invalid, initial) with data-foo=""
- font-style: attr(data-foo type(*)) with data-foo="attr(invalid, inherit)"
- --x: attr(data-foo type(*)) with data-foo="attr(invalid, inherit)"
- --y: attr(data-foo type(*)) with data-foo="attr(invalid, initial)"
- --y: attr(data-foo type(*)) with data-foo="attr(invalid, unset)"
- --z: attr(data-foo type(*)) with data-foo="attr(invalid, inherit)"
attr-cycle.html 37 / 37 passingChrome 37 / 370 failedClean
37 passing subtests
- CSS Values and Units Test: attr
- CSS Values and Units Test: attr 1
- CSS Values and Units Test: attr 2
- CSS Values and Units Test: attr 3
- CSS Values and Units Test: attr 4
- CSS Values and Units Test: attr 5
- CSS Values and Units Test: attr 6
- CSS Values and Units Test: attr 7
- CSS Values and Units Test: attr 8
- CSS Values and Units Test: attr 9
- CSS Values and Units Test: attr 10
- CSS Values and Units Test: attr 11
- CSS Values and Units Test: attr 12
- CSS Values and Units Test: attr 13
- CSS Values and Units Test: attr 14
- CSS Values and Units Test: attr 15
- CSS Values and Units Test: attr 16
- CSS Values and Units Test: attr 17
- CSS Values and Units Test: attr 18
- CSS Values and Units Test: attr 19
- CSS Values and Units Test: attr 20
- CSS Values and Units Test: attr 21
- CSS Values and Units Test: attr 22
- CSS Values and Units Test: attr 23
- CSS Values and Units Test: attr 24
- CSS Values and Units Test: attr 25
- CSS Values and Units Test: attr 26
- CSS Values and Units Test: attr 27
- CSS Values and Units Test: attr 28
- CSS Values and Units Test: attr 29
- CSS Values and Units Test: attr 30
- CSS Values and Units Test: attr 31
- CSS Values and Units Test: attr 32
- CSS Values and Units Test: attr 33
- CSS Values and Units Test: attr 34
- CSS Values and Units Test: attr 35
- CSS Values and Units Test: attr 36
attr-invalidation-after-stylesheet-change.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- attr() invalidates on attribute change after a style sheet is added
attr-invalidation.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- CSS Values and Units Test: attr() invalidation
attr-length-specified.html 3 / 3 passingChrome 3 / 30 failedClean
3 passing subtests
- type(<length>) lowercase
- type(<length>) uppercase
- Unit (em) number
attr-null-namespace.xhtml 5 / 5 passingChrome 5 / 50 failedClean
5 passing subtests
- Sanity check
- Attribute in null-namespace is substituted
- Fallback is taken when attribute does not exist in null-namespace
- Attribute in null-namespace is substituted (JS)
- Fallback is taken when attribute does not does exist in null-namespace (JS)
attr-parse-url.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- CSS Values and Units Test: Parsing URLs in attr
attr-pseudo-elem-invalidation-2.html 9 / 9 passingChrome 6 / 90 failedClean
9 passing subtests
- CSS Values and Units Test: attr() invalidation of pseudo elements
- CSS Values and Units Test: attr() invalidation of pseudo elements 1
- CSS Values and Units Test: attr() invalidation of pseudo elements 2
- CSS Values and Units Test: attr() invalidation of pseudo elements 3
- CSS Values and Units Test: attr() invalidation of pseudo elements 4
- CSS Values and Units Test: attr() invalidation of pseudo elements 5
- CSS Values and Units Test: attr() invalidation of pseudo elements 6
- CSS Values and Units Test: attr() invalidation of pseudo elements 7
- CSS Values and Units Test: attr() invalidation of pseudo elements 8
attr-pseudo-elem-invalidation.html 6 / 6 passingChrome 6 / 60 failedClean
6 passing subtests
- CSS Values and Units Test: attr() invalidation of pseudo elements
- CSS Values and Units Test: attr() invalidation of pseudo elements 1
- CSS Values and Units Test: attr() invalidation of pseudo elements 2
- CSS Values and Units Test: attr() invalidation of pseudo elements 3
- CSS Values and Units Test: attr() invalidation of pseudo elements 4
- CSS Values and Units Test: attr() invalidation of pseudo elements 5
attr-pseudo-element-originating.html 6 / 6 passingChrome 1 / 60 failedClean
6 passing subtests
- ::part() attr() resolves on shadow host
- ::part() attr() with percentage type resolves on shadow host
- ::part() attr() invalidation on host attribute change
- ::part() attr() resolves on the originating host across exportparts
- ::part() attr() invalidation across exportparts
- ::slotted() attr() invalidation on the slotted element
attr-revert-rule.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- The revert-rule works in an attr() fallback
attr-security-if.html 14 / 14 passingChrome 14 / 140 failedClean
14 passing subtests
- '--x: image-set(if(style(--true): attr(data-foo);))' with data-foo="https://does-not-exist.test/404.png"
- 'background-image: image-set(if(style(--true): attr(data-foo);))' with data-foo="https://does-not-exist.test/404.png"
- 'background-image: image-set( if(style(--true): url(https://does-not-exist-2.test/404.png); else: attr(data-foo);))' with data-foo="https://does-not-exist-2.test/404.png"
- 'background-image: image-set( if(style(--some-string): url(https://does-not-exist.test/404.png);))' with data-foo="https://does-not-exist.test/404.png"
- 'background-image: image-set( if(style(--condition-val: attr(data-foo type(*))): url(https://does-not-exist.test/404.png);))' with data-foo="3"
- 'background-image: image-set( if(style(--condition-val: attr(data-foo type(*))): url(https://does-not-exist.test/404.png); style(--true): url(https://does-not-exist.test/404.png); else: url(https://does-not-exist.test/404.png);))' with data-foo="1"
- 'background-image: image-set(if(style(--true): url(https://does-not-exist.test/404.png); style(--condition-val): url(https://does-not-exist.test/404.png); else: url(https://does-not-exist.test/404.png);))' with data-foo="attr(data-foo type(*))"
- 'background-image: image-set( if(style(--condition-val: if(style(--true): attr(data-foo type(*));)): url(https://does-not-exist.test/404.png);))' with data-foo="3"
- '--x: image-set(if(style(--condition-val: if(style(--true): attr(data-foo type(*));)): url(https://does-not-exist.test/404.png);))' with data-foo="3"
- '--x: image-set(if(style(--condition-val >= attr(data-foo type(*))): url(https://does-not-exist.test/404.png);))' with data-foo="3"
- 'background-image: image-set( if(style(--condition-val >= attr(data-foo type(*))): url(https://does-not-exist.test/404.png);))' with data-foo="3"
- 'background-image: image-set( if(style(--condition-val < attr(data-foo type(*))): url(https://does-not-exist.test/404.png);))' with data-foo="3"
- 'background-image: image-set( if(style(--str < attr(data-foo type(*))): url(https://does-not-exist.test/404.png);))' with data-foo="3"
- 'background-image: image-set( if(style(--condition-val < attr(data-foo type(*))): url(https://does-not-exist.test/404.png);))' with data-foo="text"
attr-security.html 31 / 32 passingChrome 32 / 321 failedWith failures
- ¶
FAIL'background-image: image("https://does-not-exist.test/404.png")' with data-foo="https://does-not-exist.test/404.png"
assert_equals: expected "image(url(\"https://does-not-exist.test/404.png\"))" but got "image(\"https://does-not-exist.test/404.png\")"
31 passing subtests
- '--x: image-set(attr(data-foo))' with data-foo="https://does-not-exist.test/404.png"
- 'background-image: image-set(attr(data-foo))' with data-foo="https://does-not-exist.test/404.png"
- 'background: image-set(attr(data-foo))' with data-foo="https://does-not-exist.test/404.png"
- 'background-image: image-set("https://does-not-exist.test/404.png")' with data-foo="https://does-not-exist.test/404.png"
- '--x: src(attr(data-foo))' with data-foo="https://does-not-exist.test/404.png"
- 'background-image: src(attr(data-foo))' with data-foo="https://does-not-exist.test/404.png"
- 'background-image: src("https://does-not-exist.test/404.png")' with data-foo="https://does-not-exist.test/404.png"
- '--x: src(string("https://does-not-exist.test" attr(data-foo)))' with data-foo="/404.png"
- 'background-image: src(string("https://does-not-exist.test" attr(data-foo)))' with data-foo="/404.png"
- 'background-image: src(string("https://does-not-exist.test/""404.png"))' with data-foo="/404.png"
- 'background-image: attr(data-foo type(<url>))' with data-foo="url(https://does-not-exist.test/404.png)"
- 'background-image: url("https://does-not-exist.test/404.png")' with data-foo="url(https://does-not-exist.test/404.png)"
- '--x: image(attr(data-foo))' with data-foo="https://does-not-exist.test/404.png"
- 'background-image: image(attr(data-foo))' with data-foo="https://does-not-exist.test/404.png"
- 'background-image: url(https://does-not-exist.test/404.png), attr(data-foo type(<image>))' with data-foo="linear-gradient(#000000, #ffffff)"
- '--x: image-set(var(--y, attr(data-foo)))' with data-foo="https://does-not-exist.test/404.png"
- 'background-image: image-set(var(--y, attr(data-foo)))' with data-foo="https://does-not-exist.test/404.png"
- '--x: image-set(var(--some-string))' with data-foo="https://does-not-exist.test/404.png"
- 'background-image: image-set(var(--some-string))' with data-foo="https://does-not-exist.test/404.png"
- '--x: image-set(var(--some-string-list))' with data-foo="https://does-not-exist.test/404.png"
- 'background-image: image-set(var(--some-string-list))' with data-foo="https://does-not-exist.test/404.png"
- '--registered-url: attr(data-foo type(<url>))' with data-foo="${url}"
- '--registered-color: attr(data-foo type(<color>))' with data-foo="blue"
- '--x: image-set(var(--some-other-url))' with data-foo="https://does-not-exist.test/404.png"
- 'background-image: image-set(var(--some-other-url))' with data-foo="https://does-not-exist.test/404.png"
- 'background-image: attr(data-foo type(*))' with data-foo="url(https://does-not-exist.test/404.png), linear-gradient(black, white)"
- 'background-image: image-set(var(--image-set-valid))' with data-foo="image/jpeg"
- 'background-image: image-set(var(--image-set-invalid))' with data-foo="https://does-not-exist.test/404.png"
- 'background-image: attr(data-foo type(*))' with data-foo="linear-gradient(black, white), url(https://does-not-exist.test/404.png)"
- 'background-image: var(--url-after-gradients)' with data-foo="https://does-not-exist.test/404.png"
- 'background-image: var(--undefined, var(--url-after-gradients))' with data-foo="https://does-not-exist.test/404.png"
attr-serialization.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- 'attr(data-foo type(<length>))' as a computed value should serialize as '10px'.
attr-universal-selector.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- CSS Values and Units Test: attr() security limitations in universal selector
calc-dimension-serialization-order.html 44 / 44 passingChrome 44 / 440 failedClean
44 passing subtests
- all dimensions reverse-sorted serialize back in canonical order
- cap sorts after %
- ch sorts after cap
- cqb sorts after ch
- cqh sorts after cqb
- cqi sorts after cqh
- cqmax sorts after cqi
- cqmin sorts after cqmax
- cqw sorts after cqmin
- dvb sorts after cqw
- dvh sorts after dvb
- dvi sorts after dvh
- dvmax sorts after dvi
- dvmin sorts after dvmax
- dvw sorts after dvmin
- em sorts after dvw
- ex sorts after em
- ic sorts after ex
- lh sorts after ic
- lvb sorts after lh
- lvh sorts after lvb
- lvi sorts after lvh
- lvmax sorts after lvi
- lvmin sorts after lvmax
- lvw sorts after lvmin
- px sorts after lvw
- rcap sorts after px
- rch sorts after rcap
- rem sorts after rch
- rex sorts after rem
- ric sorts after rex
- rlh sorts after ric
- svb sorts after rlh
- svh sorts after svb
- svi sorts after svh
- svmax sorts after svi
- svmin sorts after svmax
- svw sorts after svmin
- vb sorts after svw
- vh sorts after vb
- vi sorts after vh
- vmax sorts after vi
- vmin sorts after vmax
- vw sorts after vmin
calc-infinity-nan-computed.html 60 / 73 passingChrome 68 / 7313 failedWith failures
- ¶
FAILProperty width value 'calc(NaN * 1%)'
assert_equals: expected "0px" but got "0%"
- ¶
FAILProperty width value 'min(50%, NaN * 1px)'
assert_equals: expected "0px" but got "min(50%, NaN * 1px)"
- ¶
FAILProperty width value 'min(NaN * 1px, 50%)'
assert_equals: expected "0px" but got "min(NaN * 1px, 50%)"
- ¶
FAILProperty width value 'max(50%, NaN * 1px)'
assert_equals: expected "0px" but got "max(50%, NaN * 1px)"
- ¶
FAILProperty width value 'max(NaN * 1px, 50%)'
assert_equals: expected "0px" but got "max(NaN * 1px, 50%)"
- ¶
FAILProperty width value 'clamp(50%, NaN * 1px, 100px)'
assert_equals: expected "0px" but got "clamp(50%, NaN * 1px, 100px)"
- ¶
FAILProperty width value 'clamp(10px, 50%, NaN * 1px)'
assert_equals: expected "0px" but got "clamp(10px, 50%, NaN * 1px)"
- ¶
FAILProperty width value 'clamp(NaN * 1px, 50%, 100px)'
assert_equals: expected "0px" but got "clamp(NaN * 1px, 50%, 100px)"
- ¶
FAILProperty width value 'calc(min(50%, NaN * 1px) + 10px)'
assert_equals: expected "0px" but got "calc(10px + min(50%, NaN * 1px))"
- ¶
FAILProperty width value 'calc(infinity * 1px - infinity * 1%)'
assert_equals: expected "0px" but got "calc(-infinity * 1% + infinity * 1px)"
- ¶
FAILProperty width value 'calc(infinity * 1px + infinity * 1%)'
assert_true: calc(infinity * 1px + infinity * 1%) expected finite value but got NaN expected true got false
- ¶
FAILProperty width value 'calc(infinity * 1px - max(infinity * 1%, 0%))'
assert_equals: expected "0px" but got "calc(infinity * 1px - max(infinity * 1%, 0%))"
- ¶
FAILProperty margin-left value 'calc(min(1px, -infinity * 1%))'
assert_true: calc(min(1px, -infinity * 1%)) expected finite value but got NaN expected true got false
60 passing subtests
- Property width value 'calc(NaN * 1px)'
- Property width value 'calc(infinity * 1px)'
- Property width value 'calc(infinity * 1%)'
- Property width value 'calc(infinity * 1cm)'
- Property width value 'calc(NaN * 1rem)'
- Property width value 'calc(10.135262721212548pc - 199pt / NaN)'
- Property width value 'max(15px, NaN * 1px)'
- Property width value 'max(NaN * 1px, 15px)'
- Property width value 'max(-15px, NaN * 1px)'
- Property width value 'max(NaN * 1px, -15px)'
- Property width value 'min(15px, NaN * 1px)'
- Property width value 'min(NaN * 1px, 15px)'
- Property width value 'min(-15px, NaN * 1px)'
- Property width value 'min(NaN * 1px, -15px)'
- Property width value 'calc(min(NaN * 1px, infinity * 1px) + max(infinity * 1px, -infinity * 1px))'
- Property width value 'calc(max(infinity * 1px, 10px))'
- Property margin-left value 'calc(-infinity * 1px)'
- Property margin-left value 'calc(-infinity * 1%)'
- Property margin-left value 'calc(max(10000px, 0px) + min(-infinity * 1px, infinity * 1px))'
- Property margin-left value 'calc(-infinity * 1px - infinity * 1px)'
- Property margin-left value 'calc(min(-infinity * 1px, 10px))'
- Property margin-left value 'calc(1em / sign(1em - 16px))'
- Property margin-left value 'calc(1em / (-1 * sign(1em - 16px)))'
- Property animation-duration value 'calc(NaN * 1s)'
- Property animation-duration value 'calc(infinity * 1s)'
- Property animation-duration value 'calc(1 / 0 * 1s)'
- Property animation-duration value 'calc(max(infinity * 1s, 10s)'
- Property transition-delay value 'calc(-infinity* 1s)'
- Property transition-delay value 'calc(max(10000s, 0s) + min(-infinity * 1s, infinity * 1s))'
- Property transition-delay value 'calc(min(-infinity * 1s, 10s))'
- Property transition-delay value 'calc(1s / sign(1em - 16px))'
- Property transition-delay value 'calc(1s / (-1 * sign(1em - 16px)))'
- Property rotate(calc(infinity * 1deg)) value expected same with rotate(0deg) in +/-0.0001
- Property rotate(calc(-infinity * 1deg)) value expected same with rotate(0deg) in +/-0.0001
- Property rotate(calc(NaN * 1deg)) value expected same with rotate(0deg) in +/-0.0001
- Property rotate(calc(infinity * 1turn)) value expected same with rotate(0deg) in +/-0.0001
- Property rotate(calc(-infinity * 1turn)) value expected same with rotate(0deg) in +/-0.0001
- Property rotate(calc(NaN * 1turn)) value expected same with rotate(0deg) in +/-0.0001
- Property rotate(calc(infinity * 1rad)) value expected same with rotate(0deg) in +/-0.0001
- Property rotate(calc(-infinity * 1rad)) value expected same with rotate(0deg) in +/-0.0001
- Property rotate(calc(NaN * 1rad)) value expected same with rotate(0deg) in +/-0.0001
- Property rotate(calc(infinity * 1grad)) value expected same with rotate(0deg) in +/-0.0001
- Property rotate(calc(-infinity * 1grad)) value expected same with rotate(0deg) in +/-0.0001
- Property rotate(calc(NaN * 1grad)) value expected same with rotate(0deg) in +/-0.0001
- Property rotate(calc(1deg / sign(1em - 16px)) value expected same with rotate(0deg) in +/-0.0001
- Property rotate(calc(1deg / (-1 * sign(1em - 16px))) value expected same with rotate(0deg) in +/-0.0001
- Property scale value 'calc(max(infinity, 10))'
- Property scale value 'calc(infinity)'
- Property scale value 'calc(-infinity * 10)'
- Property scale value 'calc(1 / sign(1em - 16px))'
- Property scale value 'calc(1 / (-1 * sign(1em - 16px)))'
- Property scale value 'calc(max(infinity * 100%, 1000%))'
- Property scale value 'calc(infinity * 100%)'
- Property scale value 'calc(-infinity * 1000%)'
- Property scale value 'calc(100% / sign(1em - 16px))'
- Property scale value 'calc(100% / (-1 * sign(1em - 16px)))'
- Property translate value 'calc(infinity * 100%)'
- Property translate value 'calc(-infinity * 1000%)'
- Property translate value 'calc(100% / sign(1em - 16px))'
- Property translate value 'calc(100% / (-1 * sign(1em - 16px)))'
calc-invalid-parsing.html 6 / 6 passingChrome 6 / 60 failedClean
6 passing subtests
- e.style['transform'] = "rotate(calc((0.25turn error)))" should not set the property value
- e.style['width'] = "calc(7px * up)" should not set the property value
- e.style['width'] = "round(nearest, 1px, 1px, 1px)" should not set the property value
- e.style['width'] = "round(nearest, 1px)" should not set the property value
- e.style['width'] = "calc([])" should not set the property value
- e.style['width'] = "calc( [])" should not set the property value
calc-serialization-002.html 24 / 24 passingChrome 24 / 240 failedClean
24 passing subtests
- testing calc(1vh + 2px + 3%)
- testing calc(4px + 1vh)
- testing calc(5px + 6em + 1vh)
- testing calc(-8px + 9em + 1vh)
- testing calc(1pc + 1in + 1vh + 10%)
- testing calc(25.4q + 1vh + 12%)
- testing calc(1em + 1.27cm + 13% + 3em)
- testing calc(15vw + 16vmin - 17vh)
- testing calc(9pt + calc(9rem + 10px))
- testing calc(5pt + 5em + 4pt + 3em)
- testing calc(4vmin + 0pt + 3pc)
- testing calc(4vmin + 0pt)
- testing calc(100% - 100% + 1em)
- testing calc(100% + 1em - 100%)
- testing calc(1vh - 7px)
- testing calc(5ex - 9ex)
- testing calc(-80px + 25.4mm)
- testing calc(2 * (10px + 1rem))
- testing calc(2 * (10px - 1rem))
- testing calc((10px + 1rem) / 2)
- testing calc(2 * (min(10px, 20%) + max(1rem, 2%)))
- testing calc((min(10px, 20%) + max(1rem, 2%)) * 2)
- testing calc(1vmin - 14%)
- testing calc(4 * 3px + 4pc / 8)
calc-serialization.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- calc() serialization
clamp-color-computed.html 15 / 15 passingChrome 15 / 150 failedClean
15 passing subtests
- Property color value 'rgb(clamp(10, 20, 30) 0 0)'
- Property color value 'rgb(clamp(none, 30, 33) 0 0)'
- Property color value 'rgb(clamp(none, 33, 30) 0 0)'
- Property color value 'rgb(clamp(30, 33, none) 0 0)'
- Property color value 'rgb(clamp(33, 30, none) 0 0)'
- Property color value 'rgb(clamp(none, 30, none) 0 0)'
- Property color value 'rgb(from red clamp(r, 30, 300) g b)'
- Property color value 'rgb(from red clamp(30, 300, r) g b)'
- Property color value 'rgb(from red clamp(3, r, 300) g b)'
- Property color value 'rgb(from red clamp(3, r, r + 30) g b)'
- Property color value 'rgb(from red clamp(r - 30, r, 300) g b)'
- Property color value 'rgb(from red clamp(3, r, none) g b)'
- Property color value 'rgb(from red clamp(r, 30, none) g b)'
- Property color value 'rgb(from red clamp(none, r, 300) g b)'
- Property color value 'rgb(from red clamp(none, r, r + 30) g b)'
clamp-integer-computed.html 6 / 6 passingChrome 6 / 60 failedClean
6 passing subtests
- Property z-index value 'clamp(10, 20, 30)'
- Property z-index value 'clamp(none, 30, 33)'
- Property z-index value 'clamp(none, 33, 30)'
- Property z-index value 'clamp(30, 33, none)'
- Property z-index value 'clamp(33, 30, none)'
- Property z-index value 'clamp(none, 30, none)'
clamp-length-computed.html 24 / 24 passingChrome 24 / 240 failedClean
24 passing subtests
- Property letter-spacing value 'clamp(10px, 20px, 30px)'
- Property letter-spacing value 'clamp(10px, 5px, 30px)'
- Property letter-spacing value 'clamp(10px, 35px, 30px)'
- Property letter-spacing value 'clamp(10px, 35px , 30px)'
- Property letter-spacing value 'clamp(10px, 35px /*foo*/, 30px)'
- Property letter-spacing value 'clamp(10px /* foo */ , 35px, 30px)'
- Property letter-spacing value 'clamp(10px , 35px, 30px)'
- Property letter-spacing value 'clamp(30px, 100px, 20px)'
- Property letter-spacing value 'clamp(-30px, -20px, -10px)'
- Property letter-spacing value 'clamp(-30px, -100px, -10px)'
- Property letter-spacing value 'clamp(-30px, 100px, -10px)'
- Property letter-spacing value 'clamp(-10px, 100px, -30px)'
- Property letter-spacing value 'clamp(-10px, -100px, -30px)'
- Property letter-spacing value 'calc(0px + clamp(10px, 20px, 30px))'
- Property letter-spacing value 'calc(0px - clamp(10px, 20px, 30px))'
- Property letter-spacing value 'calc(0px + clamp(30px, 100px, 20px))'
- Property letter-spacing value 'calc(0px - clamp(30px, 100px, 20px))'
- Property letter-spacing value 'clamp(none, 30px, 33px)'
- Property letter-spacing value 'clamp(none, 33px, 30px)'
- Property letter-spacing value 'clamp(30px, 33px, none)'
- Property letter-spacing value 'clamp(33px, 30px, none)'
- Property letter-spacing value 'clamp(none, 30px, none)'
- Property letter-spacing value 'clamp(1000px, 1em / 1rem * 1px, none)'
- Property letter-spacing value 'clamp(1600px / 1em * 1px, 1em / 1rem * 1px, none)'
hypot-pow-sqrt-computed.html 111 / 127 passingChrome 111 / 12716 failedWith failures
- ¶
FAILhypot(0% + 3px, 0% + 4px) should be used-value-equivalent to 5px
assert_equals: hypot(0% + 3px, 0% + 4px) and 5px serialize to the same thing in used values. expected "5px" but got "hypot(0% + 3px, 0% + 4px)"
- ¶
FAILhypot(0% + 772.333px) should be used-value-equivalent to calc(0% + 772.333px)
assert_equals: hypot(0% + 772.333px) and calc(0% + 772.333px) serialize to the same thing in used values. expected "772.333px" but got "hypot(0% + 772.333px)"
- ¶
FAILhypot(0% + 772.35px) should be used-value-equivalent to calc(0% + 772.35px)
assert_equals: hypot(0% + 772.35px) and calc(0% + 772.35px) serialize to the same thing in used values. expected "772.35px" but got "hypot(0% + 772.35px)"
- ¶
FAILhypot(0% + 600px, 0% + 800px) should be used-value-equivalent to 1000px
assert_equals: hypot(0% + 600px, 0% + 800px) and 1000px serialize to the same thing in used values. expected "1000px" but got "hypot(0% + 600px, 0% + 800px)"
- ¶
FAILpow(-1, infinity) should be used-value-equivalent to calc(NaN)
assert_equals: pow(-1, infinity) and calc(NaN) serialize to the same thing in used values. expected "0" but got "1"
- ¶
FAILcalc(-1 * pow(-1, infinity)) should be used-value-equivalent to calc(NaN)
assert_equals: calc(-1 * pow(-1, infinity)) and calc(NaN) serialize to the same thing in used values. expected "0" but got "-1"
- ¶
FAILpow(1, infinity) should be used-value-equivalent to calc(NaN)
assert_equals: pow(1, infinity) and calc(NaN) serialize to the same thing in used values. expected "0" but got "1"
- ¶
FAILcalc(-1 * pow(1, infinity)) should be used-value-equivalent to calc(NaN)
assert_equals: calc(-1 * pow(1, infinity)) and calc(NaN) serialize to the same thing in used values. expected "0" but got "-1"
- ¶
FAILpow(-1, -infinity) should be used-value-equivalent to calc(NaN)
assert_equals: pow(-1, -infinity) and calc(NaN) serialize to the same thing in used values. expected "0" but got "1"
- ¶
FAILcalc(-1 * pow(-1, -infinity)) should be used-value-equivalent to calc(NaN)
assert_equals: calc(-1 * pow(-1, -infinity)) and calc(NaN) serialize to the same thing in used values. expected "0" but got "-1"
- ¶
FAILpow(1, -infinity) should be used-value-equivalent to calc(NaN)
assert_equals: pow(1, -infinity) and calc(NaN) serialize to the same thing in used values. expected "0" but got "1"
- ¶
FAILcalc(-1 * pow(1, -infinity)) should be used-value-equivalent to calc(NaN)
assert_equals: calc(-1 * pow(1, -infinity)) and calc(NaN) serialize to the same thing in used values. expected "0" but got "-1"
- ¶
FAILpow(NaN, 0) should be used-value-equivalent to calc(NaN)
assert_equals: pow(NaN, 0) and calc(NaN) serialize to the same thing in used values. expected "0" but got "1"
- ¶
FAILcalc(-1 * pow(NaN, 0)) should be used-value-equivalent to calc(NaN)
assert_equals: calc(-1 * pow(NaN, 0)) and calc(NaN) serialize to the same thing in used values. expected "0" but got "-1"
- ¶
FAILpow(1, NaN) should be used-value-equivalent to calc(NaN)
assert_equals: pow(1, NaN) and calc(NaN) serialize to the same thing in used values. expected "0" but got "1"
- ¶
FAILcalc(-1 * pow(1, NaN)) should be used-value-equivalent to calc(NaN)
assert_equals: calc(-1 * pow(1, NaN)) and calc(NaN) serialize to the same thing in used values. expected "0" but got "-1"
111 passing subtests
- pow(1,1) should be used-value-equivalent to 1
- sqrt(1) should be used-value-equivalent to 1
- hypot(1) should be used-value-equivalent to 1
- sqrt(pow(1,1)) should be used-value-equivalent to 1
- hypot(pow(1, sqrt(1))) should be used-value-equivalent to 1
- calc(hypot(pow((1 + sqrt(1)) / 2, sqrt(1)))) should be used-value-equivalent to 1
- calc(100px * pow(2, pow(2, 2))) should be used-value-equivalent to 1600px
- calc(1px * pow(2, 3)) should be used-value-equivalent to 8px
- calc(100px * sqrt(100)) should be used-value-equivalent to 1000px
- calc(1px * pow(2, sqrt(100)) should be used-value-equivalent to 1024px
- hypot(3px, 4px) should be used-value-equivalent to 5px
- hypot(3e+9px, 4e+9px) should be used-value-equivalent to 5e+9px
- calc(100px * hypot(3, 4)) should be used-value-equivalent to 500px
- hypot(-5px) should be used-value-equivalent to 5px
- calc(1px * hypot(-5)) should be used-value-equivalent to 5px
- calc(1px * hypot(10000)) should be used-value-equivalent to 10000px
- calc(2px * sqrt(100000000)) should be used-value-equivalent to 20000px
- calc(3px * pow(20, 4)) should be used-value-equivalent to 480000px
- calc(-2 * hypot(3px, 4px)) should be used-value-equivalent to -10px
- calc(100px - hypot(30px, 40px)) should be used-value-equivalent to 50px
- calc(100px - hypot(-30px, -40px)) should be used-value-equivalent to 50px
- calc(10 - hypot(3, 4)) should be used-value-equivalent to 5
- calc(10 - hypot(10 - hypot(3, 4), 12)) should be used-value-equivalent to -3
- sqrt(sibling-index()) should be used-value-equivalent to 2
- calc(1px * sqrt(sibling-index())) should be used-value-equivalent to 2px
- sqrt(pow(sibling-index(), 2)) should be used-value-equivalent to 4
- hypot(3, sibling-index()) should be used-value-equivalent to 5
- sqrt(4 * sign(1em - 1px)) should be used-value-equivalent to 2
- calc(1px * sqrt(4 * sign(1em - 1px))) should be used-value-equivalent to 2px
- sqrt(pow(4 * sign(1em - 1px), 2)) should be used-value-equivalent to 4
- hypot(3, 4 * sign(1em - 1px)) should be used-value-equivalent to 5
- calc(pow(tan(atan2(round(up,1px,100%),round(up,1px,100%))),2)*1px) should be computed-value-equivalent to calc(pow(tan(atan2(round(up,1px,100%),round(up,1px,100%))),2)*1px)
- pow(-2, 0.5) should be used-value-equivalent to calc(NaN)
- calc(-1 * pow(-2, 0.5)) should be used-value-equivalent to calc(NaN)
- pow(-8, 1 / 3) should be used-value-equivalent to calc(NaN)
- calc(-1 * pow(-8, 1 / 3)) should be used-value-equivalent to calc(NaN)
- calc(1 / pow(-infinity, -3)) should be used-value-equivalent to calc(-infinity)
- calc(1 / pow(-infinity, -2)) should be used-value-equivalent to calc(infinity)
- calc(1 / pow(-infinity, -1)) should be used-value-equivalent to calc(-infinity)
- pow(-infinity, 0) should be used-value-equivalent to 1
- pow(-infinity, 1) should be used-value-equivalent to calc(-infinity)
- pow(-infinity, 2) should be used-value-equivalent to calc(infinity)
- pow(-infinity, 3) should be used-value-equivalent to calc(-infinity)
- pow(-0, -3) should be used-value-equivalent to calc(-infinity)
- pow(-0, -2) should be used-value-equivalent to calc(infinity)
- pow(-0, -1) should be used-value-equivalent to calc(-infinity)
- pow(-0, 0) should be used-value-equivalent to 1
- calc(1 / pow(-0, 1)) should be used-value-equivalent to calc(-infinity)
- calc(1 / pow(-0, 2)) should be used-value-equivalent to calc(infinity)
- calc(1 / pow(-0, 3)) should be used-value-equivalent to calc(-infinity)
- pow(0, -3) should be used-value-equivalent to calc(infinity)
- pow(0, -1) should be used-value-equivalent to calc(infinity)
- pow(0, 0) should be used-value-equivalent to 1
- calc(1 / pow(0, 1)) should be used-value-equivalent to calc(infinity)
- calc(1 / pow(0, 2)) should be used-value-equivalent to calc(infinity)
- calc(1 / pow(infinity, -3)) should be used-value-equivalent to calc(infinity)
- calc(1 / pow(infinity, -1)) should be used-value-equivalent to calc(infinity)
- pow(infinity, 0) should be used-value-equivalent to 1
- pow(infinity, 1) should be used-value-equivalent to calc(infinity)
- pow(infinity, 2) should be used-value-equivalent to calc(infinity)
- pow(-2, infinity) should be used-value-equivalent to calc(infinity)
- calc(1 / pow(-0.5, infinity)) should be used-value-equivalent to calc(infinity)
- calc(1 / pow(0.5, infinity)) should be used-value-equivalent to calc(infinity)
- pow(2, infinity) should be used-value-equivalent to calc(infinity)
- calc(1 / pow(-2, -infinity)) should be used-value-equivalent to calc(infinity)
- pow(-0.5, -infinity) should be used-value-equivalent to calc(infinity)
- pow(0.5, -infinity) should be used-value-equivalent to calc(infinity)
- calc(1 / pow(2, -infinity)) should be used-value-equivalent to calc(infinity)
- pow(NaN, NaN) should be used-value-equivalent to calc(NaN)
- calc(-1 * pow(NaN, NaN)) should be used-value-equivalent to calc(NaN)
- calc(1 / sqrt(-0)) should be used-value-equivalent to calc(-infinity)
- sqrt(infinity) should be used-value-equivalent to calc(infinity)
- sqrt(-1) should be used-value-equivalent to calc(NaN)
- calc(-1 * sqrt(-1)) should be used-value-equivalent to calc(NaN)
- sqrt(NaN) should be used-value-equivalent to calc(NaN)
- calc(-1 * sqrt(NaN)) should be used-value-equivalent to calc(NaN)
- sqrt(-infinity) should be used-value-equivalent to calc(NaN)
- calc(-1 * sqrt(-infinity)) should be used-value-equivalent to calc(NaN)
- hypot(3, 4) should be used-value-equivalent to 5
- hypot(infinity, 5) should be used-value-equivalent to calc(infinity)
- hypot(5, infinity) should be used-value-equivalent to calc(infinity)
- hypot(-infinity, 5) should be used-value-equivalent to calc(infinity)
- hypot(NaN, 5) should be used-value-equivalent to calc(NaN)
- calc(-1 * hypot(NaN, 5)) should be used-value-equivalent to calc(NaN)
- hypot(5, NaN) should be used-value-equivalent to calc(NaN)
- calc(-1 * hypot(5, NaN)) should be used-value-equivalent to calc(NaN)
- hypot(infinity, NaN) should be used-value-equivalent to calc(NaN)
- calc(-1 * hypot(infinity, NaN)) should be used-value-equivalent to calc(NaN)
- hypot(NaN, infinity) should be used-value-equivalent to calc(NaN)
- calc(-1 * hypot(NaN, infinity)) should be used-value-equivalent to calc(NaN)
- hypot(1px) should be used-value-equivalent to 1px
- hypot(1cm) should be used-value-equivalent to 1cm
- hypot(1mm) should be used-value-equivalent to 1mm
- hypot(1Q) should be used-value-equivalent to 1Q
- hypot(1in) should be used-value-equivalent to 1in
- hypot(1pc) should be used-value-equivalent to 1pc
- hypot(1pt) should be used-value-equivalent to 1pt
- hypot(1em) should be used-value-equivalent to 1em
- hypot(1ex) should be used-value-equivalent to 1ex
- hypot(1ch) should be used-value-equivalent to 1ch
- hypot(1rem) should be used-value-equivalent to 1rem
- hypot(1vh) should be used-value-equivalent to 1vh
- hypot(1vw) should be used-value-equivalent to 1vw
- hypot(1vmin) should be used-value-equivalent to 1vmin
- hypot(1vmax) should be used-value-equivalent to 1vmax
- hypot(1s) should be used-value-equivalent to 1s
- hypot(1ms) should be used-value-equivalent to 1ms
- hypot(1deg) should be used-value-equivalent to 1deg
- hypot(1grad) should be used-value-equivalent to 1grad
- hypot(1rad) should be used-value-equivalent to 1rad
- hypot(1turn) should be used-value-equivalent to 1turn
ident-function-parsing.html 4 / 19 passingChrome 4 / 1915 failedWith failures
- ¶
FAILe.style['view-transition-name'] = "ident(rgb(1, 2, 3))" should set the property value
assert_not_equals: property should be set got disallowed value ""
- ¶
FAILe.style['view-transition-name'] = "ident(5px)" should set the property value
assert_not_equals: property should be set got disallowed value ""
- ¶
FAILe.style['view-transition-name'] = "ident(myident)" should set the property value
assert_not_equals: property should be set got disallowed value ""
- ¶
FAILe.style['view-transition-name'] = "ident( myident)" should set the property value
assert_not_equals: property should be set got disallowed value ""
- ¶
FAILe.style['view-transition-name'] = "ident(myident )" should set the property value
assert_not_equals: property should be set got disallowed value ""
- ¶
FAILe.style['view-transition-name'] = "ident(\"myident\")" should set the property value
assert_not_equals: property should be set got disallowed value ""
- ¶
FAILe.style['view-transition-name'] = "ident(\"myident\" 3)" should set the property value
assert_not_equals: property should be set got disallowed value ""
- ¶
FAILe.style['view-transition-name'] = "ident(3 \"myident\")" should set the property value
assert_not_equals: property should be set got disallowed value ""
- ¶
FAILe.style['view-transition-name'] = "ident(\"my\" \"ident\")" should set the property value
assert_not_equals: property should be set got disallowed value ""
- ¶
FAILe.style['view-transition-name'] = "ident(my \"ident\")" should set the property value
assert_not_equals: property should be set got disallowed value ""
- ¶
FAILe.style['view-transition-name'] = "ident(\"my\" ident)" should set the property value
assert_not_equals: property should be set got disallowed value ""
- ¶
FAILe.style['view-transition-name'] = "ident(my ident)" should set the property value
assert_not_equals: property should be set got disallowed value ""
- ¶
FAILe.style['view-transition-name'] = "ident(-- myident)" should set the property value
assert_not_equals: property should be set got disallowed value ""
- ¶
FAILe.style['view-transition-name'] = "ident(my 3 3 3 3 ident)" should set the property value
assert_not_equals: property should be set got disallowed value ""
- ¶
FAILe.style['view-transition-name'] = "ident(\"myident\" 42)" should set the property value
assert_not_equals: property should be set got disallowed value ""
4 passing subtests
- e.style['view-transition-name'] = "ident()" should not set the property value
- e.style['view-transition-name'] = "ident( )" should not set the property value
- e.style['view-transition-name'] = "ident({})" should not set the property value
- e.style['view-transition-name'] = "ident(a, b)" should not set the property value
if-conditionals.html 199 / 203 passingChrome 199 / 2034 failedWith failures
- ¶
FAILCSS Values and Units Test: CSS inline if() function 6
assert_equals: "if(style(--x: 0): ;)" should be substituted to "". expected "" but got " "
- ¶
FAILCSS Values and Units Test: CSS inline if() function 7
assert_equals: "if(style(--x: 0): )" should be substituted to "". expected "" but got " "
- ¶
FAILCSS Values and Units Test: CSS inline if() function 28
assert_equals: "if(style(--x: 0): true_value; else: )" should be substituted to "". expected "" but got " " - ¶
FAILCSS Values and Units Test: CSS inline if() function 29
assert_equals: "if(style(--x: 3): ; else: false_value)" should be substituted to "". expected "" but got " "
199 passing subtests
- CSS Values and Units Test: CSS inline if() function
- CSS Values and Units Test: CSS inline if() function 1
- CSS Values and Units Test: CSS inline if() function 2
- CSS Values and Units Test: CSS inline if() function 3
- CSS Values and Units Test: CSS inline if() function 4
- CSS Values and Units Test: CSS inline if() function 5
- CSS Values and Units Test: CSS inline if() function 8
- CSS Values and Units Test: CSS inline if() function 9
- CSS Values and Units Test: CSS inline if() function 10
- CSS Values and Units Test: CSS inline if() function 11
- CSS Values and Units Test: CSS inline if() function 12
- CSS Values and Units Test: CSS inline if() function 13
- CSS Values and Units Test: CSS inline if() function 14
- CSS Values and Units Test: CSS inline if() function 15
- CSS Values and Units Test: CSS inline if() function 16
- CSS Values and Units Test: CSS inline if() function 17
- CSS Values and Units Test: CSS inline if() function 18
- CSS Values and Units Test: CSS inline if() function 19
- CSS Values and Units Test: CSS inline if() function 20
- CSS Values and Units Test: CSS inline if() function 21
- CSS Values and Units Test: CSS inline if() function 22
- CSS Values and Units Test: CSS inline if() function 23
- CSS Values and Units Test: CSS inline if() function 24
- CSS Values and Units Test: CSS inline if() function 25
- CSS Values and Units Test: CSS inline if() function 26
- CSS Values and Units Test: CSS inline if() function 27
- CSS Values and Units Test: CSS inline if() function 30
- CSS Values and Units Test: CSS inline if() function 31
- CSS Values and Units Test: CSS inline if() function 32
- CSS Values and Units Test: CSS inline if() function 33
- CSS Values and Units Test: CSS inline if() function 34
- CSS Values and Units Test: CSS inline if() function 35
- CSS Values and Units Test: CSS inline if() function 36
- CSS Values and Units Test: CSS inline if() function 37
- CSS Values and Units Test: CSS inline if() function 38
- CSS Values and Units Test: CSS inline if() function 39
- CSS Values and Units Test: CSS inline if() function 40
- CSS Values and Units Test: CSS inline if() function 41
- CSS Values and Units Test: CSS inline if() function 42
- CSS Values and Units Test: CSS inline if() function 43
- CSS Values and Units Test: CSS inline if() function 44
- CSS Values and Units Test: CSS inline if() function 45
- CSS Values and Units Test: CSS inline if() function 46
- CSS Values and Units Test: CSS inline if() function 47
- CSS Values and Units Test: CSS inline if() function 48
- CSS Values and Units Test: CSS inline if() function 49
- CSS Values and Units Test: CSS inline if() function 50
- CSS Values and Units Test: CSS inline if() function 51
- CSS Values and Units Test: CSS inline if() function 52
- CSS Values and Units Test: CSS inline if() function 53
- CSS Values and Units Test: CSS inline if() function 54
- CSS Values and Units Test: CSS inline if() function 55
- CSS Values and Units Test: CSS inline if() function 56
- CSS Values and Units Test: CSS inline if() function 57
- CSS Values and Units Test: CSS inline if() function 58
- CSS Values and Units Test: CSS inline if() function 59
- CSS Values and Units Test: CSS inline if() function 60
- CSS Values and Units Test: CSS inline if() function 61
- CSS Values and Units Test: CSS inline if() function 62
- CSS Values and Units Test: CSS inline if() function 63
- CSS Values and Units Test: CSS inline if() function 64
- CSS Values and Units Test: CSS inline if() function 65
- CSS Values and Units Test: CSS inline if() function 66
- CSS Values and Units Test: CSS inline if() function 67
- CSS Values and Units Test: CSS inline if() function 68
- CSS Values and Units Test: CSS inline if() function 69
- CSS Values and Units Test: CSS inline if() function 70
- CSS Values and Units Test: CSS inline if() function 71
- CSS Values and Units Test: CSS inline if() function 72
- CSS Values and Units Test: CSS inline if() function 73
- CSS Values and Units Test: CSS inline if() function 74
- CSS Values and Units Test: CSS inline if() function 75
- CSS Values and Units Test: CSS inline if() function 76
- CSS Values and Units Test: CSS inline if() function 77
- CSS Values and Units Test: CSS inline if() function 78
- CSS Values and Units Test: CSS inline if() function 79
- CSS Values and Units Test: CSS inline if() function 80
- CSS Values and Units Test: CSS inline if() function 81
- CSS Values and Units Test: CSS inline if() function 82
- CSS Values and Units Test: CSS inline if() function 83
- CSS Values and Units Test: CSS inline if() function 84
- CSS Values and Units Test: CSS inline if() function 85
- CSS Values and Units Test: CSS inline if() function 86
- CSS Values and Units Test: CSS inline if() function 87
- CSS Values and Units Test: CSS inline if() function 88
- CSS Values and Units Test: CSS inline if() function 89
- CSS Values and Units Test: CSS inline if() function 90
- CSS Values and Units Test: CSS inline if() function 91
- CSS Values and Units Test: CSS inline if() function 92
- CSS Values and Units Test: CSS inline if() function 93
- CSS Values and Units Test: CSS inline if() function 94
- CSS Values and Units Test: CSS inline if() function 95
- CSS Values and Units Test: CSS inline if() function 96
- CSS Values and Units Test: CSS inline if() function 97
- CSS Values and Units Test: CSS inline if() function 98
- CSS Values and Units Test: CSS inline if() function 99
- CSS Values and Units Test: CSS inline if() function 100
- CSS Values and Units Test: CSS inline if() function 101
- CSS Values and Units Test: CSS inline if() function 102
- CSS Values and Units Test: CSS inline if() function 103
- CSS Values and Units Test: CSS inline if() function 104
- CSS Values and Units Test: CSS inline if() function 105
- CSS Values and Units Test: CSS inline if() function 106
- CSS Values and Units Test: CSS inline if() function 107
- CSS Values and Units Test: CSS inline if() function 108
- CSS Values and Units Test: CSS inline if() function 109
- CSS Values and Units Test: CSS inline if() function 110
- CSS Values and Units Test: CSS inline if() function 111
- CSS Values and Units Test: CSS inline if() function 112
- CSS Values and Units Test: CSS inline if() function 113
- CSS Values and Units Test: CSS inline if() function 114
- CSS Values and Units Test: CSS inline if() function 115
- CSS Values and Units Test: CSS inline if() function 116
- CSS Values and Units Test: CSS inline if() function 117
- CSS Values and Units Test: CSS inline if() function 118
- CSS Values and Units Test: CSS inline if() function 119
- CSS Values and Units Test: CSS inline if() function 120
- CSS Values and Units Test: CSS inline if() function 121
- CSS Values and Units Test: CSS inline if() function 122
- CSS Values and Units Test: CSS inline if() function 123
- CSS Values and Units Test: CSS inline if() function 124
- CSS Values and Units Test: CSS inline if() function 125
- CSS Values and Units Test: CSS inline if() function 126
- CSS Values and Units Test: CSS inline if() function 127
- CSS Values and Units Test: CSS inline if() function 128
- CSS Values and Units Test: CSS inline if() function 129
- CSS Values and Units Test: CSS inline if() function 130
- CSS Values and Units Test: CSS inline if() function 131
- CSS Values and Units Test: CSS inline if() function 132
- CSS Values and Units Test: CSS inline if() function 133
- CSS Values and Units Test: CSS inline if() function 134
- CSS Values and Units Test: CSS inline if() function 135
- CSS Values and Units Test: CSS inline if() function 136
- CSS Values and Units Test: CSS inline if() function 137
- CSS Values and Units Test: CSS inline if() function 138
- CSS Values and Units Test: CSS inline if() function 139
- CSS Values and Units Test: CSS inline if() function 140
- CSS Values and Units Test: CSS inline if() function 141
- CSS Values and Units Test: CSS inline if() function 142
- CSS Values and Units Test: CSS inline if() function 143
- CSS Values and Units Test: CSS inline if() function 144
- CSS Values and Units Test: CSS inline if() function 145
- CSS Values and Units Test: CSS inline if() function 146
- CSS Values and Units Test: CSS inline if() function 147
- CSS Values and Units Test: CSS inline if() function 148
- CSS Values and Units Test: CSS inline if() function 149
- CSS Values and Units Test: CSS inline if() function 150
- CSS Values and Units Test: CSS inline if() function 151
- CSS Values and Units Test: CSS inline if() function 152
- CSS Values and Units Test: CSS inline if() function 153
- CSS Values and Units Test: CSS inline if() function 154
- CSS Values and Units Test: CSS inline if() function 155
- CSS Values and Units Test: CSS inline if() function 156
- CSS Values and Units Test: CSS inline if() function 157
- CSS Values and Units Test: CSS inline if() function 158
- CSS Values and Units Test: CSS inline if() function 159
- CSS Values and Units Test: CSS inline if() function 160
- CSS Values and Units Test: CSS inline if() function 161
- CSS Values and Units Test: CSS inline if() function 162
- CSS Values and Units Test: CSS inline if() function 163
- CSS Values and Units Test: CSS inline if() function 164
- CSS Values and Units Test: CSS inline if() function 165
- CSS Values and Units Test: CSS inline if() function 166
- CSS Values and Units Test: CSS inline if() function 167
- CSS Values and Units Test: CSS inline if() function 168
- CSS Values and Units Test: CSS inline if() function 169
- CSS Values and Units Test: CSS inline if() function 170
- CSS Values and Units Test: CSS inline if() function 171
- CSS Values and Units Test: CSS inline if() function 172
- CSS Values and Units Test: CSS inline if() function 173
- CSS Values and Units Test: CSS inline if() function 174
- CSS Values and Units Test: CSS inline if() function 175
- CSS Values and Units Test: CSS inline if() function 176
- CSS Values and Units Test: CSS inline if() function 177
- CSS Values and Units Test: CSS inline if() function 178
- CSS Values and Units Test: CSS inline if() function 179
- CSS Values and Units Test: CSS inline if() function 180
- CSS Values and Units Test: CSS inline if() function 181
- CSS Values and Units Test: CSS inline if() function 182
- CSS Values and Units Test: CSS inline if() function 183
- CSS Values and Units Test: CSS inline if() function 184
- CSS Values and Units Test: CSS inline if() function 185
- CSS Values and Units Test: CSS inline if() function 186
- CSS Values and Units Test: CSS inline if() function 187
- CSS Values and Units Test: CSS inline if() function 188
- CSS Values and Units Test: CSS inline if() function 189
- CSS Values and Units Test: CSS inline if() function 190
- CSS Values and Units Test: CSS inline if() function 191
- CSS Values and Units Test: CSS inline if() function 192
- CSS Values and Units Test: CSS inline if() function 193
- CSS Values and Units Test: CSS inline if() function 194
- CSS Values and Units Test: CSS inline if() function 195
- CSS Values and Units Test: CSS inline if() function 196
- CSS Values and Units Test: CSS inline if() function 197
- CSS Values and Units Test: CSS inline if() function 198
- CSS Values and Units Test: CSS inline if() function 199
- CSS Values and Units Test: CSS inline if() function 200
- CSS Values and Units Test: CSS inline if() function 201
- CSS Values and Units Test: CSS inline if() function 202
if-cycle.html 46 / 46 passingChrome 46 / 460 failedClean
46 passing subtests
- CSS Values and Units Test: CSS if() function cycles
- CSS Values and Units Test: CSS if() function cycles 1
- CSS Values and Units Test: CSS if() function cycles 2
- CSS Values and Units Test: CSS if() function cycles 3
- CSS Values and Units Test: CSS if() function cycles 4
- CSS Values and Units Test: CSS if() function cycles 5
- CSS Values and Units Test: CSS if() function cycles 6
- CSS Values and Units Test: CSS if() function cycles 7
- CSS Values and Units Test: CSS if() function cycles 8
- CSS Values and Units Test: CSS if() function cycles 9
- CSS Values and Units Test: CSS if() function cycles 10
- CSS Values and Units Test: CSS if() function cycles 11
- CSS Values and Units Test: CSS if() function cycles 12
- CSS Values and Units Test: CSS if() function cycles 13
- CSS Values and Units Test: CSS if() function cycles 14
- CSS Values and Units Test: CSS if() function cycles 15
- CSS Values and Units Test: CSS if() function cycles 16
- CSS Values and Units Test: CSS if() function cycles 17
- CSS Values and Units Test: CSS if() function cycles 18
- CSS Values and Units Test: CSS if() function cycles 19
- CSS Values and Units Test: CSS if() function cycles 20
- CSS Values and Units Test: CSS if() function cycles 21
- CSS Values and Units Test: CSS if() function cycles 22
- CSS Values and Units Test: CSS if() function cycles 23
- CSS Values and Units Test: CSS if() function cycles 24
- CSS Values and Units Test: CSS if() function cycles 25
- CSS Values and Units Test: CSS if() function cycles 26
- CSS Values and Units Test: CSS if() function cycles 27
- CSS Values and Units Test: CSS if() function cycles 28
- CSS Values and Units Test: CSS if() function cycles 29
- CSS Values and Units Test: CSS if() function cycles 30
- CSS Values and Units Test: CSS if() function cycles 31
- CSS Values and Units Test: CSS if() function cycles 32
- CSS Values and Units Test: CSS if() function cycles 33
- CSS Values and Units Test: CSS if() function cycles 34
- CSS Values and Units Test: CSS if() function cycles 35
- CSS Values and Units Test: CSS if() function cycles 36
- CSS Values and Units Test: CSS if() function cycles 37
- CSS Values and Units Test: CSS if() function cycles 38
- CSS Values and Units Test: CSS if() function cycles 39
- CSS Values and Units Test: CSS if() function cycles 40
- CSS Values and Units Test: CSS if() function cycles 41
- CSS Values and Units Test: CSS if() function cycles 42
- CSS Values and Units Test: CSS if() function cycles 43
- CSS Values and Units Test: CSS if() function cycles 44
- CSS Values and Units Test: CSS if() function cycles 45
if-function-revert-rule.html 2 / 2 passingChrome 2 / 20 failedClean
2 passing subtests
- The revert-rule works as a branch in if()
- The revert-rule works as a branch in if(), earlier return
if-initial-unregistered.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- if-testing the initial keyword without any property registrations
if-invalidation.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- CSS Values and Units Test: if() invalidation
if-style-invalidation.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- CSS Values and Units Test: if() style() condition invalidation
if-supports-quirks.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- CSS Values and Units Test: CSS inline if() function supports() in quirks mode
inherit-function-parsing.html 2 / 8 passingChrome 2 / 86 failedWith failures
- ¶
FAILe.style['left'] = "inherit(--x)" should set the property value
assert_not_equals: property should be set got disallowed value ""
- ¶
FAILe.style['left'] = "calc(inherit(--x) + 1px)" should set the property value
assert_not_equals: property should be set got disallowed value ""
- ¶
FAILe.style['left'] = "inherit(--x,)" should set the property value
assert_not_equals: property should be set got disallowed value ""
- ¶
FAILe.style['left'] = "inherit(--x, )" should set the property value
assert_not_equals: property should be set got disallowed value ""
- ¶
FAILe.style['left'] = "inherit(--x , )" should set the property value
assert_not_equals: property should be set got disallowed value ""
- ¶
FAILe.style['left'] = "inherit(--x, foo)" should set the property value
assert_not_equals: property should be set got disallowed value ""
2 passing subtests
- e.style['left'] = "inherit(!!, foo)" should not set the property value
- e.style['left'] = "inherit(, foo)" should not set the property value
minmax-angle-computed.html 32 / 32 passingChrome 32 / 320 failedClean
32 passing subtests
- min(1deg) should be used-value-equivalent to 1deg
- min(1grad) should be used-value-equivalent to 1grad
- min(1rad) should be used-value-equivalent to 1rad
- min(1turn) should be used-value-equivalent to 1turn
- max(1deg) should be used-value-equivalent to 1deg
- max(1grad) should be used-value-equivalent to 1grad
- max(1rad) should be used-value-equivalent to 1rad
- max(1turn) should be used-value-equivalent to 1turn
- min(1deg, 2deg) should be used-value-equivalent to 1deg
- min(1grad, 2grad) should be used-value-equivalent to 1grad
- min(1rad, 2rad) should be used-value-equivalent to 1rad
- min(1turn, 2turn) should be used-value-equivalent to 1turn
- max(1deg, 2deg) should be used-value-equivalent to 2deg
- max(1grad, 2grad) should be used-value-equivalent to 2grad
- max(1rad, 2rad) should be used-value-equivalent to 2rad
- max(1turn, 2turn) should be used-value-equivalent to 2turn
- min(90deg, 0.26turn) should be used-value-equivalent to 90deg
- min(1.57rad, 95deg) should be used-value-equivalent to 1.57rad
- max(91deg, 0.25turn) should be used-value-equivalent to 91deg
- max(1.58rad, 90deg) should be used-value-equivalent to 1.58rad
- min(270deg, max(0.25turn, 3.14rad)) should be used-value-equivalent to 3.14rad
- max(0.25turn, min(270deg, 3.14rad)) should be used-value-equivalent to 3.14rad
- calc(min(90deg, 1.58rad) + 0.125turn) should be used-value-equivalent to 135deg
- calc(min(90deg, 1.58rad) - 0.125turn) should be used-value-equivalent to 45deg
- calc(min(90deg, 1.58rad) * 1.5 should be used-value-equivalent to 135deg
- calc(min(90deg, 1.58rad) / 2 should be used-value-equivalent to 45deg
- calc(max(90deg, 1.56rad) + 0.125turn should be used-value-equivalent to 135deg
- calc(max(90deg, 1.56rad) - 0.125turn) should be used-value-equivalent to 45deg
- calc(max(90deg, 1.56rad) * 1.5 should be used-value-equivalent to 135deg
- calc(max(90deg, 1.56rad) / 2 should be used-value-equivalent to 45deg
- calc(min(90deg, 1.58rad) + max(0.125turn, 49grad)) should be used-value-equivalent to 135deg
- calc(min(90deg, 1.58rad) - max(0.25turn, 99grad)) should be used-value-equivalent to 0deg
minmax-integer-computed.html 10 / 10 passingChrome 10 / 100 failedClean
10 passing subtests
- min(1) should be used-value-equivalent to 1
- max(1) should be used-value-equivalent to 1
- min(0.4) should be used-value-equivalent to 0
- min(0.6) should be used-value-equivalent to 1
- max(0.4) should be used-value-equivalent to 0
- max(0.6) should be used-value-equivalent to 1
- min(1.1, max(0.4, 0.6)) should be used-value-equivalent to 1
- max(0.3, min(1.1, 0.4)) should be used-value-equivalent to 0
- calc(min(0.3, 0.6) * 2) should be used-value-equivalent to 1
- calc(max(0.3, 0.6) / 2) should be used-value-equivalent to 0
minmax-length-computed.html 80 / 80 passingChrome 80 / 800 failedClean
80 passing subtests
- min(1px) should be used-value-equivalent to 1px
- min(1cm) should be used-value-equivalent to 1cm
- min(1mm) should be used-value-equivalent to 1mm
- min(1Q) should be used-value-equivalent to 1Q
- min(1in) should be used-value-equivalent to 1in
- min(1pc) should be used-value-equivalent to 1pc
- min(1pt) should be used-value-equivalent to 1pt
- min(1em) should be used-value-equivalent to 1em
- min(1ex) should be used-value-equivalent to 1ex
- min(1ch) should be used-value-equivalent to 1ch
- min(1rem) should be used-value-equivalent to 1rem
- min(1vh) should be used-value-equivalent to 1vh
- min(1vw) should be used-value-equivalent to 1vw
- min(1vmin) should be used-value-equivalent to 1vmin
- min(1vmax) should be used-value-equivalent to 1vmax
- max(1px) should be used-value-equivalent to 1px
- max(1cm) should be used-value-equivalent to 1cm
- max(1mm) should be used-value-equivalent to 1mm
- max(1Q) should be used-value-equivalent to 1Q
- max(1in) should be used-value-equivalent to 1in
- max(1pc) should be used-value-equivalent to 1pc
- max(1pt) should be used-value-equivalent to 1pt
- max(1em) should be used-value-equivalent to 1em
- max(1ex) should be used-value-equivalent to 1ex
- max(1ch) should be used-value-equivalent to 1ch
- max(1rem) should be used-value-equivalent to 1rem
- max(1vh) should be used-value-equivalent to 1vh
- max(1vw) should be used-value-equivalent to 1vw
- max(1vmin) should be used-value-equivalent to 1vmin
- max(1vmax) should be used-value-equivalent to 1vmax
- min(1px, 2px) should be used-value-equivalent to 1px
- min(1cm, 2cm) should be used-value-equivalent to 1cm
- min(1mm, 2mm) should be used-value-equivalent to 1mm
- min(1Q, 2Q) should be used-value-equivalent to 1Q
- min(1in, 2in) should be used-value-equivalent to 1in
- min(1pc, 2pc) should be used-value-equivalent to 1pc
- min(1pt, 2pt) should be used-value-equivalent to 1pt
- min(1em, 2em) should be used-value-equivalent to 1em
- min(1ex, 2ex) should be used-value-equivalent to 1ex
- min(1ch, 2ch) should be used-value-equivalent to 1ch
- min(1rem, 2rem) should be used-value-equivalent to 1rem
- min(1vh, 2vh) should be used-value-equivalent to 1vh
- min(1vw, 2vw) should be used-value-equivalent to 1vw
- min(1vmin, 2vmin) should be used-value-equivalent to 1vmin
- min(1vmax, 2vmax) should be used-value-equivalent to 1vmax
- max(1px, 2px) should be used-value-equivalent to 2px
- max(1cm, 2cm) should be used-value-equivalent to 2cm
- max(1mm, 2mm) should be used-value-equivalent to 2mm
- max(1Q, 2Q) should be used-value-equivalent to 2Q
- max(1in, 2in) should be used-value-equivalent to 2in
- max(1pc, 2pc) should be used-value-equivalent to 2pc
- max(1pt, 2pt) should be used-value-equivalent to 2pt
- max(1em, 2em) should be used-value-equivalent to 2em
- max(1ex, 2ex) should be used-value-equivalent to 2ex
- max(1ch, 2ch) should be used-value-equivalent to 2ch
- max(1rem, 2rem) should be used-value-equivalent to 2rem
- max(1vh, 2vh) should be used-value-equivalent to 2vh
- max(1vw, 2vw) should be used-value-equivalent to 2vw
- max(1vmin, 2vmin) should be used-value-equivalent to 2vmin
- max(1vmax, 2vmax) should be used-value-equivalent to 2vmax
- min(95px, 1in) should be used-value-equivalent to 95px
- max(95px, 1in) should be used-value-equivalent to 1in
- min(15px, 1em) should be used-value-equivalent to 15px
- min(25px, 1em) should be used-value-equivalent to 20px
- max(15px, 1em) should be used-value-equivalent to 20px
- max(25px, 1em) should be used-value-equivalent to 25px
- min(15px, 1em) should be used-value-equivalent to 10px; fontSize=10px
- max(15px, 2em) should be used-value-equivalent to 20px; fontSize=10px
- min(25px, max(15px, 1em)) should be used-value-equivalent to 20px
- max(15px, min(25px, 1em)) should be used-value-equivalent to 20px
- calc(min(1em, 21px) + 10px) should be used-value-equivalent to 30px
- calc(min(1em, 21px) - 10px) should be used-value-equivalent to 10px
- calc(min(1em, 21px) * 2 should be used-value-equivalent to 40px
- calc(min(1em, 21px) / 2 should be used-value-equivalent to 10px
- calc(max(1em, 19px) + 10px) should be used-value-equivalent to 30px
- calc(max(1em, 19px) - 10px) should be used-value-equivalent to 10px
- calc(max(1em, 19px) * 2 should be used-value-equivalent to 40px
- calc(max(1em, 19px) / 2 should be used-value-equivalent to 10px
- calc(min(1em, 21px) + max(0.9em, 20px)) should be used-value-equivalent to 40px
- calc(min(1em + 1px, 22px) - max(0.9em, 20px)) should be used-value-equivalent to 1px
minmax-number-computed.html 14 / 14 passingChrome 14 / 140 failedClean
14 passing subtests
- min(1) should be used-value-equivalent to 1
- max(1) should be used-value-equivalent to 1
- min(0.2, max(0.1, 0.15)) should be used-value-equivalent to 0.15
- max(0.1, min(0.2, 0.15)) should be used-value-equivalent to 0.15
- calc(min(0.1, 0.2) + 0.05) should be used-value-equivalent to 0.15
- calc(min(0.1, 0.2) - 0.05) should be used-value-equivalent to 0.05
- calc(min(0.1, 0.2) * 2) should be used-value-equivalent to 0.2
- calc(min(0.1, 0.2) / 2) should be used-value-equivalent to 0.05
- calc(max(0.1, 0.2) + 0.05) should be used-value-equivalent to 0.25
- calc(max(0.1, 0.2) - 0.05) should be used-value-equivalent to 0.15
- calc(max(0.1, 0.2) * 2) should be used-value-equivalent to 0.4
- calc(max(0.1, 0.2) / 2) should be used-value-equivalent to 0.1
- calc(min(0.1, 0.2) + max(0.1, 0.05)) should be used-value-equivalent to 0.2
- calc(min(0.1, 0.2) - max(0.1, 0.05)) should be used-value-equivalent to 0
minmax-time-computed.html 24 / 24 passingChrome 24 / 240 failedClean
24 passing subtests
- min(1s) should be used-value-equivalent to 1s
- min(1ms) should be used-value-equivalent to 1ms
- max(1s) should be used-value-equivalent to 1s
- max(1ms) should be used-value-equivalent to 1ms
- min(1s, 2s) should be used-value-equivalent to 1s
- min(1ms, 2ms) should be used-value-equivalent to 1ms
- max(1s, 2s) should be used-value-equivalent to 2s
- max(1ms, 2ms) should be used-value-equivalent to 2ms
- min(1s, 1100ms) should be used-value-equivalent to 1s
- max(0.9s, 1000ms) should be used-value-equivalent to 1000ms
- min(2s, max(1s, 1500ms)) should be used-value-equivalent to 1500ms
- max(1000ms, min(2000ms, 1.5s)) should be used-value-equivalent to 1.5s
- calc(min(0.5s, 600ms) + 500ms) should be used-value-equivalent to 1s
- calc(min(0.6s, 700ms) - 500ms) should be used-value-equivalent to 0.1s
- calc(min(0.5s, 600ms) * 2) should be used-value-equivalent to 1s
- calc(min(0.5s, 600ms) / 2) should be used-value-equivalent to 0.25s
- calc(max(0.5s, 400ms) + 500ms) should be used-value-equivalent to 1s
- calc(max(0.5s, 400ms) - 400ms) should be used-value-equivalent to 0.1s
- calc(max(0.5s, 400ms) * 2) should be used-value-equivalent to 1s
- calc(max(0.5s, 400ms) / 2) should be used-value-equivalent to 0.25s
- calc(min(0.5s, 600ms) + max(500ms, 0.4s)) should be used-value-equivalent to 1s
- calc(min(0.6s, 700ms) - max(500ms, 0.4s)) should be used-value-equivalent to 0.1s
- min(1s + 100ms, 500ms * 3) should be used-value-equivalent to 1.1s
- calc(min(1s, 2s) + max(3s, 4s) + 10s) should be used-value-equivalent to 15s
progress-computed.html 34 / 36 passingChrome 25 / 362 failedWith failures
- ¶
FAILcalc(progress(50%, 0px, 100px) * 10px) should be used-value-equivalent to 5px
assert_equals: calc(progress(50%, 0px, 100px) * 10px) and 5px serialize to the same thing in used values. expected "5px" but got "calc(10px * progress(50%, 0px, 100px))"
- ¶
FAILcalc(50% - 0px * clamp(0, progress(0cqw, 0px, 0px), 1)) should be used-value-equivalent to 50px
assert_equals: calc(50% - 0px * clamp(0, progress(0cqw, 0px, 0px), 1)) and 50px serialize to the same thing in used values. expected "50px" but got "50%"
34 passing subtests
- progress(1, 0, 1) should be used-value-equivalent to 1
- progress(progress(1, 0, 1), progress(0px, 0px, 1px), progress(1deg, 0deg, 1deg)) should be used-value-equivalent to 1
- progress(sign(-10px) * 10px, (10px - 10px), 10px * progress(1deg, 0deg, 1deg)) should be used-value-equivalent to 0
- calc(progress(100px, 0px, 50px) * 10px + 100px) should be used-value-equivalent to 110px
- calc(progress(100, 0, sign(50px))) should be used-value-equivalent to 1
- calc(progress(abs(5%), hypot(3%, 4%), 10%)) should be used-value-equivalent to 0
- progress(50em, 10em, 110em) should be used-value-equivalent to 0.4
- progress(1000em, 10em, 110em) should be used-value-equivalent to 1
- scale(progress(50em, 10rem, 110em)) should be used-value-equivalent to scale(1)
- scale(progress(1000em, 10rem, 110em)) should be used-value-equivalent to scale(1)
- scale(progress(0em, 0rem, 0em)) should be used-value-equivalent to scale(0)
- scale(progress(sign(1em - 1rem) * 1ex, 0rem, 0em)) should be used-value-equivalent to scale(0)
- calc(progress(1, 0, 1) * 10px) should be used-value-equivalent to 10px
- calc(progress(1, 0, 1) * 1s) should be used-value-equivalent to 1s
- calc(progress(1, 0, 1) * 1deg) should be used-value-equivalent to 1deg
- calc(progress(sign(1001em - 10lh * progress(100px, 2rex, 10ex)) * 10em, 2rem, 12em) / 2) should be used-value-equivalent to 0.4
- calc(progress(sign(1001em - 10lh * progress(100px, 2rex, 10ex)) * 20em, 2rem, 12em) * 10) should be used-value-equivalent to 10
- calc(progress(sign(1001em - 10lh * progress(100px, 2rex, 10ex)) * 20em, 2rem, 12em) * 30) should be used-value-equivalent to 30
- calc(progress(sign(1001em - 10lh * progress(100px, 2rex, 10ex)) * 20em, 2rem, 12em) / 4) should be used-value-equivalent to 0.25
- calc(progress(sign(1001em - 10lh * progress(100px, 2rex, 10ex)) * 20em, 2rem, 12em) * 4) should be used-value-equivalent to 4
- calc(progress(sign(1001em - 10lh * progress(100px, 2rex, 10ex)) * 20em, 2rem, 12em) * 2) should be used-value-equivalent to 2
- rotate3d(progress(21em, 1rem, 11em), progress(21em, 1rem, 11em), progress(21em, 1rem, 11em), calc(progress(11em, 1rem, 11em) * 2deg)) should be used-value-equivalent to rotate3d(2, 2, 2, 2deg)
- calc(progress(no-clamp 100px, 0px, 50px) * 10px + 100px) should be used-value-equivalent to 120px
- calc(progress(no-clamp 100, 0, sign(1rem - 5px))) should be used-value-equivalent to 100
- calc(progress(no-clamp abs(5%), hypot(3%, 4%), 10%)) should be used-value-equivalent to 0
- progress(no-clamp 50em, 10em, 110em) should be used-value-equivalent to 0.4
- progress(no-clamp 1000em, 10em, 110em) should be used-value-equivalent to 9.9
- progress(no-clamp 10em, 50em, 100em) should be used-value-equivalent to -0.8
- progress(100px, 10px, 10px) should be used-value-equivalent to 0
- progress(1px, 10px, 10px) should be used-value-equivalent to 0
- progress(10px, 10px, 10px) should be used-value-equivalent to 0
- progress(no-clamp 100px, 10px, 10px) should be used-value-equivalent to calc(infinity)
- progress(no-clamp 1px, 10px, 10px) should be used-value-equivalent to calc(-infinity)
- progress(no-clamp 10px, 10px, 10px) should be used-value-equivalent to 0
random-item-computed.html 37 / 37 passingChrome 5 / 370 failedClean
37 passing subtests
- Property color value 'random-item(fixed 0, rgb(1, 0, 0), rgb(0, 1, 0), rgb(0, 0, 1))'
- Property color value 'random-item(fixed 0.5, rgb(1, 0, 0), rgb(0, 1, 0), rgb(0, 0, 1))'
- Property color value 'random-item(fixed 0.999, rgb(1, 0, 0), rgb(0, 1, 0), rgb(0, 0, 1))'
- Property color value 'random-item(fixed 1, rgb(1, 0, 0), rgb(0, 1, 0), rgb(0, 0, 1))'
- Property color value 'random-item(fixed 0, rgb(1, 0, 0))'
- Property color value 'random-item(auto, rgb(1, 0, 0))'
- Property color value 'random-item(auto, rgb(1, 0, 0), rgb(0, 1, 0), rgb(0, 0, 1))'
- Property color value 'random-item(--key, rgb(1, 0, 0), rgb(0, 1, 0), rgb(0, 0, 1))'
- Property color value 'random-item(element-scoped, rgb(1, 0, 0), rgb(0, 1, 0))'
- Property color value 'random-item(--key element-scoped, rgb(1, 0, 0), rgb(0, 1, 0))'
- Property font-family value 'random-item(fixed 0, {Times, serif}, {Arial, sans-serif})'
- Property font-family value 'random-item(fixed 0.999, {Times, serif}, {Arial, sans-serif})'
- Property font-family value 'random-item(fixed 0, { Times, serif }, { Arial, sans-serif })'
- Property font-family value 'random-item(fixed 0.999, { Times, serif }, { Arial, sans-serif })'
- Property color value 'random-item(fixed calc(0.5), rgb(1, 0, 0), rgb(0, 1, 0), rgb(0, 0, 1))'
- Property color value 'random-item(fixed calc(1 / 4), rgb(1, 0, 0), rgb(0, 1, 0), rgb(0, 0, 1))'
- Property color value 'random-item(fixed 1, rgb(1, 0, 0))'
- Property color value 'random-item(element-scoped --key, rgb(1, 0, 0), rgb(0, 1, 0))'
- random-item() with a var()-derived <random-key> resolves
- random-item() selecting var(--a) into a registered <length>
- random-item() selecting var(--b) into a registered <length>
- random-item() into a registered <length>
- random-item() into a registered <number>
- Selecting an empty item is invalid at computed-value time
- random-item() selection is stable across style recalculation
- Independent auto random-item() instances each resolve to a valid item
- random-item() with an auto <random-key> is element-scoped
- random-item() with a bare element-scoped <random-key> is not shared between elements
- random-item() with a <dashed-ident> element-scoped <random-key> is not shared between elements
- random-item() with a <dashed-ident> <random-key> is shared between elements
- A shared dashed-ident key selects the same item across properties
- random() and random-item() using auto in one declaration both resolve
- A bare element-scoped key selects the same item across random-item() instances
- random() and random-item() share the base value for a bare element-scoped key
- auto random() and auto random-item() in one value do not share a base value
- auto random() substituted through var() does not share a base value with random-item()
- Property color value 'random-item(--, rgb(1, 0, 0), rgb(0, 1, 0))'
round-mod-rem-computed.html 225 / 243 passingChrome 243 / 24318 failedWith failures
- ¶
FAILround(10%,1px) should be used-value-equivalent to 8px
assert_equals: round(10%,1px) and 8px serialize to the same thing in used values. expected "8px" but got "round(10%, 1px)"
- ¶
FAILround(10%,5px) should be used-value-equivalent to 10px
assert_equals: round(10%,5px) and 10px serialize to the same thing in used values. expected "10px" but got "round(10%, 5px)"
- ¶
FAILmod(10%,1px) should be used-value-equivalent to 0.5px
assert_equals: mod(10%,1px) and 0.5px serialize to the same thing in used values. expected "0.5px" but got "mod(10%, 1px)"
- ¶
FAILmod(10%,5px) should be used-value-equivalent to 2.5px
assert_equals: mod(10%,5px) and 2.5px serialize to the same thing in used values. expected "2.5px" but got "mod(10%, 5px)"
- ¶
FAILmod(18px,100% / 15) should be used-value-equivalent to 3px
assert_approx_equals: mod(18px,100% / 15) and 3px 0.1 serialize to the same thing in used values. expected 3 +/- 0.1 but got NaN
- ¶
FAILmod(-18px,100% / 10) should be used-value-equivalent to 4.5px
assert_equals: mod(-18px,100% / 10) and 4.5px serialize to the same thing in used values. expected "4.5px" but got "mod(-18px, 10%)"
- ¶
FAILmod(18%,5%) should be used-value-equivalent to 3%
assert_equals: mod(18%,5%) and 3% serialize to the same thing in used values. expected "3%" but got "mod(18%, 5%)"
- ¶
FAILmod(-19%,5%) should be used-value-equivalent to 1%
assert_equals: mod(-19%,5%) and 1% serialize to the same thing in used values. expected "1%" but got "mod(-19%, 5%)"
- ¶
FAILrem(10%,1px) should be used-value-equivalent to 0.5px
assert_equals: rem(10%,1px) and 0.5px serialize to the same thing in used values. expected "0.5px" but got "rem(10%, 1px)"
- ¶
FAILrem(10%,5px) should be used-value-equivalent to 2.5px
assert_equals: rem(10%,5px) and 2.5px serialize to the same thing in used values. expected "2.5px" but got "rem(10%, 5px)"
- ¶
FAILrem(18px,100% / 15) should be used-value-equivalent to 3px
assert_approx_equals: rem(18px,100% / 15) and 3px 0.1 serialize to the same thing in used values. expected 3 +/- 0.1 but got NaN
- ¶
FAILrem(-18px,100% / 15) should be used-value-equivalent to -3px
assert_approx_equals: rem(-18px,100% / 15) and -3px 0.1 serialize to the same thing in used values. expected -3 +/- 0.1 but got NaN
- ¶
FAILcalc(round(1px + 0%, 1px + 0%)) should be used-value-equivalent to 1px
assert_equals: calc(round(1px + 0%, 1px + 0%)) and 1px serialize to the same thing in used values. expected "1px" but got "round(0% + 1px, 0% + 1px)"
- ¶
FAILcalc(mod(3px + 0%, 2px + 0%)) should be used-value-equivalent to 1px
assert_equals: calc(mod(3px + 0%, 2px + 0%)) and 1px serialize to the same thing in used values. expected "1px" but got "mod(0% + 3px, 0% + 2px)"
- ¶
FAILcalc(rem(3px + 0%, 2px + 0%)) should be used-value-equivalent to 1px
assert_equals: calc(rem(3px + 0%, 2px + 0%)) and 1px serialize to the same thing in used values. expected "1px" but got "rem(0% + 3px, 0% + 2px)"
- ¶
FAILround(1px + 0%, 1px) should be used-value-equivalent to 1px
assert_equals: round(1px + 0%, 1px) and 1px serialize to the same thing in used values. expected "1px" but got "round(0% + 1px, 1px)"
- ¶
FAILmod(3px + 0%, 2px) should be used-value-equivalent to 1px
assert_equals: mod(3px + 0%, 2px) and 1px serialize to the same thing in used values. expected "1px" but got "mod(0% + 3px, 2px)"
- ¶
FAILrem(3px + 0%, 2px) should be used-value-equivalent to 1px
assert_equals: rem(3px + 0%, 2px) and 1px serialize to the same thing in used values. expected "1px" but got "rem(0% + 3px, 2px)"
225 passing subtests
- round(10,10) should be used-value-equivalent to 10
- mod(1,1) should be used-value-equivalent to 0
- mod(0,-2) should be used-value-equivalent to 0
- mod(2,-2) should be used-value-equivalent to 0
- mod(4,-2) should be used-value-equivalent to 0
- mod(-2,-2) should be used-value-equivalent to 0
- mod(-4,-2) should be used-value-equivalent to 0
- mod(0, 2) should be used-value-equivalent to 0
- mod(2, 2) should be used-value-equivalent to 0
- mod(-2, 2) should be used-value-equivalent to 0
- mod(1, 2) should be used-value-equivalent to 1
- mod(3, 2) should be used-value-equivalent to 1
- mod(-1, 2) should be used-value-equivalent to 1
- mod(1, -2) should be used-value-equivalent to -1
- mod(3, -2) should be used-value-equivalent to -1
- mod(-1, -2) should be used-value-equivalent to -1
- rem(1,1) should be used-value-equivalent to 0
- calc(round(100,10)) should be used-value-equivalent to 100
- calc(round(up, 101,10)) should be used-value-equivalent to 110
- calc(round(down, 106,10)) should be used-value-equivalent to 100
- calc(round(to-zero, 105, 10)) should be used-value-equivalent to 100
- calc(round(to-zero, -105, 10)) should be used-value-equivalent to -100
- calc(round(-100, 10)) should be used-value-equivalent to -100
- calc(round(up, -103, 10)) should be used-value-equivalent to -100
- round(up, 0, 5) should be used-value-equivalent to 0
- round(down, 0, 5) should be used-value-equivalent to 0
- round(nearest, 0, 5) should be used-value-equivalent to 0
- round(to-zero, 0, 5) should be used-value-equivalent to 0
- round(up, 5, 5) should be used-value-equivalent to 5
- round(down, 5, 5) should be used-value-equivalent to 5
- round(nearest, 5, 5) should be used-value-equivalent to 5
- round(to-zero, 5, 5) should be used-value-equivalent to 5
- round(up, -5, 5) should be used-value-equivalent to -5
- round(down, -5, 5) should be used-value-equivalent to -5
- round(nearest, -5, 5) should be used-value-equivalent to -5
- round(to-zero, -5, 5) should be used-value-equivalent to -5
- round(up, 10, 5) should be used-value-equivalent to 10
- round(down, 10, 5) should be used-value-equivalent to 10
- round(nearest, 10, 5) should be used-value-equivalent to 10
- round(to-zero, 10, 5) should be used-value-equivalent to 10
- round(up, -10, 5) should be used-value-equivalent to -10
- round(down, -10, 5) should be used-value-equivalent to -10
- round(nearest, -10, 5) should be used-value-equivalent to -10
- round(to-zero, -10, 5) should be used-value-equivalent to -10
- round(up, 20, 5) should be used-value-equivalent to 20
- round(down, 20, 5) should be used-value-equivalent to 20
- round(nearest, 20, 5) should be used-value-equivalent to 20
- round(to-zero, 20, 5) should be used-value-equivalent to 20
- round(up, -20, 5) should be used-value-equivalent to -20
- round(down, -20, 5) should be used-value-equivalent to -20
- round(nearest, -20, 5) should be used-value-equivalent to -20
- round(to-zero, -20, 5) should be used-value-equivalent to -20
- mod(18,5) should be used-value-equivalent to 3
- rem(18,5) should be used-value-equivalent to 3
- mod(-140,-90) should be used-value-equivalent to -50
- mod(-18,5) should be used-value-equivalent to 2
- rem(-18,5) should be used-value-equivalent to -3
- mod(140,-90) should be used-value-equivalent to -40
- rem(140,-90) should be used-value-equivalent to 50
- calc(round(round(100,10), 10)) should be used-value-equivalent to 100
- calc(round(up, round(100,10) + 1,10)) should be used-value-equivalent to 110
- calc(round(down, round(100,10) + 2 * 3,10)) should be used-value-equivalent to 100
- calc(round(to-zero,round(100,10) * 2 - 95, 10)) should be used-value-equivalent to 100
- calc(round(round(100,10)* -1,10)) should be used-value-equivalent to -100
- calc(round(up, -103 + -103 / -103 - 1,10)) should be used-value-equivalent to -100
- calc(mod(18,5) * 2 + mod(17,5)) should be used-value-equivalent to 8
- calc(rem(mod(18,5),5)) should be used-value-equivalent to 3
- calc(rem(mod(18,5),mod(17,5))) should be used-value-equivalent to 1
- calc(mod(-140,-90)) should be used-value-equivalent to -50
- calc(mod(rem(1,18)* -1,5)) should be used-value-equivalent to 4
- round(10px,6px) should be used-value-equivalent to 12px
- round(10cm,6cm) should be used-value-equivalent to 12cm
- round(10mm,6mm) should be used-value-equivalent to 12mm
- round(10Q, 6Q) should be used-value-equivalent to 12Q
- round(10in,6in) should be used-value-equivalent to 12in
- round(10pc,6pc) should be used-value-equivalent to 12pc
- round(10pt,6pt) should be used-value-equivalent to 12pt
- round(10em,6em) should be used-value-equivalent to 12em
- round(10ex,6ex) should be used-value-equivalent to 12ex
- round(10ch,6ch) should be used-value-equivalent to 12ch
- round(10rem,6rem) should be used-value-equivalent to 12rem
- round(10vh,6vh) should be used-value-equivalent to 12vh
- round(10vw,6vw) should be used-value-equivalent to 12vw
- round(10vmin,6vmin) should be used-value-equivalent to 12vmin
- round(10vmax,6vmax) should be used-value-equivalent to 12vmax
- round(10s,6s) should be used-value-equivalent to 12s
- round(10ms,6ms) should be used-value-equivalent to 12ms
- round(10deg,6deg) should be used-value-equivalent to 12deg
- round(10grad,6grad) should be used-value-equivalent to 12grad
- round(10rad,6rad) should be used-value-equivalent to 12rad
- round(10turn,6turn) should be used-value-equivalent to 12turn
- mod(10px,6px) should be used-value-equivalent to 4px
- mod(10cm,6cm) should be used-value-equivalent to 4cm
- mod(10mm,6mm) should be used-value-equivalent to 4mm
- mod(10Q, 6Q) should be used-value-equivalent to 4Q
- mod(10in,6in) should be used-value-equivalent to 4in
- mod(10pc,6pc) should be used-value-equivalent to 4pc
- mod(10em,6em) should be used-value-equivalent to 4em
- mod(10ex,6ex) should be used-value-equivalent to 4ex
- mod(10ch,6ch) should be used-value-equivalent to 4ch
- mod(10rem,6rem) should be used-value-equivalent to 4rem
- mod(10vh,6vh) should be used-value-equivalent to 4vh
- mod(10vw,6vw) should be used-value-equivalent to 4vw
- mod(10vmin,6vmin) should be used-value-equivalent to 4vmin
- mod(10vmax,6vmax) should be used-value-equivalent to 4vmax
- mod(10s,6s) should be used-value-equivalent to 4s
- mod(10ms,6ms) should be used-value-equivalent to 4ms
- mod(10deg,6deg) should be used-value-equivalent to 4deg
- mod(10grad,6grad) should be used-value-equivalent to 4grad
- mod(10rad,6rad) should be used-value-equivalent to 4rad
- mod(10turn,6turn) should be used-value-equivalent to 4turn
- rem(10px,6px) should be used-value-equivalent to 4px
- rem(10cm,6cm) should be used-value-equivalent to 4cm
- rem(10mm,6mm) should be used-value-equivalent to 4mm
- rem(10Q, 6Q) should be used-value-equivalent to 4Q
- rem(10in,6in) should be used-value-equivalent to 4in
- rem(10pc,6pc) should be used-value-equivalent to 4pc
- rem(10em,6em) should be used-value-equivalent to 4em
- rem(10ex,6ex) should be used-value-equivalent to 4ex
- rem(10ch,6ch) should be used-value-equivalent to 4ch
- rem(10rem,6rem) should be used-value-equivalent to 4rem
- rem(10vh,6vh) should be used-value-equivalent to 4vh
- rem(10vw,6vw) should be used-value-equivalent to 4vw
- rem(10vmin,6vmin) should be used-value-equivalent to 4vmin
- rem(10vmax,6vmax) should be used-value-equivalent to 4vmax
- rem(10s,6s) should be used-value-equivalent to 4s
- rem(10ms,6ms) should be used-value-equivalent to 4ms
- rem(10deg,6deg) should be used-value-equivalent to 4deg
- rem(10grad,6grad) should be used-value-equivalent to 4grad
- rem(10rad,6rad) should be used-value-equivalent to 4rad
- rem(10turn,6turn) should be used-value-equivalent to 4turn
- round(2rem,5px) should be used-value-equivalent to 30px
- round(100px,1rem) should be used-value-equivalent to 96px
- round(10s,6000ms) should be used-value-equivalent to 12s
- round(10000ms,6s) should be used-value-equivalent to 12s
- mod(2rem,5px) should be used-value-equivalent to 2px
- mod(100px,1rem) should be used-value-equivalent to 4px
- mod(10s,6000ms) should be used-value-equivalent to 4s
- mod(10000ms,6s) should be used-value-equivalent to 4s
- mod(18vw,5vw) should be used-value-equivalent to 3vw
- mod(-18vw,5vw) should be used-value-equivalent to 2vw
- rem(2rem,5px) should be used-value-equivalent to 2px
- rem(100px,1rem) should be used-value-equivalent to 4px
- rem(10s,6000ms) should be used-value-equivalent to 4s
- rem(10000ms,6s) should be used-value-equivalent to 4s
- rem(18vw,5vw) should be used-value-equivalent to 3vw
- rem(-18vw,5vw) should be used-value-equivalent to -3vw
- round(0, 0) should be used-value-equivalent to calc(NaN)
- round(-0, 0) should be used-value-equivalent to calc(NaN)
- round(Infinity, 0) should be used-value-equivalent to calc(NaN)
- round(-Infinity, 0) should be used-value-equivalent to calc(NaN)
- round(-4, 0) should be used-value-equivalent to calc(NaN)
- round(4, 0) should be used-value-equivalent to calc(NaN)
- round(Infinity, Infinity) should be used-value-equivalent to calc(NaN)
- round(-Infinity, -Infinity) should be used-value-equivalent to calc(NaN)
- round(Infinity, -Infinity) should be used-value-equivalent to calc(NaN)
- round(-Infinity, Infinity) should be used-value-equivalent to calc(NaN)
- mod(0, 0) should be used-value-equivalent to calc(NaN)
- mod(-0, 0) should be used-value-equivalent to calc(NaN)
- mod(Infinity, 0) should be used-value-equivalent to calc(NaN)
- mod(-Infinity, 0) should be used-value-equivalent to calc(NaN)
- mod(-4, 0) should be used-value-equivalent to calc(NaN)
- mod(4, 0) should be used-value-equivalent to calc(NaN)
- mod(Infinity, Infinity) should be used-value-equivalent to calc(NaN)
- mod(-Infinity, -Infinity) should be used-value-equivalent to calc(NaN)
- mod(Infinity, -Infinity) should be used-value-equivalent to calc(NaN)
- mod(-Infinity, Infinity) should be used-value-equivalent to calc(NaN)
- rem(0, 0) should be used-value-equivalent to calc(NaN)
- rem(-0, 0) should be used-value-equivalent to calc(NaN)
- rem(Infinity, 0) should be used-value-equivalent to calc(NaN)
- rem(-Infinity, 0) should be used-value-equivalent to calc(NaN)
- rem(-4, 0) should be used-value-equivalent to calc(NaN)
- rem(4, 0) should be used-value-equivalent to calc(NaN)
- rem(Infinity, Infinity) should be used-value-equivalent to calc(NaN)
- rem(-Infinity, -Infinity) should be used-value-equivalent to calc(NaN)
- rem(Infinity, -Infinity) should be used-value-equivalent to calc(NaN)
- rem(-Infinity, Infinity) should be used-value-equivalent to calc(NaN)
- round(up, Infinity, 4) should be used-value-equivalent to calc(Infinity)
- round(up, -Infinity, 4) should be used-value-equivalent to calc(-Infinity)
- round(up, Infinity, -4) should be used-value-equivalent to calc(Infinity)
- round(up, -Infinity, -4) should be used-value-equivalent to calc(-Infinity)
- round(down, Infinity, 4) should be used-value-equivalent to calc(Infinity)
- round(down, -Infinity, 4) should be used-value-equivalent to calc(-Infinity)
- round(down, Infinity, -4) should be used-value-equivalent to calc(Infinity)
- round(down, -Infinity, -4) should be used-value-equivalent to calc(-Infinity)
- round(nearest, Infinity, 4) should be used-value-equivalent to calc(Infinity)
- round(nearest, -Infinity, 4) should be used-value-equivalent to calc(-Infinity)
- round(nearest, Infinity, -4) should be used-value-equivalent to calc(Infinity)
- round(nearest, -Infinity, -4) should be used-value-equivalent to calc(-Infinity)
- round(to-zero, Infinity, 4) should be used-value-equivalent to calc(Infinity)
- round(to-zero, -Infinity, 4) should be used-value-equivalent to calc(-Infinity)
- round(to-zero, Infinity, -4) should be used-value-equivalent to calc(Infinity)
- round(to-zero, -Infinity, -4) should be used-value-equivalent to calc(-Infinity)
- round(nearest, 0, Infinity) should be used-value-equivalent to 0
- round(nearest, 4, Infinity) should be used-value-equivalent to 0
- round(nearest, -0, Infinity) should be used-value-equivalent to calc(-0)
- round(nearest, -4, Infinity) should be used-value-equivalent to calc(-0)
- round(nearest, 0, -Infinity) should be used-value-equivalent to 0
- round(nearest, 4, -Infinity) should be used-value-equivalent to 0
- round(nearest, -0, -Infinity) should be used-value-equivalent to calc(-0)
- round(nearest, -4, -Infinity) should be used-value-equivalent to calc(-0)
- round(to-zero, 0, Infinity) should be used-value-equivalent to 0
- round(to-zero, 4, Infinity) should be used-value-equivalent to 0
- round(to-zero, -0, Infinity) should be used-value-equivalent to calc(-0)
- round(to-zero, -4, Infinity) should be used-value-equivalent to calc(-0)
- round(to-zero, 0, -Infinity) should be used-value-equivalent to 0
- round(to-zero, 4, -Infinity) should be used-value-equivalent to 0
- round(to-zero, -0, -Infinity) should be used-value-equivalent to calc(-0)
- round(to-zero, -4, -Infinity) should be used-value-equivalent to calc(-0)
- round(up, 1, Infinity) should be used-value-equivalent to calc(Infinity)
- round(up, 0, Infinity) should be used-value-equivalent to 0
- round(up, -1, Infinity) should be used-value-equivalent to calc(-0)
- round(up, 1, -Infinity) should be used-value-equivalent to calc(Infinity)
- round(up, 0, -Infinity) should be used-value-equivalent to 0
- round(up, -1, -Infinity) should be used-value-equivalent to calc(-0)
- round(down, 1, Infinity) should be used-value-equivalent to calc(-0)
- round(down, 0, Infinity) should be used-value-equivalent to 0
- round(down, -1, Infinity) should be used-value-equivalent to calc(-Infinity)
- round(down, 1, -Infinity) should be used-value-equivalent to calc(-0)
- round(down, 0, -Infinity) should be used-value-equivalent to 0
- round(down, -1, -Infinity) should be used-value-equivalent to calc(-Infinity)
- mod(-0, Infinity) should be used-value-equivalent to calc(NaN)
- mod(0, -Infinity) should be used-value-equivalent to calc(NaN)
- mod(-4, Infinity) should be used-value-equivalent to calc(NaN)
- mod(4, -Infinity) should be used-value-equivalent to calc(NaN)
signs-abs-computed.html 229 / 239 passingChrome 233 / 23910 failedWith failures
- ¶
FAILabs(10%) should be used-value-equivalent to 10px
assert_equals: abs(10%) and 10px serialize to the same thing in used values. expected "10px" but got "abs(10%)"
- ¶
FAILabs(10px + 10%) should be used-value-equivalent to 20px
assert_equals: abs(10px + 10%) and 20px serialize to the same thing in used values. expected "20px" but got "abs(10% + 10px)"
- ¶
FAILcalc(10px + abs(10%)) should be used-value-equivalent to 20px
assert_equals: calc(10px + abs(10%)) and 20px serialize to the same thing in used values. expected "20px" but got "calc(10px + abs(10%))"
- ¶
FAILabs(-10%) should be used-value-equivalent to 10px
assert_equals: abs(-10%) and 10px serialize to the same thing in used values. expected "10px" but got "abs(-10%)"
- ¶
FAILcalc((1em + 1px) * (sign(1em - 10px - 10%) + 1)) should be used-value-equivalent to 21px
assert_equals: calc((1em + 1px) * (sign(1em - 10px - 10%) + 1)) and 21px serialize to the same thing in used values. expected "21px" but got "calc(21px * (1 + sign(-10% + 10px)))"
- ¶
FAILsign(1cqw) should be used-value-equivalent to 1; width=50px
assert_not_equals: sign(1cqw) isn't valid in 'z-index'; got the default value instead. got disallowed value "auto"
- ¶
FAILsign(-1cqw) should be used-value-equivalent to -1; width=50px
assert_not_equals: sign(-1cqw) isn't valid in 'z-index'; got the default value instead. got disallowed value "auto"
- ¶
FAILsign(1cqw) should be used-value-equivalent to 0; width=0px
assert_not_equals: sign(1cqw) isn't valid in 'z-index'; got the default value instead. got disallowed value "auto"
- ¶
FAILsign(-1cqw) should be used-value-equivalent to 0; width=0px
assert_not_equals: sign(-1cqw) isn't valid in 'z-index'; got the default value instead. got disallowed value "auto"
- ¶
FAILcalc(sign(10%) * 100px) should be used-value-equivalent to 100px
assert_equals: calc(sign(10%) * 100px) and 100px serialize to the same thing in used values. expected "100px" but got "calc(100px * sign(10%))"
229 passing subtests
- abs(1) should be used-value-equivalent to 1
- sign(1) should be used-value-equivalent to 1
- abs(-1) should be used-value-equivalent to 1
- sign(-1) should be used-value-equivalent to -1
- abs(sign(1)) should be used-value-equivalent to 1
- abs(sign(sign(1))) should be used-value-equivalent to 1
- sign(sign(sign(1) + sign(1))) should be used-value-equivalent to 1
- calc(abs(0.1 + 0.2) + 0.05) should be used-value-equivalent to 0.35
- calc(sign(0.1 + 0.2) - 0.05) should be used-value-equivalent to 0.95
- calc(abs(0.1 + 0.2) * 2) should be used-value-equivalent to 0.6
- calc(abs(sign(0.1) + 0.2) / 2) should be used-value-equivalent to 0.6
- calc(abs(0.1 + 0.2) * -2) should be used-value-equivalent to -0.6
- calc(sign(0.1 - 0.2) - 0.05) should be used-value-equivalent to -1.05
- calc(sign(1) + sign(1) - 0.05) should be used-value-equivalent to 1.95
- abs(10px) should be used-value-equivalent to 10px
- abs(-10px) should be used-value-equivalent to 10px
- calc(calc(sign(-0))) should be used-value-equivalent to 0
- clamp(-1, calc( 1 / sign(calc(sign(-0)))), 1) should be used-value-equivalent to -1
- calc(calc(sign(0))) should be used-value-equivalent to 0
- clamp(-1, calc( 1 / sign(calc(sign(0)))), 1) should be used-value-equivalent to 1
- abs(infinity) should be used-value-equivalent to calc(infinity)
- abs(-infinity) should be used-value-equivalent to calc(infinity)
- abs(NaN) should be used-value-equivalent to calc(NaN)
- calc(20 - abs(-10)) should be used-value-equivalent to 10
- calc(20 - abs(10)) should be used-value-equivalent to 10
- calc(10 - abs(10 - abs(-30)) should be used-value-equivalent to -10
- calc(2 - sign(1)) should be used-value-equivalent to 1
- calc(2 - sign(-1)) should be used-value-equivalent to 3
- calc(2 - sign(1 - sign(-1))) should be used-value-equivalent to 1
- calc(10 - abs(20 - sign(2 - abs(-20)))) should be used-value-equivalent to -11
- sign(1px) should be used-value-equivalent to 1
- sign(1cm) should be used-value-equivalent to 1
- sign(1mm) should be used-value-equivalent to 1
- sign(1Q) should be used-value-equivalent to 1
- sign(1in) should be used-value-equivalent to 1
- sign(1pc) should be used-value-equivalent to 1
- sign(1pt) should be used-value-equivalent to 1
- sign(1em) should be used-value-equivalent to 1
- sign(1ex) should be used-value-equivalent to 1
- sign(1ch) should be used-value-equivalent to 1
- sign(1rem) should be used-value-equivalent to 1
- sign(1vh) should be used-value-equivalent to 1
- sign(1vw) should be used-value-equivalent to 1
- sign(1vmin) should be used-value-equivalent to 1
- sign(1vmax) should be used-value-equivalent to 1
- sign(-1px) should be used-value-equivalent to -1
- sign(-1cm) should be used-value-equivalent to -1
- sign(-1mm) should be used-value-equivalent to -1
- sign(-1Q) should be used-value-equivalent to -1
- sign(-1in) should be used-value-equivalent to -1
- sign(-1pc) should be used-value-equivalent to -1
- sign(-1pt) should be used-value-equivalent to -1
- sign(-1em) should be used-value-equivalent to -1
- sign(-1ex) should be used-value-equivalent to -1
- sign(-1ch) should be used-value-equivalent to -1
- sign(-1rem) should be used-value-equivalent to -1
- sign(-1vh) should be used-value-equivalent to -1
- sign(-1vw) should be used-value-equivalent to -1
- sign(-1vmin) should be used-value-equivalent to -1
- sign(-1vmax) should be used-value-equivalent to -1
- sign(1s) should be used-value-equivalent to 1
- sign(1ms) should be used-value-equivalent to 1
- sign(-1s) should be used-value-equivalent to -1
- sign(-1ms) should be used-value-equivalent to -1
- sign(1deg) should be used-value-equivalent to 1
- sign(1grad) should be used-value-equivalent to 1
- sign(1rad) should be used-value-equivalent to 1
- sign(1turn) should be used-value-equivalent to 1
- sign(-1deg) should be used-value-equivalent to -1
- sign(-1grad) should be used-value-equivalent to -1
- sign(-1rad) should be used-value-equivalent to -1
- sign(-1turn) should be used-value-equivalent to -1
- calc(sign(0px)) should be used-value-equivalent to 0
- clamp(-1, calc( 1 / sign(sign(0px))), 1) should be used-value-equivalent to 1
- calc(sign(0cm)) should be used-value-equivalent to 0
- clamp(-1, calc( 1 / sign(sign(0cm))), 1) should be used-value-equivalent to 1
- calc(sign(0mm)) should be used-value-equivalent to 0
- clamp(-1, calc( 1 / sign(sign(0mm))), 1) should be used-value-equivalent to 1
- calc(sign(0Q)) should be used-value-equivalent to 0
- clamp(-1, calc( 1 / sign(sign(0Q))), 1) should be used-value-equivalent to 1
- calc(sign(0in)) should be used-value-equivalent to 0
- clamp(-1, calc( 1 / sign(sign(0in))), 1) should be used-value-equivalent to 1
- calc(sign(0pc)) should be used-value-equivalent to 0
- clamp(-1, calc( 1 / sign(sign(0pc))), 1) should be used-value-equivalent to 1
- calc(sign(0pt)) should be used-value-equivalent to 0
- clamp(-1, calc( 1 / sign(sign(0pt))), 1) should be used-value-equivalent to 1
- calc(sign(0em)) should be used-value-equivalent to 0
- clamp(-1, calc( 1 / sign(sign(0em))), 1) should be used-value-equivalent to 1
- calc(sign(0ex)) should be used-value-equivalent to 0
- clamp(-1, calc( 1 / sign(sign(0ex))), 1) should be used-value-equivalent to 1
- calc(sign(0ch)) should be used-value-equivalent to 0
- clamp(-1, calc( 1 / sign(sign(0ch))), 1) should be used-value-equivalent to 1
- calc(sign(0rem)) should be used-value-equivalent to 0
- clamp(-1, calc( 1 / sign(sign(0rem))), 1) should be used-value-equivalent to 1
- calc(sign(0vh)) should be used-value-equivalent to 0
- clamp(-1, calc( 1 / sign(sign(0vh))), 1) should be used-value-equivalent to 1
- calc(sign(0vw)) should be used-value-equivalent to 0
- clamp(-1, calc( 1 / sign(sign(0vw))), 1) should be used-value-equivalent to 1
- calc(sign(0vmin)) should be used-value-equivalent to 0
- clamp(-1, calc( 1 / sign(sign(0vmin))), 1) should be used-value-equivalent to 1
- calc(sign(0vmax)) should be used-value-equivalent to 0
- clamp(-1, calc( 1 / sign(sign(0vmax))), 1) should be used-value-equivalent to 1
- calc(sign(-0px)) should be used-value-equivalent to 0
- clamp(-1, calc( 1 / sign(sign(-0px))), 1) should be used-value-equivalent to -1
- calc(sign(-0cm)) should be used-value-equivalent to 0
- clamp(-1, calc( 1 / sign(sign(-0cm))), 1) should be used-value-equivalent to -1
- calc(sign(-0mm)) should be used-value-equivalent to 0
- clamp(-1, calc( 1 / sign(sign(-0mm))), 1) should be used-value-equivalent to -1
- calc(sign(-0Q)) should be used-value-equivalent to 0
- clamp(-1, calc( 1 / sign(sign(-0Q))), 1) should be used-value-equivalent to -1
- calc(sign(-0in)) should be used-value-equivalent to 0
- clamp(-1, calc( 1 / sign(sign(-0in))), 1) should be used-value-equivalent to -1
- calc(sign(-0pc)) should be used-value-equivalent to 0
- clamp(-1, calc( 1 / sign(sign(-0pc))), 1) should be used-value-equivalent to -1
- calc(sign(-0pt)) should be used-value-equivalent to 0
- clamp(-1, calc( 1 / sign(sign(-0pt))), 1) should be used-value-equivalent to -1
- calc(sign(-0em)) should be used-value-equivalent to 0
- clamp(-1, calc( 1 / sign(sign(-0em))), 1) should be used-value-equivalent to -1
- calc(sign(-0ex)) should be used-value-equivalent to 0
- clamp(-1, calc( 1 / sign(sign(-0ex))), 1) should be used-value-equivalent to -1
- calc(sign(-0ch)) should be used-value-equivalent to 0
- clamp(-1, calc( 1 / sign(sign(-0ch))), 1) should be used-value-equivalent to -1
- calc(sign(-0rem)) should be used-value-equivalent to 0
- clamp(-1, calc( 1 / sign(sign(-0rem))), 1) should be used-value-equivalent to -1
- calc(sign(-0vh)) should be used-value-equivalent to 0
- clamp(-1, calc( 1 / sign(sign(-0vh))), 1) should be used-value-equivalent to -1
- calc(sign(-0vw)) should be used-value-equivalent to 0
- clamp(-1, calc( 1 / sign(sign(-0vw))), 1) should be used-value-equivalent to -1
- calc(sign(-0vmin)) should be used-value-equivalent to 0
- clamp(-1, calc( 1 / sign(sign(-0vmin))), 1) should be used-value-equivalent to -1
- calc(sign(-0vmax)) should be used-value-equivalent to 0
- clamp(-1, calc( 1 / sign(sign(-0vmax))), 1) should be used-value-equivalent to -1
- calc(sign(0s)) should be used-value-equivalent to 0
- clamp(-1, calc( 1 / sign(sign(0s))), 1) should be used-value-equivalent to 1
- calc(sign(0ms)) should be used-value-equivalent to 0
- clamp(-1, calc( 1 / sign(sign(0ms))), 1) should be used-value-equivalent to 1
- calc(sign(-0s)) should be used-value-equivalent to 0
- clamp(-1, calc( 1 / sign(sign(-0s))), 1) should be used-value-equivalent to -1
- calc(sign(-0ms)) should be used-value-equivalent to 0
- clamp(-1, calc( 1 / sign(sign(-0ms))), 1) should be used-value-equivalent to -1
- calc(sign(0deg)) should be used-value-equivalent to 0
- clamp(-1, calc( 1 / sign(sign(0deg))), 1) should be used-value-equivalent to 1
- calc(sign(0grad)) should be used-value-equivalent to 0
- clamp(-1, calc( 1 / sign(sign(0grad))), 1) should be used-value-equivalent to 1
- calc(sign(0rad)) should be used-value-equivalent to 0
- clamp(-1, calc( 1 / sign(sign(0rad))), 1) should be used-value-equivalent to 1
- calc(sign(0turn)) should be used-value-equivalent to 0
- clamp(-1, calc( 1 / sign(sign(0turn))), 1) should be used-value-equivalent to 1
- calc(sign(-0deg)) should be used-value-equivalent to 0
- clamp(-1, calc( 1 / sign(sign(-0deg))), 1) should be used-value-equivalent to -1
- calc(sign(-0grad)) should be used-value-equivalent to 0
- clamp(-1, calc( 1 / sign(sign(-0grad))), 1) should be used-value-equivalent to -1
- calc(sign(-0rad)) should be used-value-equivalent to 0
- clamp(-1, calc( 1 / sign(sign(-0rad))), 1) should be used-value-equivalent to -1
- calc(sign(-0turn)) should be used-value-equivalent to 0
- clamp(-1, calc( 1 / sign(sign(-0turn))), 1) should be used-value-equivalent to -1
- abs(1px) should be used-value-equivalent to 1px
- abs(1cm) should be used-value-equivalent to 1cm
- abs(1mm) should be used-value-equivalent to 1mm
- abs(1Q) should be used-value-equivalent to 1Q
- abs(1in) should be used-value-equivalent to 1in
- abs(1pc) should be used-value-equivalent to 1pc
- abs(1pt) should be used-value-equivalent to 1pt
- abs(1em) should be used-value-equivalent to 1em
- abs(1ex) should be used-value-equivalent to 1ex
- abs(1ch) should be used-value-equivalent to 1ch
- abs(1rem) should be used-value-equivalent to 1rem
- abs(1vh) should be used-value-equivalent to 1vh
- abs(1vw) should be used-value-equivalent to 1vw
- abs(1vmin) should be used-value-equivalent to 1vmin
- abs(1vmax) should be used-value-equivalent to 1vmax
- abs(-1px) should be used-value-equivalent to 1px
- abs(-1cm) should be used-value-equivalent to 1cm
- abs(-1mm) should be used-value-equivalent to 1mm
- abs(-1Q) should be used-value-equivalent to 1Q
- abs(-1in) should be used-value-equivalent to 1in
- abs(-1pc) should be used-value-equivalent to 1pc
- abs(-1pt) should be used-value-equivalent to 1pt
- abs(-1em) should be used-value-equivalent to 1em
- abs(-1ex) should be used-value-equivalent to 1ex
- abs(-1ch) should be used-value-equivalent to 1ch
- abs(-1rem) should be used-value-equivalent to 1rem
- abs(-1vh) should be used-value-equivalent to 1vh
- abs(-1vw) should be used-value-equivalent to 1vw
- abs(-1vmin) should be used-value-equivalent to 1vmin
- abs(-1vmax) should be used-value-equivalent to 1vmax
- abs(1s) should be used-value-equivalent to 1s
- abs(1ms) should be used-value-equivalent to 1ms
- abs(-1s) should be used-value-equivalent to 1s
- abs(-1ms) should be used-value-equivalent to 1ms
- abs(1deg) should be used-value-equivalent to 1deg
- abs(1grad) should be used-value-equivalent to 1grad
- abs(1rad) should be used-value-equivalent to 1rad
- abs(1turn) should be used-value-equivalent to 1turn
- abs(-1deg) should be used-value-equivalent to 1deg
- abs(-1grad) should be used-value-equivalent to 1grad
- abs(-1rad) should be used-value-equivalent to 1rad
- abs(-1turn) should be used-value-equivalent to 1turn
- sign(10px - 1em) should be used-value-equivalent to 0; fontSize=10px
- sign(10px - 2em) should be used-value-equivalent to -1; fontSize=10px
- sign(1em) should be used-value-equivalent to 0; fontSize=0px
- sign(-1em) should be used-value-equivalent to 0; fontSize=0px
- calc(2.5 - sign(41px - 2em) / 2) should be used-value-equivalent to 2
- calc(2.5 - sign(40px - 2em) / 2) should be used-value-equivalent to 2.5
- calc(2.5 - sign(39px - 2em) / 2) should be used-value-equivalent to 3
- calc(3 + sign(42px - 2em)) should be used-value-equivalent to 4
- calc(3 + sign(40px - 2em)) should be used-value-equivalent to 3
- calc(3 + sign(38px - 2em)) should be used-value-equivalent to 2
- calc(50px + 100px * sign(42px - 2em)) should be used-value-equivalent to 150px
- calc(50px + 100px * sign(40px - 2em)) should be used-value-equivalent to 50px
- calc(50px + 100px * sign(38px - 2em)) should be used-value-equivalent to -50px
- calc(90deg + 30deg * sign(42px - 2em)) should be used-value-equivalent to 120deg
- calc(90deg + 30deg * sign(40px - 2em)) should be used-value-equivalent to 90deg
- calc(90deg + 30deg * sign(38px - 2em)) should be used-value-equivalent to 60deg
- calc(5s + 15s * sign(42px - 2em)) should be used-value-equivalent to 20s
- calc(5s + 15s * sign(40px - 2em)) should be used-value-equivalent to 5s
- calc(5s + 15s * sign(38px - 2em)) should be used-value-equivalent to -10s
- calc(100dpi + 20dpi * sign(42px - 2em)) should be used-value-equivalent to 120dpi
- calc(100dpi + 20dpi * sign(40px - 2em)) should be used-value-equivalent to 100dpi
- calc(100dpi + 20dpi * sign(38px - 2em)) should be used-value-equivalent to 80dpi
- calc(3fr + 1fr * sign(42px - 2em)) should be used-value-equivalent to 4fr
- calc(3fr + 1fr * sign(40px - 2em)) should be used-value-equivalent to 3fr
- calc(3fr + 1fr * sign(38px - 2em)) should be used-value-equivalent to 2fr
- calc(2.5 - sign(33px - 2rem) / 2) should be used-value-equivalent to 2
- calc(2.5 - sign(32px - 2rem) / 2) should be used-value-equivalent to 2.5
- calc(2.5 - sign(31px - 2rem) / 2) should be used-value-equivalent to 3
- calc(50px + 100px * sign(34px - 2rem)) should be used-value-equivalent to 150px
- calc(50px + 100px * sign(32px - 2rem)) should be used-value-equivalent to 50px
- calc(50px + 100px * sign(30px - 2rem)) should be used-value-equivalent to -50px
sin-cos-tan-computed.html 32 / 32 passingChrome 32 / 320 failedClean
32 passing subtests
- cos(0) should be used-value-equivalent to 1
- sin(0) should be used-value-equivalent to 0
- tan(0) should be used-value-equivalent to 0
- tan(315deg) should be used-value-equivalent to -1
- tan(360deg) should be used-value-equivalent to 0
- tan(405deg) should be used-value-equivalent to 1
- calc(sin(pi/2 - pi/2) ) should be used-value-equivalent to 0
- calc(cos(pi - 3.14159265358979323846) ) should be used-value-equivalent to 1
- calc(cos(e - 2.7182818284590452354) ) should be used-value-equivalent to 1
- calc(sin(30deg + 1.0471967rad ) ) should be used-value-equivalent to 1
- calc(cos(30deg - 0.523599rad ) ) should be used-value-equivalent to 1
- calc(sin(3.14159 / 2 + 1 - 1) ) should be used-value-equivalent to 1
- calc(sin(100grad) ) should be used-value-equivalent to 1
- calc(cos(0 / 2 + 1 - 1) ) should be used-value-equivalent to 1
- calc(tan(30deg + 0.261799rad ) ) should be used-value-equivalent to 1
- calc(tan(0.7853975rad ) ) should be used-value-equivalent to 1
- calc(tan(3.14159 / 4 + 1 - 1) ) should be used-value-equivalent to 1
- calc(sin(0.25turn) ) should be used-value-equivalent to 1
- calc(cos(sin(cos(pi) + 1))) should be used-value-equivalent to 1
- calc(sin(tan(pi/4)*pi/2) ) should be used-value-equivalent to 1
- calc(sin(pi * sibling-index()) should be used-value-equivalent to 0
- calc(cos(pi * sibling-index()) should be used-value-equivalent to -1
- calc(tan(pi * sibling-index()) should be used-value-equivalent to 0
- calc(sin(180deg * sibling-index()) should be used-value-equivalent to 0
- calc(cos(180deg * sibling-index()) should be used-value-equivalent to -1
- calc(tan(180deg * sibling-index()) should be used-value-equivalent to 0
- calc(sin(pi * sign(1em - 1px)) should be used-value-equivalent to 0
- calc(cos(pi * sign(1em - 1px)) should be used-value-equivalent to -1
- calc(tan(pi * sign(1em - 1px)) should be used-value-equivalent to 0
- calc(sin(180deg * sign(1em - 1px)) should be used-value-equivalent to 0
- calc(cos(180deg * sign(1em - 1px)) should be used-value-equivalent to -1
- calc(tan(180deg * sign(1em - 1px)) should be used-value-equivalent to 0
viewport-units-parsing.html 24 / 24 passingChrome 24 / 240 failedClean
24 passing subtests
- e.style['width'] = "1vw" should set the property value
- e.style['width'] = "1vh" should set the property value
- e.style['width'] = "1vi" should set the property value
- e.style['width'] = "1vb" should set the property value
- e.style['width'] = "1vmin" should set the property value
- e.style['width'] = "1vmax" should set the property value
- e.style['width'] = "1svw" should set the property value
- e.style['width'] = "1svh" should set the property value
- e.style['width'] = "1svi" should set the property value
- e.style['width'] = "1svb" should set the property value
- e.style['width'] = "1svmin" should set the property value
- e.style['width'] = "1svmax" should set the property value
- e.style['width'] = "1lvw" should set the property value
- e.style['width'] = "1lvh" should set the property value
- e.style['width'] = "1lvi" should set the property value
- e.style['width'] = "1lvb" should set the property value
- e.style['width'] = "1lvmin" should set the property value
- e.style['width'] = "1lvmax" should set the property value
- e.style['width'] = "1dvw" should set the property value
- e.style['width'] = "1dvh" should set the property value
- e.style['width'] = "1dvi" should set the property value
- e.style['width'] = "1dvb" should set the property value
- e.style['width'] = "1dvmin" should set the property value
- e.style['width'] = "1dvmax" should set the property value