[WebComponents] Implement shadow-dom :host-context() CSS selector
Categories
(Core :: DOM: Core & HTML, defect, P3)
Tracking
()
blocking-b2g | - |
People
(Reporter: wilsonpage, Unassigned)
References
(Blocks 1 open bug)
Details
(Keywords: dev-doc-needed)
Attachments
(10 files, 4 obsolete files)
4.92 KB,
patch
|
heycam
:
review+
|
Details | Diff | Splinter Review |
4.58 KB,
patch
|
dbaron
:
review+
|
Details | Diff | Splinter Review |
13.15 KB,
patch
|
Details | Diff | Splinter Review | |
44.81 KB,
patch
|
Details | Diff | Splinter Review | |
3.70 KB,
patch
|
heycam
:
review+
|
Details | Diff | Splinter Review |
12.75 KB,
patch
|
heycam
:
review+
dbaron
:
review-
|
Details | Diff | Splinter Review |
12.43 KB,
patch
|
dbaron
:
review-
|
Details | Diff | Splinter Review |
10.66 KB,
patch
|
dbaron
:
review-
|
Details | Diff | Splinter Review |
1.16 KB,
patch
|
dbaron
:
review+
|
Details | Diff | Splinter Review |
3.29 KB,
patch
|
dbaron
:
review+
|
Details | Diff | Splinter Review |
Reporter | ||
Comment 1•11 years ago
|
||
Updated•11 years ago
|
Comment 2•10 years ago
|
||
Comment 3•10 years ago
|
||
Comment 4•10 years ago
|
||
Updated•10 years ago
|
Updated•10 years ago
|
Comment 8•10 years ago
|
||
Comment 9•10 years ago
|
||
Comment 10•10 years ago
|
||
Comment 11•10 years ago
|
||
Comment 12•10 years ago
|
||
Comment 13•10 years ago
|
||
Comment 14•10 years ago
|
||
Updated•10 years ago
|
Comment 15•10 years ago
|
||
Comment 16•10 years ago
|
||
Comment 17•10 years ago
|
||
Comment 18•10 years ago
|
||
Comment 19•10 years ago
|
||
Comment 20•10 years ago
|
||
Comment 21•10 years ago
|
||
Reporter | ||
Comment 24•10 years ago
|
||
Reporter | ||
Comment 25•10 years ago
|
||
Comment 26•10 years ago
|
||
Comment 27•10 years ago
|
||
Comment 28•10 years ago
|
||
Comment 29•10 years ago
|
||
Comment 30•10 years ago
|
||
Updated•10 years ago
|
Updated•10 years ago
|
Comment 31•10 years ago
|
||
Comment 32•10 years ago
|
||
Comment 33•10 years ago
|
||
Comment 34•10 years ago
|
||
Comment 35•10 years ago
|
||
Comment 36•10 years ago
|
||
Comment 37•10 years ago
|
||
Comment 38•10 years ago
|
||
Updated•10 years ago
|
Updated•10 years ago
|
Comment 40•10 years ago
|
||
Comment 41•10 years ago
|
||
Updated•10 years ago
|
Comment 42•10 years ago
|
||
Comment 43•10 years ago
|
||
Comment 44•10 years ago
|
||
Comment 45•10 years ago
|
||
Comment 46•10 years ago
|
||
Comment 47•10 years ago
|
||
Comment 48•10 years ago
|
||
Updated•10 years ago
|
Comment 49•10 years ago
|
||
Comment 50•10 years ago
|
||
Updated•10 years ago
|
Reporter | ||
Comment 51•10 years ago
|
||
Comment 53•10 years ago
|
||
Comment 54•10 years ago
|
||
Comment 55•10 years ago
|
||
Comment 56•10 years ago
|
||
Comment 58•10 years ago
|
||
Comment 61•10 years ago
|
||
Comment 66•10 years ago
|
||
Updated•10 years ago
|
Comment 72•10 years ago
|
||
Comment 73•8 years ago
|
||
Comment 74•8 years ago
|
||
Updated•8 years ago
|
Updated•8 years ago
|
Comment 75•7 years ago
|
||
Updated•7 years ago
|
Updated•7 years ago
|
Assignee | ||
Updated•6 years ago
|
Comment 76•5 years ago
|
||
Neither us or Apple plan to implement this per the reasons outlined here: https://github.com/w3c/csswg-drafts/issues/1914. It should be removed from the spec, quite likely.
Comment 77•5 years ago
|
||
And to be clear, the biggest use-case that prompted this (directionality) is not addressed by host-context (:host-context([dir=rtl])
would match even if you're inside a closer [dir=ltr]
subtree), and :dir
is the right selector instead.
Comment 78•4 years ago
|
||
There are different line heights for different language environments.
https://spectrum.adobe.com/page/body/#Line-height
How to achieve this without :host-context
in custom elements?
Comment 79•4 years ago
|
||
Using the :lang() pseudo-class?
Comment 80•3 years ago
|
||
(In reply to Emilio Cobos Álvarez (:emilio) from comment #79)
Using the :lang() pseudo-class?
It seems that Firefox is not supported in shadowdom :lang()
.
Description
•