CSS.supports('transition-property: overlay') reports true
Categories
(Core :: CSS Parsing and Computation, defect)
Tracking
()
People
(Reporter: birtles, Unassigned)
References
(Blocks 1 open bug)
Details
STR:
- Run
CSS.supports('transition-property: overlay')
in the console
Expected result: false
Actual result: true
This is problematic because it makes it impossible to feature detect if a browser allows animating a dialog out or not.
Currently authors can work around this by checking for CSS.supports('(transition-property: overlay) and (transition-behavior: allow-discrete)')
but since transition-behavior
made it into Interop 2024 and transition-property: overlay
did not, that check will not work if we ship transition-behavior
first.
Reporter | ||
Comment 1•9 months ago
|
||
More generally, CSS.supports('transition-property: anything-really')
reports true
.
Comment 2•9 months ago
|
||
This is per spec, right? transition-property
allows arbitrary identifiers.
Can't you just do CSS.supports('overlay', 'inherit')
to check if you support the overlay
property?
Reporter | ||
Comment 3•9 months ago
|
||
Sorry, my bad. I misread the spec. I thought the custom ident was referring to custom property identifiers. overlay: inherit
works as a test. Thanks!
Description
•