Changes between Version 8 and Version 17 of Ticket #3143


Ignore:
Timestamp:
09/06/2016 09:15:03 AM (3 years ago)
Author:
fhd
Comment:

I've created #4394 for the ground work I was talking about. I'll take care of that first.

I realised that in order for :has() and CSS property filters to work in conjunction (which I also see as a must), we'll have to change the way CSS property filters are being applied somewhat fundamentally. I've updated the description a bit to reflect that.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #3143

    • Property Owner changed from kzar to fhd
    • Property Cc mario kzar added
    • Property Blocked By changed from 2388 to 4394
  • Ticket #3143 – Description

    v8 v17  
    66It may be possible to look at the jQuery code for this functionality since they supported :has() pseudo-selector in their selectors long before it was even added into the CSS4 drafts. 
    77 
    8 Generally, this proposal has similar issues as CSS property filters such as requiring to hide elements manually and to observe the page for changes at runtime. Therefore waiting for #2388 to be closed probably makes the most sense to get the necessary architecture in place first. 
     8Generally, this proposal has similar issues as CSS property filters such as requiring to hide elements manually and to observe the page for changes at runtime. 
     9 
     10`:has()` and CSS property filters have to work in conjunction, therefore they need to be stored in the same filter class (see #4394). In addition, we will probably have to change the way CSS property filters work: Currently we eventually generate standard CSS rules for them, which are then being applied by the browser. For `:has()`, we have to apply the rules manually. 
    911 
    1012=== What to change === 
     
    1618    - Check whether `SELECTOR` matches any of `a`'s child elements 
    1719    - If so, hide all elements matching `SUFFIX` inside `a` or `a` if `SUFFIX` does not exist 
     20- Make sure `:has()` and `-abp-properties` works in conjunction 
    1821 
    1922=== Optional changes ===