Skip to content

Commit 1e4dd91

Browse files
committed
[css-display-3] Add some notes about the SVG attributes rule from the issue discussion. #2502
1 parent 760c727 commit 1e4dd91

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

css-display-3/Overview.bs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1274,6 +1274,21 @@ SVG Elements {#unbox-svg}
12741274
thus such attributes can affect
12751275
the layout and visual formatting of the element’s descendants
12761276
by influencing the values of such properties on those descendants.
1277+
<!--
1278+
https://github.com/w3c/csswg-drafts/issues/2502#issuecomment-378809174
1279+
The rule here should be,
1280+
if this attribute were mapped to a CSS property,
1281+
would it inherit or no?
1282+
If it wouldn't inherit, then it goes away with display: contents.
1283+
If it would inherit, then it behaves as if it did.
1284+
(Because there's been an ongoing trend of converting SVG attributes to CSS properties,
1285+
we wouldn't want to have any difference in behavior as that process continued.)
1286+
1287+
Note that some CSS properties that affect descendant content aren't inherited
1288+
because we needed to know exactly at which point in the tree they were applied
1289+
and/or because their effects accumulate.
1290+
The same is likely to be true of some SVG attributes.
1291+
-->
12771292

12781293
MathML Elements {#unbox-mathml}
12791294
-------------------------------

0 commit comments

Comments
 (0)