Comments (1)
From css-color-5
: https://drafts.csswg.org/css-color-5/#relative-syntax
The channel keywords return a
<number>
; if they were originally specified as a<percentage>
or an<angle>
, that<percentage>
is resolved to a<number>
and the<angle>
is resolved to a<number>
of degrees (which is the canonical unit) in the range [0, 360].
The l
in calc(l - 10%)
is of type <number>
.
From css-values-4
: https://drafts.csswg.org/css-values-4/#mixed-percentages
More
<type-percentage>
productions can be added in the future as needed. A<number-percentage>
will never be added, as<number>
and<percentage>
can’t be combined incalc()
.
calc(l - 10%)
doesn't work because it is calc(0.1 - 10%)
/ calc(<number> - <percentage>)
which isn't possible following the css-values
spec
The most recent discussion about this can be found here : #9955
from csswg-drafts.
Related Issues (20)
- [css-mixins] `<combinator>` is already defined in Selectors HOT 1
- [css-mixins] `<dashed-function>` syntax seems invalid HOT 2
- [css-mixins] Disallow whitespace when matching `'<' transform-list '>'` HOT 2
- [css-mixins] Should `result` be mandatory in `@function`? HOT 1
- [css-filter-effects-1] Missing definition of a reference for percentage values if filterUnits="userSpaceOnUse" HOT 3
- [css-fonts] Font fallback for (Unicode) decomposable characters is browser-dependent HOT 1
- [selectors] Parameterized selectors HOT 16
- [css-view-transitions-2] (feature) access view-transition snapshot as an image/ImageData HOT 6
- [scroll-animations] Allow smooth animation from lvh to svh
- [web-animations] how to make animate() method work with CSSKeyframesRule object? HOT 4
- [css-color-5]: light-dark() doesn’t work with Relative Colors HOT 2
- Two "variants" of `color-mix()` ?? HOT 3
- [css-animations-2][web-animations-2] (proposal) Add pointer driven animations
- [css-values-5] Should `interpolate-size` be a new value to animation/transition-behavior? HOT 5
- CSS Color; light-dark() should be applicable on more properties. HOT 6
- [css-color-4] Evaluate static gamut mapping algorithms for oklab/oklch spaces HOT 3
- [css-easing-2] Linear easing function requires at least two points?
- [scroll-animations-1] Consider adding a timeline range that takes ink overflow into account
- [scroll-animations-1][css-animations-1] A non-animated "Is in viewport"
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 csswg-drafts.