@@ -633,18 +633,34 @@ Transparency: the 'opacity' property
633
633
634
634
635
635
636
- << alpha-value>>
636
+ <dfn dfn-for="opacity"><< alpha-value>>>
637
637
638
638
The opacity to be applied to the element.
639
- It is interpreted identically to its definition in ''rgb()'' ,
640
- except that the resulting opacity is applied to the entire element,
639
+ The resulting opacity is applied to the entire element,
641
640
rather than a particular color.
641
+
642
+ Opacity values outside the range [0,1] are not invalid,
643
+ and a preserved in specified values,
644
+ but are clamped to the range [0, 1]
645
+ in computed values.
642
646
643
647
644
648
645
649
inline-opacity-float-child.html
646
650
647
651
652
+ Opacity in CSS is typically represented using the
<> syntax,
653
+ for example in the 'opacity' property
654
+ or as the [=alpha component=] in a [=color function=] .
655
+ Represented as a <> , the useful range of the value is ''0''
656
+ (representing full transparency)
657
+ to ''1''
658
+ (representing full opacity).
659
+ It can also be written as a
<> ,
660
+ which [=computed value|computes to=]
661
+ the equivalent <>
662
+ (''0%'' to ''0'' , ''100%'' to ''1'' ).
663
+
648
664
The 'opacity' property applies the specified opacity to the element as a whole ,
649
665
including its contents,
650
666
rather than applying it to each descendant individually.
@@ -962,25 +978,14 @@ Legacy (Comma-separated) Color Function Syntax
962
978
963
979
964
980
965
- Representing Transparency: the <> syntax
981
+ Representing Transparency in Colors : the <> syntax
966
982
967
983
968
-
984
+ dfn-for="color" ><alpha-value> =
<> |
<>
969
985
970
986
971
- Opacity in CSS is typically represented using the
<> syntax,
972
- for example in the 'opacity' property
973
- or as the [=alpha component=] in a [=color function=] .
974
- Represented as a <> , the useful range of the value is ''0''
975
- (representing full transparency)
976
- to ''1''
977
- (representing full opacity).
978
- It can also be written as a
<> ,
979
- which [=computed value|computes to=]
980
- the equivalent <>
981
- (''0%'' to ''0'' , ''100%'' to ''1'' ).
982
987
Unless otherwise specified,
983
- an
<> component defaults to
''100%'' when omitted.
988
+ an
<> component
of a color defaults to
''100%'' when omitted.
984
989
Values outside the range [0,1] are not invalid,
985
990
but are clamped to that range at parsed-value time.
986
991
0 commit comments