<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>20231</bug_id>
          
          <creation_ts>2012-12-04 10:19:21 +0000</creation_ts>
          <short_desc>DSS [Dynamic Style Sheet] Idea. A separate branch for CSS.</short_desc>
          <delta_ts>2012-12-04 10:19:35 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>CSS</product>
          <component>General</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexei03a">alexei03a</reporter>
          <assigned_to name="This bug has no owner yet - up for the taking">dave.null</assigned_to>
          <cc>alexei03a</cc>
          
          <qa_contact>public-css-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>79389</commentid>
    <comment_count>0</comment_count>
    <who name="Alexei03a">alexei03a</who>
    <bug_when>2012-12-04 10:19:21 +0000</bug_when>
    <thetext>I suggest that a new branch of the DSS. What I mean by DSS? DSS - CSS is a sharp dynamics. His features I figured out a little bit, but I think I love it love it. But remember - &quot;DSS is not JavaScript&quot;.




Feature One. Using &quot;import&quot; values. Can use value from previous priority. Example:

.bunk { 
  background-image: import, url(addition.png); //Import from previous stylesheet.
}


Feature Two. Using calc for &quot;inherit&quot; and other values. Example:

.bunk {
  width: calc(inherit + 10px);
}


Feature Three. Using &quot;style()&quot; value. You can use only ID selectors (like &quot;element(#selector)&quot; of image value). Example:

.bunk {
  width: calc(style(#selector, width) + 10px); //Work like computedStyle
  width: style(#selector, width) == auto ? 100px : 200px;
  width: dstyle(#selector, width) == auto ? 100px : 200px; //Work when animation, because this is default view.
}


Feature Four. Ternary operations in handy. Example is none.
Feature Five. Generalization of values. Similar to try and catch out of JS. Example:

.bunk {
  background-image: [custom1() || custom2()], url(test.png);
}

Feature Six. Custom blank content. Gif image is not needed. Examples:

.bunk {
  //content: blank(150px, 150px); //Empty, like &quot;url(blank150x150.gif)&quot;.
  content: blank(150px, 150px, true); //The same, but enable native content (content of img, canvas or video are fits).
  content: blank(150px, 150px, true, true); //The same, but also save some native features, for example video controls.
}

.video {
  content: element(#canvas, true); //Save video controls or other native features.
  content: url(&quot;puk.png&quot;, true); //Same effect.
}


Feature Seven. Apply filter effects for content only. Effective for graphic content. Example:

.grayscale {
  content-filter: grayscale(100%);
}


END!



All these ideas are aimed at reducing the use of JS and increased priority CSS. However, it will not make the super-flexible application where sometimes without JS is indispensable. But the JS will not hurt the important parts of life CSS. Sorry for the many mistakes, I use a translator and not really speak English.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>