Comments (2)
@svgeesus Are implementations expected to have interop to this degree?
If so, then there should be tests for this.
They could have.
There was a bunch of detailed work done over the last few years, some in CSS Color 4 and some in color.js, often in parallel, to really reduce sources of cumulative error like slightly-different white points, inverse matrices calculated from rounded-off values, and so forth.
In most but not all cases, the result of this was better precision but well below the level of a visual difference.
My suspicion is that browser implementers could usefully check their matrix values against the current ones in sample code which are now as accurate as we can make them for 64bit floats, and update as needed.
from wpt.
A quick glance in WebKit at least shows that they have outdated matrix values:
sample code :
https://github.com/w3c/csswg-drafts/blob/ed383b552d3c977ad18116d8038c73d2c997f5a3/css-color-4/conversions.js#L159-L161
var M = [
[ 0.79776664490064230, 0.13518129740053308, 0.03134773412839220 ],
[ 0.28807482881940130, 0.71183523424187300, 0.00008993693872564 ],
[ 0.00000000000000000, 0.00000000000000000, 0.82510460251046020 ]
];
static constexpr ColorMatrix<3, 3> linearToXYZ {
0.7977604896723027f, 0.13518583717574031f, 0.0313493495815248f,
0.2880711282292934f, 0.7118432178101014f, 0.00008565396060525902f,
0.0f, 0.0f, 0.8251046025104601f
};
from wpt.
Related Issues (20)
- Add support for testing native find-in-page search results
- Are css/css-contain/contain-layout-baseline-005.html css/css-contain/contain-layout-button-001.html correct? HOT 9
- [css-color] css/css-color/parsing/color-computed-relative-color.html assumes conversion to hwb is lossless HOT 5
- The wpt Writing Tests documentation should be updated HOT 4
- infrastructure/testdriver/click_iframe_crossorigin.sub.html can fail in Firefox HOT 1
- REGRESSION(c3a572d): TypeError: can't compare offset-naive and offset-aware datetimes
- lint for tests with link rel=match and testharness.js
- Do not run tests for PRs still in draft mode HOT 1
- Fa
- Firefox Android runs missing since May 12
- tools/unittests (Python 3.12) are failing
- Lovely
- Azure Pipeline run queued and not restarted HOT 17
- iss
- tytg HOT 1
- WebVTT rendering tests fail widely because of UA-specific cue backgrounds HOT 2
- Incorrect test added for text-transform HOT 8
- UAX 14 not strictly required by css-text HOT 2
- wpt.live lists files instead of tests HOT 1
- [python style] gentestutilsunion.py gives the WebKit style checker hiccup
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wpt.